File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments