Revert "Deregister View container when moving last view" (#199560)

Revert "Deregister View container when moving last view (#198526)"

This reverts commit 78038ac057.
This commit is contained in:
Benjamin Simmonds
2023-11-29 16:55:35 +01:00
committed by GitHub
parent 57c5e376c9
commit 0aff17a7fa
@@ -435,8 +435,6 @@ export class ViewDescriptorService extends Disposable implements IViewDescriptor
}
private moveViewsWithoutSaving(views: IViewDescriptor[], from: ViewContainer, to: ViewContainer, visibilityState: ViewVisibilityState = ViewVisibilityState.Expand): void {
const fromContainerViews = this.getViewsByContainer(from);
this.removeViews(from, views);
this.addViews(to, views, visibilityState);
@@ -445,10 +443,6 @@ export class ViewDescriptorService extends Disposable implements IViewDescriptor
if (oldLocation !== newLocation) {
this._onDidChangeLocation.fire({ views, from: oldLocation, to: newLocation });
if (fromContainerViews.length === views.length) {
this._onDidChangeViewContainers.fire({ removed: [{ container: from, location: oldLocation }], added: [] });
}
}
this._onDidChangeContainer.fire({ views, from, to });