index types not discoverable across files (via find-all-references) #40305
Labels
Bug
A bug in TypeScript
Domain: Symbol Navigation
Relates to go-to-definition, find-all-references, highlighting/occurrences.
Milestone
Steps to Reproduce:
Create two files:
Then try
find all references
for theConfig["user"]
. It finds references in the same file (1), but not in different files (2), UNLESS the file also contains that index type annotating a variable with the same name as the index (3), in which case it finds all references for that file including (2).Try on CSB: https://codesandbox.io/s/priceless-easley-2w6pi?file=/src/b.ts
This relates to index types only, not base types.
Affects find/peek references/definitions etc.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: