Skip to content

Commit 4874dc6

Browse files
authored
Default to opening the welcome page when no readme found (microsoft#184540)
1 parent 67cc096 commit 4874dc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ export class StartupPageContribution implements IWorkbenchContribution {
147147
}),
148148
this.editorService.openEditors(readmes.filter(readme => !isMarkDown(readme)).map(readme => ({ resource: readme }))),
149149
]);
150+
} else {
151+
// If no readme is found, default to showing the welcome page.
152+
await this.openGettingStarted();
150153
}
151154
}
152155
}

0 commit comments

Comments
 (0)