wire debug API with new debugService.startDebugging

This commit is contained in:
Andre Weinand
2017-07-20 11:24:49 +02:00
parent f911acfa49
commit 98b4b4d074

View File

@@ -45,16 +45,11 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape {
}
public $startDebugging(nameOrConfiguration: string | IConfig): TPromise<boolean> {
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<DebugSessionUUID> {