-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Mark allowArbitraryExtensions as affectsProgramStructure #52437
Mark allowArbitraryExtensions as affectsProgramStructure #52437
Conversation
…f affectsModuleResolution
116ee73
to
225d158
Compare
Excuse the force push; I wanted to rewrite the PR into the two commits so the actual changed showed the baseline change. Let me know if this looks good. |
I tacked on an extra commit which sets |
...nce/tscWatch/programUpdates/Updates-diagnostics-when-'--allowArbitraryExtensions'-changes.js
Outdated
Show resolved
Hide resolved
I'm a little confused about how the baseline says that semantic diagnostics aren't updated now that I've set |
Just to double check, I don't need |
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 is probably the right level of invalidation, since while it does affect resolution diagnostics, those diagnostics in turn control which files are actually loaded into the program (since resolution results with a resolution diagnostic don't actually get traversed for further imports, iirc). So any resolutions are safe to keep between flag settings, but we may still need to refresh the program structure to find more resolutions.
Thats because you have unknowingly made the |
Per #51435 (comment) and skimming the code, this flag only controls whether or not certain diagnostics are shown (see
getResolutionDiagnostic
).