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:
Jackson Kearl 2021-07-23 14:21:02 -07:00
parent ae29089275
commit 25bc9a1b3b
No known key found for this signature in database
GPG key ID: DA09A59C409FC400

View file

@ -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 {