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
Given the below code, I would really like to be able to jump to the definition of the 'foo':
constobj={foo: 'bar'asconst,hello: 'world'asconst,}functionget<T,KextendskeyofT>(obj: T,path: K): T[K]{returnobj[path]}constval=get(obj,'foo')// 👆👆👆 Is there a way of make jump to definition work here?// I really want to CMD+click `'foo'` and jump to line #2
Feature request
Go to definition for TypeScript literal strings.
Example
Given the below code, I would really like to be able to jump to the definition of the
'foo':Link to TypeScript playground.
WebStorm Demo of the same code
In WebStorm, it actually works how I wish that VSCode worked, here's a video:
nice.webstorm.mov