Skip to content

Commit

Permalink
fixes #31364
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jul 25, 2017
1 parent 887b306 commit fed03b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ export class ConfigurationManager implements IConfigurationManager {
@IStorageService private storageService: IStorageService
) {
this.adapters = [];
this.launches = [];
this.toDispose = [];
this.registerListeners();
this.initLaunches();
Expand Down Expand Up @@ -292,7 +291,8 @@ export class ConfigurationManager implements IConfigurationManager {
}

private initLaunches(): void {
this.launches = this.contextService.getWorkspace().roots.map(root => this.instantiationService.createInstance(Launch, this, root));
const workspace = this.contextService.getWorkspace();
this.launches = workspace ? workspace.roots.map(root => this.instantiationService.createInstance(Launch, this, root)) : [];
}

public getLaunches(): ILaunch[] {
Expand Down

0 comments on commit fed03b6

Please sign in to comment.