Include inferred usages in 'find references' #12685
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Suggestion
An idea for TypeScript
TS is type-checking
Parent
, which involves type checking thechildren
property and thus each `Child.When I select
name
inside my Array mapper function and invoke TS to find references, VSCode/TypeScript server does not include the original type definition ofChild.name
:(See
Child.name
is not highlighted).However, if I add the type annotation for
Child
, it does include it in the list of references:Would it be possible to make TypeScript include the references that are inferred instead of annotated, e.g. example 1 as well as example 2?
The text was updated successfully, but these errors were encountered: