-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Reset the noEmitForJsFiles option when updating compiler options #12570
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
Reset the noEmitForJsFiles option when updating compiler options #12570
Conversation
@@ -636,6 +636,9 @@ namespace ts.server { | |||
this.cachedUnresolvedImportsPerFile.clear(); | |||
this.lastCachedUnresolvedImportsList = undefined; | |||
} | |||
if (this.projectKind === ProjectKind.Inferred || this.projectKind === ProjectKind.Configured) { |
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.
This piece of code is similar to one in constructor - can you share it?
Can you add tests? |
6af0600
to
b0c8a19
Compare
const diagsAfterUpdate = session.executeCommand(<server.protocol.CompilerOptionsDiagnosticsRequest>{ | ||
type: "request", | ||
command: server.CommandNames.CompilerOptionsDiagnosticsFull, | ||
seq: 3, |
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 assume the "seq" number should increment with each request. You repeat "3" here (and also in the test below).
@@ -266,6 +264,12 @@ namespace ts.server { | |||
this.markAsDirty(); | |||
} | |||
|
|||
setInternalCompilerOptionsForEmittingJsFiles() { |
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.
private
Sure, working on it. Edit: one minute, let me do a final round of local testing to be sure no surprise again. |
@billti I created https://github.com/Microsoft/TypeScript/tree/vs/release-2.1 that has the changes in this PR. Thank you! |
No description provided.