提交 aa1e5e7e 编写于 作者: I isidor

TreeViewsViewlet no action if expanded state does not change

fixes #41706
上级 1cbacf4b
......@@ -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());
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册