mirror of
https://github.com/Microsoft/vscode
synced 2024-08-25 03:56:03 +00:00
Fix old welcome page sometimes appearing when default startup editor is readme
Ref https://github.com/github/codespaces/issues/3462
This commit is contained in:
parent
ae29089275
commit
25bc9a1b3b
|
@ -158,9 +158,8 @@ function isWelcomePageEnabled(configurationService: IConfigurationService, conte
|
|||
}
|
||||
return startupEditor.value === 'welcomePage'
|
||||
|| startupEditor.value === 'legacy_welcomePage'
|
||||
|| startupEditor.userValue === 'readme'
|
||||
|| startupEditor.defaultValue === 'readme'
|
||||
|| (contextService.getWorkbenchState() === WorkbenchState.EMPTY && (startupEditor.value === 'legacy_welcomePageInEmptyWorkbench' || startupEditor.value === 'welcomePageInEmptyWorkbench'));
|
||||
|| startupEditor.value === 'readme' && (startupEditor.userValue === 'readme' || startupEditor.defaultValue === 'readme')
|
||||
|| ((contextService.getWorkbenchState() === WorkbenchState.EMPTY) && (startupEditor.value === 'legacy_welcomePageInEmptyWorkbench' || startupEditor.value === 'welcomePageInEmptyWorkbench'));
|
||||
}
|
||||
|
||||
export class WelcomePageAction extends Action {
|
||||
|
|
Loading…
Reference in a new issue