Skip to content

Commit

Permalink
aux window - improve layout for aux windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Nov 17, 2023
1 parent c2283b6 commit 7f76fab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/vs/workbench/browser/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi

// apply editor layout if any
if (this.state.initialization.layout?.editors) {
this.editorGroupService.applyLayout(this.state.initialization.layout.editors);
this.editorGroupService.mainPart.applyLayout(this.state.initialization.layout.editors);
}

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

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

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

0 comments on commit 7f76fab

Please sign in to comment.