description:nls.localize('vscode.extension.contributes.debuggers.initialConfigurations',"Configurations for generating the initial \'launch.json\'."),
type:['array','string'],
},
languages:{
description:nls.localize('vscode.extension.contributes.debuggers.languages',"List of languages for which the debug extension could be considered the \"default debugger\"."),
type:'array'
},
startSessionCommand:{
description:nls.localize('vscode.extension.contributes.debuggers.startSessionCommand',"If specified VS Code will call this command for the \"debug\" or \"run\" actions targeted for this extension."),
type:'string'
},
configurationSnippets:{
description:nls.localize('vscode.extension.contributes.debuggers.configurationSnippets',"Snippets for adding new configurations in \'launch.json\'."),
type:'array'
...
...
@@ -307,6 +315,10 @@ export class ConfigurationManager implements debug.IConfigurationManager {
// Current selected configuration no longer exists - take the first configuration instead.
...
...
@@ -610,6 +610,10 @@ export class DebugService implements debug.IDebugService {
});
});
},err=>{
if(!this.contextService.getWorkspace()){
returnthis.messageService.show(severity.Error,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."));
this.messageService.show(severity.Info,nls.localize('NewLaunchConfig',"Please set up the launch configuration file for your application. {0}",err.message));