Skip to content

Avoid compile on save when there is no emit impact#32688

Merged
uniqueiniquity merged 4 commits into
microsoft:masterfrom
uniqueiniquity:skipCOSForDTS
Aug 7, 2019
Merged

Avoid compile on save when there is no emit impact#32688
uniqueiniquity merged 4 commits into
microsoft:masterfrom
uniqueiniquity:skipCOSForDTS

Conversation

@uniqueiniquity
Copy link
Copy Markdown
Contributor

Currently, if compile on save is triggered based on changes in a .d.ts file, it runs even though there will be no impact to the emitted JS.
Here, we avoid running compile on save in this scenario as long as there is no possible impact to emitted code. To ensure this, we continue to trigger compile on save if declaration emit is enabled, either through the declaration option or the composite option.

Comment thread src/server/session.ts Outdated
Comment thread src/server/session.ts Outdated
@uniqueiniquity uniqueiniquity merged commit 9971e8b into microsoft:master Aug 7, 2019
@uniqueiniquity uniqueiniquity deleted the skipCOSForDTS branch August 7, 2019 17:44
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

2 participants