mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
fixes #44553
This commit is contained in:
parent
3293f204ce
commit
e66d7db35d
|
@ -363,10 +363,10 @@ export class ConfigurationManager implements IConfigurationManager {
|
|||
|
||||
private initLaunches(): void {
|
||||
this.launches = this.contextService.getWorkspace().folders.map(folder => this.instantiationService.createInstance(Launch, this, folder));
|
||||
this.launches.push(this.instantiationService.createInstance(UserLaunch, this));
|
||||
if (this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
|
||||
this.launches.push(this.instantiationService.createInstance(WorkspaceLaunch, this));
|
||||
}
|
||||
this.launches.push(this.instantiationService.createInstance(UserLaunch, this));
|
||||
|
||||
if (this.launches.indexOf(this.selectedLaunch) === -1) {
|
||||
this.selectedLaunch = undefined;
|
||||
|
|
Loading…
Reference in a new issue