Skip to content

Track random access to source files in Program #760

Open
@ajafff

Description

@ajafff

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions