Skip to content

Do not trigger resolution cache invalidation if watch is triggered by program file emit #21149

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

Merged
merged 2 commits into from
Jan 12, 2018

Conversation

sheetalkamat
Copy link
Member

If the number of source files in the resolution cache are more than maxNumberOfFilesToIterateForInvalidation (which is 256) then any file addition/removal triggers the new program creation to optimize for having to iterate through lot more resolutions.
This ensures that if file added/removed is from program emit, we ignore those and do not recompile the program
Fixes #20934

@sheetalkamat sheetalkamat merged commit b529d5b into master Jan 12, 2018
@sheetalkamat sheetalkamat deleted the tweakRecompileConditions branch January 12, 2018 00:17
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 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.

2 participants