提交 f3645385 编写于 作者: P Pine Wu

Reduce calls to refresh tree to one call

上级 c8bbaaa5
......@@ -40,8 +40,6 @@ export class TreeExplorerViewlet extends Viewlet {
this.viewletContainer = parent.div().addClass('custom-viewlet');
this.addTreeView('Tree1');
this.setVisible(true).then(() => this.focus());
const settings = this.configurationService.getConfiguration<ICustomViewletConfiguration>();
return this.onConfigurationUpdated(settings);
}
......
......@@ -68,7 +68,6 @@ export class TreeView extends CollapsibleViewletView {
DOM.addClass(this.treeContainer, 'tree-explorer-viewlet-tree-view');
this.tree = this.createViewer($(this.treeContainer));
this.updateInput();
}
getActions(): IAction[] {
......@@ -96,7 +95,7 @@ export class TreeView extends CollapsibleViewletView {
}
create(): TPromise<void> {
return this.setVisible(true);
return TPromise.as(null);
}
setVisible(visible: boolean): TPromise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册