Skip to content

Commit 7f76fab

Browse files
Benjamin Paserobpasero
authored andcommitted
aux window - improve layout for aux windows
1 parent c2283b6 commit 7f76fab

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/vs/workbench/browser/layout.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
844844

845845
// apply editor layout if any
846846
if (this.state.initialization.layout?.editors) {
847-
this.editorGroupService.applyLayout(this.state.initialization.layout.editors);
847+
this.editorGroupService.mainPart.applyLayout(this.state.initialization.layout.editors);
848848
}
849849

850850
// then see for editors to open as instructed
@@ -866,7 +866,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
866866
// by the input. this is important to ensure that we open
867867
// the editors in the groups they belong to.
868868

869-
const editorGroupsInVisualOrder = this.editorGroupService.getGroups(GroupsOrder.GRID_APPEARANCE);
869+
const editorGroupsInVisualOrder = this.editorGroupService.mainPart.getGroups(GroupsOrder.GRID_APPEARANCE);
870870
const mapEditorsToGroup = new Map<GroupIdentifier, Set<IUntypedEditorInput>>();
871871

872872
for (const editor of editors) {
@@ -1864,8 +1864,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
18641864
if (!skipLayout && isPanelMaximized !== panelOpensMaximized) {
18651865
this.toggleMaximizedPanel();
18661866
}
1867-
}
1868-
else {
1867+
} else {
18691868
// If in process of hiding, remember whether the panel is maximized or not
18701869
this.stateModel.setRuntimeValue(LayoutStateKeys.PANEL_WAS_LAST_MAXIMIZED, isPanelMaximized);
18711870
}

0 commit comments

Comments
 (0)