mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-31 00:10:04 +08:00
Fix race condition: skip Getting Started on Insiders with welcomePage setting
Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
This commit is contained in:
@@ -138,7 +138,11 @@ export class StartupPageRunnerContribution extends Disposable implements IWorkbe
|
||||
if (startupEditorSetting.value === 'readme') {
|
||||
await this.openReadme();
|
||||
} else if (startupEditorSetting.value === 'welcomePage' || startupEditorSetting.value === 'welcomePageInEmptyWorkbench') {
|
||||
await this.openGettingStarted(true);
|
||||
// On Insiders, AgentSessionsWelcomeRunnerContribution handles 'welcomePage', so skip here to avoid race condition
|
||||
const isInsiders = this.productService.quality === 'insider';
|
||||
if (!isInsiders || startupEditorSetting.value === 'welcomePageInEmptyWorkbench') {
|
||||
await this.openGettingStarted(true);
|
||||
}
|
||||
} else if (startupEditorSetting.value === 'terminal') {
|
||||
this.commandService.executeCommand(TerminalCommandId.CreateTerminalEditor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user