We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e2df0a commit ee183beCopy full SHA for ee183be
1 file changed
src/vs/workbench/services/views/browser/viewDescriptorService.ts
@@ -156,7 +156,11 @@ export class ViewDescriptorService extends Disposable implements IViewDescriptor
156
continue;
157
}
158
159
- this.addViews(viewContainer, containerData.views);
+ // Filter out views that have already been added to the view container model
160
+ // This is needed when statically-registered views are moved to
161
+ // other statically registered containers as they will both try to add on startup
162
+ const viewsToAdd = containerData.views.filter(view => this.getViewContainerModel(viewContainer).allViewDescriptors.filter(vd => vd.id === view.id).length === 0);
163
+ this.addViews(viewContainer, viewsToAdd);
164
165
166
0 commit comments