language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

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

Open haug1 opened this issue 1 year ago • 3 comments

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

haug1 avatar Mar 12 '24 16:03 haug1

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 🙈

aubcel avatar Mar 13 '24 10:03 aubcel

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

drunkenplatypus avatar Mar 13 '24 17:03 drunkenplatypus

I have the same problem with script setup composition api

noor-tg avatar Oct 06 '24 11:10 noor-tg