Skip to content

Commit 55f63af

Browse files
committed
1 parent 56307cf commit 55f63af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/browser/parts/views/customView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ export class CustomTreeViewer extends Disposable implements ITreeViewer {
365365
this._register(this.tree.onDidExpandItem(e => this._onDidExpandItem.fire(e.item.getElement())));
366366
this._register(this.tree.onDidCollapseItem(e => this._onDidCollapseItem.fire(e.item.getElement())));
367367
this._register(this.tree.onDidChangeSelection(e => this._onDidChangeSelection.fire(e.selection)));
368-
this.tree.setInput(this.root);
369368
}
370369

371370
private showMessage(message: string): void {
@@ -429,6 +428,7 @@ export class CustomTreeViewer extends Disposable implements ITreeViewer {
429428
private activate() {
430429
this.hideMessage();
431430
if (!this.activated) {
431+
this.tree.setInput(this.root);
432432
this.progressService.withProgress({ location: this.container.id }, () => this.extensionService.activateByEvent(`onView:${this.id}`))
433433
.then(() => timeout(2000))
434434
.then(() => {

0 commit comments

Comments
 (0)