debug: allow vscode.startDebug to pass full json config

fixes #4615
This commit is contained in:
isidor
2016-05-10 18:06:42 +02:00
parent fabda7b5d1
commit 1ef6a7093f
5 changed files with 68 additions and 61 deletions

View File

@@ -189,12 +189,12 @@ class ExtHostApiCommands {
]
});
this._register('vscode.startDebug', (configurationName?: string) => {
return this._commands.executeCommand('_workbench.startDebug', configurationName);
this._register('vscode.startDebug', (configuration?: any) => {
return this._commands.executeCommand('_workbench.startDebug', configuration);
}, {
description: 'Start a debugging session.',
args: [
{ name: 'configurationName', description: '(optional) Name of the debug configuration from \'launch.json\' to use.' }
{ name: 'configuration', description: '(optional) Name of the debug configuration from \'launch.json\' to use. Or a configuration json object to use.' }
]
});
}