Skip to content

Commit 32ac635

Browse files
committed
Expand root folder items by default
1 parent 8135b1f commit 32ac635

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/configExplorer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export class TailwindDataProvider implements TreeDataProvider<ConfigItem> {
254254
emitter: NotificationEmitter
255255
}) {
256256
let folder = client.clientOptions.workspaceFolder.uri.toString()
257+
this.expandedWorkspaces.push(folder)
257258

258259
const onUpdate = async ({
259260
configPath,
@@ -401,7 +402,7 @@ export class TailwindDataProvider implements TreeDataProvider<ConfigItem> {
401402
return Object.keys(this.workspaces).map((workspace) => {
402403
return new ConfigItem({
403404
label: path.basename(workspace),
404-
collapsibleState: TreeItemCollapsibleState.Collapsed,
405+
collapsibleState: TreeItemCollapsibleState.Expanded,
405406
workspace,
406407
contextValue: `config:${this.workspaces[workspace].configPath}`,
407408
iconPath: new ThemeIcon(

0 commit comments

Comments
 (0)