diff --git a/product.json b/product.json index 4103352af85..3de73aaa1d7 100644 --- a/product.json +++ b/product.json @@ -22,5 +22,6 @@ "urlProtocol": "code-oss", "extensionAllowedProposedApi": [ "ms-vscode.references-view" - ] -} \ No newline at end of file + ], + "commit": "8b6e0efc0a98639085fabeb5226a516785424796" +} diff --git a/src/vs/workbench/browser/parts/views/customView.ts b/src/vs/workbench/browser/parts/views/customView.ts index 6943614e219..a0e82df3231 100644 --- a/src/vs/workbench/browser/parts/views/customView.ts +++ b/src/vs/workbench/browser/parts/views/customView.ts @@ -212,7 +212,7 @@ export class CustomTreeView extends Disposable implements ITreeView { this.root = new Root(); this.menus = this._register(instantiationService.createInstance(TitleMenus, this.id)); this._register(this.menus.onDidChangeTitle(() => this._onDidChangeActions.fire())); - this._register(this.themeService.onDidFileIconThemeChange(() => this.refresh([this.root]) /** soft refresh **/)); + this._register(this.themeService.onDidFileIconThemeChange(() => this.doRefresh([this.root]) /** soft refresh **/)); this._register(this.themeService.onThemeChange(() => this.doRefresh([this.root]) /** soft refresh **/)); this._register(this.configurationService.onDidChangeConfiguration(e => { if (e.affectsConfiguration('explorer.decorations')) { @@ -608,7 +608,7 @@ export class CustomTreeView extends Disposable implements ITreeView { private refreshing: boolean = false; private async doRefresh(elements: ITreeItem[]): Promise { const tree = this.tree; - if (tree) { + if (tree && this.visible) { this.refreshing = true; await Promise.all(elements.map(element => tree.updateChildren(element, true))); elements.map(element => tree.rerender(element));