@@ -322,98 +323,93 @@ export class DebugService implements IDebugService {
returnTPromise.wrapError(newError(nls.localize('noFolderWithName',"Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",configData.folder,configData.name,compound.name)));
constmessage=!!launch?nls.localize('configMissing',"Configuration '{0}' is missing in 'launch.json'.",typeofconfigOrName==='string'?configOrName:JSON.stringify(configOrName)):
nls.localize('launchJsonDoesNotExist',"'launch.json' does not exist.");
returnTPromise.wrapError(newError(message));
}
// We keep the debug type in a separate variable 'type' so that a no-folder config has no attributes.
// Storing the type in the config would break extensions that assume that the no-folder case is indicated by an empty config.
message=config.request?nls.localize('debugRequestNotSupported',"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",'request',config.request)
:nls.localize('debugRequesMissing',"Attribute '{0}' is missing from the chosen debug configuration.",'request');
if(!resolvedConfig){
// User canceled resolving of interactive variables, silently return
returnundefined;
}
}else{
message=resolvedConfig.type?nls.localize('debugTypeNotSupported',"Configured debug type '{0}' is not supported.",resolvedConfig.type):
nls.localize('debugTypeMissing',"Missing property 'type' for the chosen launch configuration.");
message=config.request?nls.localize('debugRequestNotSupported',"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",'request',config.request)
:nls.localize('debugRequesMissing',"Attribute '{0}' is missing from the chosen debug configuration.",'request');
returnthis.showError(message);
}
}else{
message=resolvedConfig.type?nls.localize('debugTypeNotSupported',"Configured debug type '{0}' is not supported.",resolvedConfig.type):
nls.localize('debugTypeMissing',"Missing property 'type' for the chosen launch configuration.");
returnthis.showError(nls.localize('noFolderWorkspaceDebugError',"The active file can not be debugged. Make sure it is saved on disk and that you have a debug extension installed for that file type."));
returnthis.showError(nls.localize('noFolderWorkspaceDebugError',"The active file can not be debugged. Make sure it is saved on disk and that you have a debug extension installed for that file type."));
if(launch&&type&&config===null){// show launch.json only for "config" being "null".