mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
mainThreadDebugService: adopt to success return result of debugService.startDebugging
fixes #54214
This commit is contained in:
@@ -183,8 +183,8 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
|
||||
public $startDebugging(_folderUri: uri | undefined, nameOrConfiguration: string | IConfig): Thenable<boolean> {
|
||||
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'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user