Go to Definition following alias redirections.
For example, in Nuxt 3 or Vitesse projects, we provide auto import for APIs and components. To provide types for these auto imports, the tools will generate a
With this declaration file, we could have type safety using
The only small downside is that when you use "Go to definition" in the code, the IDE will redirect you the the definition file we generated instead of the real definition source.
So, this extension is built to solve this. With this extension installed, when the "Go to definition" command hits the definition file, it will then redirect again to the definition source.
Working with Vue Components
If you find trouble redirecting auto-registed components by Nuxt 3 or
MIT License © 2022 Anthony Fu