Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Reset the noEmitForJsFiles option when updating compiler options#12570

Merged
zhengbli merged 4 commits into
microsoft:release-2.1microsoft/TypeScript:release-2.1from
zhengbli:resetNoEmitForJsFileszhengbli/TypeScript:resetNoEmitForJsFilesCopy head branch name to clipboard
Nov 30, 2016
Merged

Reset the noEmitForJsFiles option when updating compiler options#12570
zhengbli merged 4 commits into
microsoft:release-2.1microsoft/TypeScript:release-2.1from
zhengbli:resetNoEmitForJsFileszhengbli/TypeScript:resetNoEmitForJsFilesCopy head branch name to clipboard

Conversation

@zhengbli

Copy link
Copy Markdown

No description provided.

Comment thread src/server/project.ts Outdated
this.cachedUnresolvedImportsPerFile.clear();
this.lastCachedUnresolvedImportsList = undefined;
}
if (this.projectKind === ProjectKind.Inferred || this.projectKind === ProjectKind.Configured) {

Copy link
Copy Markdown
Contributor

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?

@vladima

vladima commented Nov 30, 2016

Copy link
Copy Markdown
Contributor

Can you add tests?

@zhengbli zhengbli force-pushed the resetNoEmitForJsFiles branch from 6af0600 to b0c8a19 Compare November 30, 2016 04:26
const diagsAfterUpdate = session.executeCommand(<server.protocol.CompilerOptionsDiagnosticsRequest>{
type: "request",
command: server.CommandNames.CompilerOptionsDiagnosticsFull,
seq: 3,

Copy link
Copy Markdown
Member

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).

Comment thread src/server/project.ts Outdated
this.markAsDirty();
}

setInternalCompilerOptionsForEmittingJsFiles() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private

@billti

billti commented Nov 30, 2016

Copy link
Copy Markdown
Member

Thanks @zhengbli . If we put this in the next VS RC, we'll need just this change off of the current commit in the package. Can you create a new branch (e.g. vs/release-2.1) off of commit 5108285 and apply just this change?

@zhengbli

zhengbli commented Nov 30, 2016

Copy link
Copy Markdown
Author

Sure, working on it.

Edit: one minute, let me do a final round of local testing to be sure no surprise again.

@zhengbli zhengbli merged commit dfe45fe into microsoft:release-2.1 Nov 30, 2016
@zhengbli zhengbli deleted the resetNoEmitForJsFiles branch November 30, 2016 06:31
@zhengbli

Copy link
Copy Markdown
Author

@billti I created https://github.com/Microsoft/TypeScript/tree/vs/release-2.1 that has the changes in this PR. Thank you!

zhengbli pushed a commit to zhengbli/TypeScript that referenced this pull request Nov 30, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.