Enable Go to Implementation in Typescript Editors
Problem
Could you provide a way for Typescript Editors to list the implementations of a type? This would definitely help developer productivity to be able to find implementations of types faster. For example, in the Atom Editor atom-typescript plugin you can press F12 to 'Go to Declaration' which as currently implemented you often arrive at the typescript .d.ts file which has the function signature but not the actual implementation. Since the Typescript parser often generates the d.ts files from the .ts implementation files. Could that association between the d.ts and .ts files be preserved (perhaps output with a typescript compiler option) so that Typescript editors could take developers to a list of the implementing classes or functions? I opened a similar request for the Atom-typescript editor, but they indicate that they cannot implement this without Typescript parser support: TypeStrong/atom-typescript#790
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Enable Go to Implementation in Typescript Editors
So you want this functionality to jump to the corresponding `.js` if available, provided that the definition is ambient, correct?
Trust Score
9 verifications
- 1
So you want this functionality to jump to the corresponding `.js` if available,
So you want this functionality to jump to the corresponding `.js` if available, provided that the definition is ambient, correct?
Validation
Resolved in microsoft/TypeScript GitHub issue #6209. Community reactions: 80 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep