add proposed 'startDebugging' API

This commit is contained in:
Andre Weinand
2017-07-18 21:14:53 +02:00
parent 77eed5ad44
commit 6f4ebe7517
5 changed files with 34 additions and 0 deletions

View File

@@ -45,6 +45,11 @@ export class ExtHostDebugService extends ExtHostDebugServiceShape {
this._debugServiceProxy = threadService.get(MainContext.MainThreadDebugService);
}
public startDebugging(nameOrConfig: string | vscode.DebugConfiguration): TPromise<boolean> {
return this._debugServiceProxy.$startDebugging(nameOrConfig);
}
public startDebugSession(config: vscode.DebugConfiguration): TPromise<vscode.DebugSession> {
return this._debugServiceProxy.$startDebugSession(config).then((id: DebugSessionUUID) => {