Skip to content

Commit 4ab1223

Browse files
committed
Cleanup
Signed-off-by: BoykoAlex <[email protected]>
1 parent 19a6ad3 commit 4ab1223

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vscode-extensions/vscode-spring-boot/lib/explorer/structure-tree-manager.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export class StructureManager {
3939
title: `Select groups to show/hide for project ${projectName}`,
4040
placeHolder: 'Select groups to show/hide'
4141
});
42-
this.setVisibleGroups(projectName, items.length === selectedGroupItems.length ? undefined : selectedGroupItems.map(i => i.group.identifier));
42+
if (selectedGroupItems) {
43+
await this.setVisibleGroups(projectName, items.length === selectedGroupItems.length ? undefined : selectedGroupItems.map(i => i.group.identifier));
44+
this.refresh(false);
45+
}
4346
}));
4447
}
4548

@@ -97,7 +100,6 @@ export class StructureManager {
97100
}
98101
}
99102
await this.workspaceState.update(`vscode-spring-boot.structure.group`, groupings);
100-
this.refresh(false);
101103
}
102104

103105
}

0 commit comments

Comments
 (0)