vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.83k stars 397 forks source link

Multiple jumps to get to definition of component from template (OptionsAPI issue only) #4083

Open haug1 opened 7 months ago

haug1 commented 7 months ago

Must go to definition 3 times to get to the component when the wrapper component is using the Options API implementation.

I also show the same is 1 jump when using the Composition API implementation:

Go-To-Definition-Issue-Options-API

aubcel commented 7 months ago

We encountered the same issue with the options api. We have one Vue3 project that uses composition api and there we directly can jump from the template to the definition file of the child component. In our project that uses options api we jump around like you show in your snippet. Took me some time to find out it's an options api thing 🙈

drunkenplatypus commented 7 months ago

+1 This is very annoying, Vetur does it in 1 jump.

noor-tg commented 3 weeks ago

I have the same problem with script setup composition api