From 0aff17a7fac9edfb38da8a2d6dde59a0e24b8a0b Mon Sep 17 00:00:00 2001 From: Benjamin Simmonds <44439583+benibenj@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:55:35 +0100 Subject: [PATCH] Revert "Deregister View container when moving last view" (#199560) Revert "Deregister View container when moving last view (#198526)" This reverts commit 78038ac0577dbdb3bcc1728cb9c8fca27a6e0cb4. --- .../services/views/browser/viewDescriptorService.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/vs/workbench/services/views/browser/viewDescriptorService.ts b/src/vs/workbench/services/views/browser/viewDescriptorService.ts index 0dca0e7bf9e..edadb1ab37d 100644 --- a/src/vs/workbench/services/views/browser/viewDescriptorService.ts +++ b/src/vs/workbench/services/views/browser/viewDescriptorService.ts @@ -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 });