-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TS 2.3.1 Compiler Errors in VSCode src/workbench #25249
Conversation
f01cb3e
to
9475058
Compare
I'm going to revert the changes around |
c63b518
to
1871615
Compare
@@ -310,7 +310,7 @@ export class ExtHostSCM { | |||
return sourceControl; | |||
} | |||
|
|||
$provideOriginalResource(sourceControlHandle: number, uri: URI): TPromise<URI> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also wasn't entirely sure of URI
vs vscode.Uri
. I think the change itself is correct, but I was not confident to know if any existing code is relying on the old signature or if this change could cause any trouble
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Both URI
there should be vscode.Uri
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
@@ -310,7 +310,7 @@ export class ExtHostSCM { | |||
return sourceControl; | |||
} | |||
|
|||
$provideOriginalResource(sourceControlHandle: number, uri: URI): TPromise<URI> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Both URI
there should be vscode.Uri
.
Looks good, thanks! |
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
1871615
to
d65b4e7
Compare
From: microsoft/TypeScript#15352
TS 2.3.1 introduced a breaking change by switching to covariant types for callbacks. This change tries to fix these compiler errors in the workbench codebase