mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 20:37:13 -05:00
debug: better error handling for wrong compound configuraitons
fixes #16615
This commit is contained in:
@@ -573,6 +573,9 @@ export class DebugService implements debug.IDebugService {
|
||||
return TPromise.join(compound.configurations.map(name => this.createProcess(name)));
|
||||
}
|
||||
const config = typeof configurationOrName === 'string' ? this.configurationManager.getConfiguration(configurationOrName) : configurationOrName;
|
||||
if (!config) {
|
||||
return TPromise.wrapError(new Error(nls.localize('configMissing', "Configuration '{0}' is missing in 'launch.json'.", configurationOrName)));
|
||||
}
|
||||
|
||||
return this.configurationManager.resloveConfiguration(config).then(resolvedConfig => {
|
||||
if (!resolvedConfig) {
|
||||
|
||||
Reference in New Issue
Block a user