Typescript "Go to Definition" goes to function type, not its implementation #18321
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
feature-request
Request for new features or functionality
javascript
JavaScript support issues
typescript
Typescript support issues
Steps to Reproduce:
a.ts
, export a function type:b.ts
, import the type and export a variable which implements itc.ts
, import the function variable, and invoke itOutcome
VSC takes you to
a.ts
(where the type of the variable is defined), notb.ts
(where the variable is defined).Real life example
You have a Knockout view model class with properties of type
KnockoutObservable<T>
(which may be invoked as a function). When you try to navigate to the definition of such a property, VSC takes you to the definition ofKnockoutObservable
inknockout.d.ts
, not to the view model class.The text was updated successfully, but these errors were encountered: