From 98b4b4d074efeafe92ebb79b64ec5f5526117e48 Mon Sep 17 00:00:00 2001 From: Andre Weinand Date: Thu, 20 Jul 2017 11:24:49 +0200 Subject: [PATCH] wire debug API with new debugService.startDebugging --- .../electron-browser/mainThreadDebugService.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts b/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts index 8177021316c..3956650a100 100644 --- a/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts +++ b/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts @@ -45,16 +45,11 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape { } public $startDebugging(nameOrConfiguration: string | IConfig): TPromise { - - if (typeof nameOrConfiguration === 'string') { - return this.debugService.startDebugging(nameOrConfiguration).then(x => { - return true; - }, err => { - return TPromise.wrapError(err && err.message ? err.message : 'cannot start debugging'); - }); - } else { - return TPromise.wrapError(new Error('startDebugging with configuration object not yet implemented')); - } + return this.debugService.startDebugging(nameOrConfiguration).then(x => { + return true; + }, err => { + return TPromise.wrapError(err && err.message ? err.message : 'cannot start debugging'); + }); } public $startDebugSession(configuration: IConfig): TPromise {