提交 fed03b66 编写于 作者: I isidor

fixes #31364

上级 887b3067
......@@ -229,7 +229,6 @@ export class ConfigurationManager implements IConfigurationManager {
@IStorageService private storageService: IStorageService
) {
this.adapters = [];
this.launches = [];
this.toDispose = [];
this.registerListeners();
this.initLaunches();
......@@ -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[] {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册