提交 698e2153 编写于 作者: I isidor

debug: no need for debugService to select the launch. This knowledge should...

debug: no need for debugService to select the launch. This knowledge should only come from status and dropdown

fixes #42678
上级 c31b2f2a
......@@ -658,7 +658,7 @@ export class DebugService implements debug.IDebugService {
this.model.removeWatchExpressions(id);
}
public startDebugging(root: IWorkspaceFolder, configOrName?: debug.IConfig | string, noDebug = false, topCompoundName?: string): TPromise<any> {
public startDebugging(root: IWorkspaceFolder, configOrName?: debug.IConfig | string, noDebug = false): TPromise<any> {
// make sure to save all files and that the configuration is up to date
return this.extensionService.activateByEvent('onDebug').then(() => this.textFileService.saveAll().then(() => this.configurationService.reloadConfiguration(root).then(() =>
......@@ -682,10 +682,6 @@ export class DebugService implements debug.IDebugService {
} else if (typeof configOrName !== 'string') {
config = configOrName;
}
if (launch) {
// in the drop down the name of the top most compound takes precedence over the launch config name
this.configurationManager.selectConfiguration(launch, topCompoundName || (typeof configOrName === 'string' ? configOrName : undefined), true);
}
if (compound) {
if (!compound.configurations) {
......@@ -720,7 +716,7 @@ export class DebugService implements debug.IDebugService {
}
}
return this.startDebugging(rootForName, name, noDebug, topCompoundName || compound.name);
return this.startDebugging(rootForName, name, noDebug);
}));
}
if (configOrName && !config) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册