typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Genericize ref counting caches; fix extended config cache bug

Open andrewbranch opened this issue 2 weeks ago • 0 comments

I plan to add another one of these shared caches for parsed package.json files for the auto-imports work, so I went ahead and made the implementation generic, which required some fiddling with config file parsing to not pass a closure on every cache lookup so we don’t also pass a closure on every source file lookup. I also noticed a bug with the extended config caching, which is covered in a new test and fixed.

andrewbranch avatar Dec 10 '25 00:12 andrewbranch