mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-31 00:10:04 +08:00
Revert insiders decision
This commit is contained in:
@@ -105,13 +105,8 @@ class AgentSessionsWelcomeRunnerContribution extends Disposable implements IWork
|
||||
// Get startup editor configuration
|
||||
const startupEditor = this.configurationService.getValue<string>('workbench.startupEditor');
|
||||
|
||||
// Only proceed if configured to show agent sessions welcome page,
|
||||
// or if on Insiders with welcomePage (treat welcomePage as agentSessionsWelcomePage on Insiders)
|
||||
const isInsiders = this.productService.quality === 'insider';
|
||||
const shouldShowAgentSessionsWelcome = startupEditor === 'agentSessionsWelcomePage' ||
|
||||
(isInsiders && startupEditor === 'welcomePage');
|
||||
|
||||
if (!shouldShowAgentSessionsWelcome) {
|
||||
// Only proceed if configured to show agent sessions welcome page
|
||||
if (startupEditor !== 'agentSessionsWelcomePage') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -138,11 +138,7 @@ export class StartupPageRunnerContribution extends Disposable implements IWorkbe
|
||||
if (startupEditorSetting.value === 'readme') {
|
||||
await this.openReadme();
|
||||
} else if (startupEditorSetting.value === 'welcomePage' || startupEditorSetting.value === 'welcomePageInEmptyWorkbench') {
|
||||
// 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);
|
||||
}
|
||||
await this.openGettingStarted(true);
|
||||
} else if (startupEditorSetting.value === 'terminal') {
|
||||
this.commandService.executeCommand(TerminalCommandId.CreateTerminalEditor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user