From 64779d2ffd02f49c6a4b4d524b4c369b5ff52e45 Mon Sep 17 00:00:00 2001 From: BeniBenj Date: Wed, 29 Nov 2023 16:39:50 +0100 Subject: [PATCH] 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 0dca0e7bf9e3b..edadb1ab37d9e 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 });