Skip to content

Commit 14d922c

Browse files
authored
Duplicating Menu Actions when switching profiles (microsoft#165274)
Fixes microsoft#161910
1 parent 9545edf commit 14d922c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/workbench/api/browser/viewsExtensionPoint.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,12 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
573573
const removedViews = this.viewsRegistry.getViews(viewContainer).filter(v => (v as ICustomViewDescriptor).extensionId && removedExtensions.has(ExtensionIdentifier.toKey((v as ICustomViewDescriptor).extensionId)));
574574
if (removedViews.length) {
575575
this.viewsRegistry.deregisterViews(removedViews, viewContainer);
576+
for (const view of removedViews) {
577+
const anyView = view as ICustomTreeViewDescriptor;
578+
if (anyView.treeView) {
579+
anyView.treeView.dispose();
580+
}
581+
}
576582
}
577583
}
578584
}

0 commit comments

Comments
 (0)