mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-05 04:45:23 +01:00
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:
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 });
|
||||
|
||||
Reference in New Issue
Block a user