mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Update Promise definition (#30268)
* Update definition of Promise in winjs.base.d.ts. * Update to new Promise declaration * Fix remaining errors.
This commit is contained in:
committed by
Matt Bierner
parent
aebaece673
commit
066a2bb141
@@ -85,7 +85,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
|
||||
if (process) {
|
||||
return <DebugSessionUUID>process.getId();
|
||||
}
|
||||
return TPromise.wrapError(new Error('cannot create debug session'));
|
||||
return TPromise.wrapError<DebugSessionUUID>(new Error('cannot create debug session'));
|
||||
}, err => {
|
||||
return TPromise.wrapError(err && err.message ? err.message : 'cannot start debug session');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user