File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/vs/workbench/contrib/welcomeGettingStarted/browser Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,16 @@ registerAction2(class extends Action2 {
63
63
if ( walkthroughID ) {
64
64
const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID . category ;
65
65
const selectedStep = typeof walkthroughID === 'string' ? undefined : walkthroughID . step ;
66
+
67
+ let openedWalkthroughExists = false ;
66
68
// Try first to select the walkthrough on an active welcome page with no selected walkthrough
67
69
for ( const group of editorGroupsService . groups ) {
68
70
if ( group . activeEditor instanceof GettingStartedInput ) {
69
71
if ( ! group . activeEditor . selectedCategory ) {
70
72
( group . activeEditorPane as GettingStartedPage ) . makeCategoryVisibleWhenAvailable ( selectedCategory , selectedStep ) ;
71
73
return ;
74
+ } else {
75
+ openedWalkthroughExists = true ;
72
76
}
73
77
}
74
78
}
@@ -83,6 +87,8 @@ registerAction2(class extends Action2 {
83
87
editor . selectedStep = selectedStep ;
84
88
group . openEditor ( editor , { revealIfOpened : true } ) ;
85
89
return ;
90
+ } else {
91
+ openedWalkthroughExists = true ;
86
92
}
87
93
}
88
94
}
@@ -102,7 +108,7 @@ registerAction2(class extends Action2 {
102
108
editor : activeEditor ,
103
109
replacement : gettingStartedInput
104
110
} ] ) ;
105
- } else {
111
+ } else if ( ! openedWalkthroughExists ) {
106
112
// else open respecting toSide
107
113
editorService . openEditor ( gettingStartedInput , { preserveFocus : toSide ?? false } , toSide ? SIDE_GROUP : undefined ) ;
108
114
}
You can’t perform that action at this time.
0 commit comments