mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-15 00:14:20 +01:00
TreeViewsViewlet no action if expanded state does not change
fixes #41706
This commit is contained in:
@@ -122,8 +122,10 @@ export abstract class TreeViewsViewletPanel extends ViewsViewletPanel {
|
||||
}
|
||||
|
||||
setExpanded(expanded: boolean): void {
|
||||
this.updateTreeVisibility(this.tree, expanded);
|
||||
super.setExpanded(expanded);
|
||||
if (this.isExpanded() !== expanded) {
|
||||
this.updateTreeVisibility(this.tree, expanded);
|
||||
super.setExpanded(expanded);
|
||||
}
|
||||
}
|
||||
|
||||
protected renderHeader(container: HTMLElement): void {
|
||||
@@ -784,4 +786,4 @@ export class FileIconThemableWorkbenchTree extends WorkbenchTree {
|
||||
this.disposables.push(themeService.onDidFileIconThemeChange(onFileIconThemeChange));
|
||||
onFileIconThemeChange(themeService.getFileIconTheme());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user