debug: expose vscode.debugStart in API

fixes #3789
This commit is contained in:
isidor
2016-05-10 15:17:00 +02:00
parent 083c36c609
commit 83a7759f9b
4 changed files with 40 additions and 10 deletions

View File

@@ -188,6 +188,15 @@ class ExtHostApiCommands {
{ name: 'newWindow', description: '(optional) Wether to open the folder in a new window or the same. Defaults to opening in the same window.', constraint: value => value === void 0 || typeof value === 'boolean' }
]
});
this._register('vscode.startDebug', (configurationName?: string) => {
return this._commands.executeCommand('_workbench.startDebug', configurationName);
}, {
description: 'Start a debugging session.',
args: [
{ name: 'configurationName', description: '(optional) Name of the debug configuration from \'launch.json\' to use.' }
]
});
}
// --- command impl