mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user