fix #97144
This commit is contained in:
parent
d7a5b181eb
commit
d179acdbd0
|
@ -127,15 +127,10 @@ export class ViewsService extends Disposable implements IViewsService {
|
|||
this.deregisterViewletOrPanel(container, location);
|
||||
}
|
||||
for (const { container, location } of added) {
|
||||
this.registerViewletOrPanel(container, location);
|
||||
this.onDidRegisterViewContainer(container, location);
|
||||
}
|
||||
}
|
||||
|
||||
private onDidChangeContainerLocation(viewContainer: ViewContainer, from: ViewContainerLocation, to: ViewContainerLocation): void {
|
||||
this.deregisterViewletOrPanel(viewContainer, from);
|
||||
this.registerViewletOrPanel(viewContainer, to);
|
||||
}
|
||||
|
||||
private onDidRegisterViewContainer(viewContainer: ViewContainer, viewContainerLocation: ViewContainerLocation): void {
|
||||
this.registerViewletOrPanel(viewContainer, viewContainerLocation);
|
||||
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
||||
|
@ -146,6 +141,11 @@ export class ViewsService extends Disposable implements IViewsService {
|
|||
}));
|
||||
}
|
||||
|
||||
private onDidChangeContainerLocation(viewContainer: ViewContainer, from: ViewContainerLocation, to: ViewContainerLocation): void {
|
||||
this.deregisterViewletOrPanel(viewContainer, from);
|
||||
this.registerViewletOrPanel(viewContainer, to);
|
||||
}
|
||||
|
||||
private onViewDescriptorsAdded(views: ReadonlyArray<IViewDescriptor>, container: ViewContainer): void {
|
||||
const location = this.viewDescriptorService.getViewContainerLocation(container);
|
||||
if (location === null) {
|
||||
|
|
Loading…
Reference in a new issue