Fix VSCode/Extensions for TS 2.3.1 (#25248)

From: https://github.com/Microsoft/TypeScript/issues/15352

TS 2.3.1 introduced a breaking change around checking of generic types. This change tries to fix these compiler errors in the extensions codebase
This commit is contained in:
Matt Bierner
2017-04-24 16:05:57 -07:00
committed by GitHub
parent fbfb925b4d
commit dc0f3ecdb2
8 changed files with 16 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ export class Askpass implements Disposable {
try {
this.server.listen(0);
this.portPromise = new Promise(c => this.server.on('listening', () => c(this.server.address().port)));
this.portPromise = new Promise<number>(c => this.server.on('listening', () => c(this.server.address().port)));
this.server.on('error', err => console.error(err));
} catch (err) {
this.enabled = false;