mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
wire debug API with new debugService.startDebugging
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user