Fix TS 2.3.1 Compiler Errors in VSCode src/workbench (#25249)

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 08:20:25 -07:00
committed by GitHub
parent 2868ee6ef8
commit 6147b54439
37 changed files with 105 additions and 103 deletions

View File

@@ -310,7 +310,7 @@ export class ExtHostSCM {
return sourceControl;
}
$provideOriginalResource(sourceControlHandle: number, uri: URI): TPromise<URI> {
$provideOriginalResource(sourceControlHandle: number, uri: URI): TPromise<vscode.Uri> {
const sourceControl = this._sourceControls.get(sourceControlHandle);
if (!sourceControl || !sourceControl.quickDiffProvider) {