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:
Ron Buckton
2017-08-18 00:02:57 -07:00
committed by Matt Bierner
parent aebaece673
commit 066a2bb141
34 changed files with 159 additions and 230 deletions

View File

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