Skip to content

Commit dd112ec

Browse files
authored
Open walkthrough if a gettingStarted page is found (microsoft#191947)
1 parent ee08fd5 commit dd112ec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ registerAction2(class extends Action2 {
6666
// Try first to select the walkthrough on an active welcome page with no selected walkthrough
6767
for (const group of editorGroupsService.groups) {
6868
if (group.activeEditor instanceof GettingStartedInput) {
69-
if (!group.activeEditor.selectedCategory) {
70-
(group.activeEditorPane as GettingStartedPage).makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
71-
return;
72-
}
69+
(group.activeEditorPane as GettingStartedPage).makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
70+
return;
7371
}
7472
}
7573

@@ -106,7 +104,10 @@ registerAction2(class extends Action2 {
106104
editorService.openEditor({
107105
resource: GettingStartedInput.RESOURCE,
108106
options: <GettingStartedEditorOptions>{ selectedCategory: selectedCategory, selectedStep: selectedStep, preserveFocus: toSide ?? false }
107+
}).then((editor) => {
108+
(editor as GettingStartedPage)?.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
109109
});
110+
110111
}
111112
} else {
112113
editorService.openEditor({ resource: GettingStartedInput.RESOURCE });

0 commit comments

Comments
 (0)