mainThreadDebugService: adopt to success return result of debugService.startDebugging

fixes #54214
This commit is contained in:
isidor
2018-09-28 15:05:53 +02:00
parent 3a12e6ad32
commit f5fc1e0da6

View File

@@ -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'));
});