Skip to content
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

Track random access to source files in Program #760

Open
ajafff opened this issue Feb 12, 2021 · 0 comments
Open

Track random access to source files in Program #760

ajafff opened this issue Feb 12, 2021 · 0 comments

Comments

@ajafff
Copy link
Member

ajafff commented Feb 12, 2021

Follow up to #370

Rules that access files on Program, which are not global or a (transitive) dependency of the current file, currently don't work well with caching. That's because the cache is not invalidated if such an implicit dependency changes.

We can do that by building a small wrapper for Program that tracks access to getSourceFile(byPath), getSourceFiles, get*Diagnostics without sourceFile parameter.

TBD:

  • getTypeCatalog
  • getCurrentDirectory
  • getRootFileNames
@ajafff ajafff mentioned this issue Feb 14, 2021
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant