You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go to inferred type definition via keyboard shortcut #10489
If your cursor is inside Test of const test:Test you can click F12 to go to that type definition - but sometimes you do not have type declared explicitly (infered type) - eg. const test2 then it's impossible to go easily to type defintion. Maybe combination of some key + click (or extra entry in popup) Go to type definition
Wade Anderson (@waderyan) in these cases I do the following: I create a issue against TS and link to it from a VS Code issue (this one). I keep this one as a feature request on our end.
As noted in microsoft/TypeScript#10394 (comment), The feature is already implemented on the TypeScript side, VSCode needs to expose it trough a user gesture.
Dirk Bäumer (@dbaeumer) you can already go ahead and that without additional API (since the feature is pretty UI-less). You can implement that as a command and wire it up with context menu and/or keybindings. I did something similar with my print references extension.
I am in favour of that since having TypeScript exercising this once will help to define/refine the API we want for that.
Activity
waderyan commentedon Aug 16, 2016
Dirk Bäumer (@dbaeumer) this looks like a valid feature request? Is this something provided by VS Code or by Salsa?
dbaeumer commentedon Aug 17, 2016
Nice idea.
Wade Anderson (@waderyan) in these cases I do the following: I create a issue against TS and link to it from a VS Code issue (this one). I keep this one as a feature request on our end.
dbaeumer commentedon Aug 17, 2016
May be we need a depends-on label to mark these.
waderyan commentedon Aug 17, 2016
This issue was moved to microsoft/TypeScript#10394
waderyan commentedon Aug 17, 2016
Reopening to track feature request.
mhegazy commentedon Aug 17, 2016
As noted in microsoft/TypeScript#10394 (comment), The feature is already implemented on the TypeScript side, VSCode needs to expose it trough a user gesture.
waderyan commentedon Aug 17, 2016
Excellent thanks Mohamed Hegazy (@mhegazy).
Dirk Bäumer (@dbaeumer) see above.
dbaeumer commentedon Aug 18, 2016
Didn't know it.
Johannes Rieken (@jrieken) we first need this in the API. Could be bound to Ctrl+Shift+Click. What do you think.
jrieken commentedon Aug 18, 2016
Makes sense.
Dirk Bäumer (@dbaeumer) you can already go ahead and that without additional API (since the feature is pretty UI-less). You can implement that as a command and wire it up with context menu and/or keybindings. I did something similar with my print references extension.
I am in favour of that since having TypeScript exercising this once will help to define/refine the API we want for that.
[-]TypeScript - ability to go to type definition[/-][+]Go to inferred type definition via keyboard shortcut[/+]