@@ -10,7 +10,7 @@ import { EditorExtensions, IEditorFactoryRegistry } from 'vs/workbench/common/ed
10
10
import { MenuId , registerAction2 , Action2 } from 'vs/platform/actions/common/actions' ;
11
11
import { IInstantiationService , ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
12
12
import { ContextKeyExpr , IContextKeyService , RawContextKey } from 'vs/platform/contextkey/common/contextkey' ;
13
- import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
13
+ import { IEditorService , SIDE_GROUP } from 'vs/workbench/services/editor/common/editorService' ;
14
14
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
15
15
import { KeyCode } from 'vs/base/common/keyCodes' ;
16
16
import { EditorPaneDescriptor , IEditorPaneRegistry } from 'vs/workbench/browser/editor' ;
@@ -65,7 +65,10 @@ registerAction2(class extends Action2 {
65
65
66
66
// We're trying to open the welcome page from the Help menu
67
67
if ( ! selectedCategory && ! selectedStep ) {
68
- editorService . openEditor ( { resource : GettingStartedInput . RESOURCE } ) ;
68
+ editorService . openEditor ( {
69
+ resource : GettingStartedInput . RESOURCE ,
70
+ options : < GettingStartedEditorOptions > { preserveFocus : toSide ?? false }
71
+ } , toSide ? SIDE_GROUP : undefined ) ;
69
72
return ;
70
73
}
71
74
@@ -110,13 +113,16 @@ registerAction2(class extends Action2 {
110
113
editorService . openEditor ( {
111
114
resource : GettingStartedInput . RESOURCE ,
112
115
options : < GettingStartedEditorOptions > { selectedCategory : selectedCategory , selectedStep : selectedStep , preserveFocus : toSide ?? false }
113
- } ) . then ( ( editor ) => {
116
+ } , toSide ? SIDE_GROUP : undefined ) . then ( ( editor ) => {
114
117
( editor as GettingStartedPage ) ?. makeCategoryVisibleWhenAvailable ( selectedCategory , selectedStep ) ;
115
118
} ) ;
116
119
117
120
}
118
121
} else {
119
- editorService . openEditor ( { resource : GettingStartedInput . RESOURCE } ) ;
122
+ editorService . openEditor ( {
123
+ resource : GettingStartedInput . RESOURCE ,
124
+ options : < GettingStartedEditorOptions > { preserveFocus : toSide ?? false }
125
+ } , toSide ? SIDE_GROUP : undefined ) ;
120
126
}
121
127
}
122
128
} ) ;
0 commit comments