Continue fixing TS 2.3.1 Compiler Errors in VSCode Codebase (#25315)

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

TS 2.3.1 introduced a breaking change by [switching to covariant types for callbacks](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#covariance-in-callback-parameters). This change tries to fix these compiler errors in the workbench codebase
This commit is contained in:
Matt Bierner
2017-04-25 12:52:41 -07:00
committed by GitHub
parent c4ac26cd2d
commit 483bd48332
48 changed files with 88 additions and 86 deletions

View File

@@ -91,7 +91,7 @@ export class ExtHostQuickOpen extends ExtHostQuickOpenShape {
return TPromise.wrapError(err);
});
});
return wireCancellationToken(token, promise, true);
return wireCancellationToken<Item>(token, promise, true);
}
$onItemSelected(handle: number): void {