mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08: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
@@ -542,10 +542,10 @@ export class ExtHostTextEditor implements vscode.TextEditor {
|
||||
return TPromise.as(undefined);
|
||||
}
|
||||
return callback().then(() => this, err => {
|
||||
if (err instanceof Error && err.name === 'DISPOSED') {
|
||||
return;
|
||||
if (!(err instanceof Error && err.name === 'DISPOSED')) {
|
||||
console.warn(err);
|
||||
}
|
||||
console.warn(err);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user