diff --git a/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts b/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts index 3597e23fbbedcc849d12542adadaaec3177d09dc..de77c90cc7d66b5bc9499185d212fa41213a0fa2 100644 --- a/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts +++ b/src/vs/workbench/api/electron-browser/mainThreadDebugService.ts @@ -183,8 +183,8 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb public $startDebugging(_folderUri: uri | undefined, nameOrConfiguration: string | IConfig): Thenable { const folderUri = _folderUri ? uri.revive(_folderUri) : undefined; const launch = this.debugService.getConfigurationManager().getLaunch(folderUri); - return this.debugService.startDebugging(launch, nameOrConfiguration).then(x => { - return true; + return this.debugService.startDebugging(launch, nameOrConfiguration).then(success => { + return success; }, err => { return TPromise.wrapError(new Error(err && err.message ? err.message : 'cannot start debugging')); });