#Go to Reference / Go to Definition not working in Vue files

15 messages · Page 1 of 1 (latest)

radiant venture
#

Hi, Go to Reference and Go to Definition don't work in vue files. I have a component defined and am using it in the page, but when I press F2, nothing happens.

sonic onyx
#

are you using the Volar extension?

#

@radiant venture

radiant venture
#

The volar extension cannot be installed anymore

sonic onyx
#

oh

radiant venture
#

I'm using the official vue extension

sonic onyx
#

haven't used Vue in a long time, not very up to date with the modern ecosystem

#

but yeah, it should be the responsability of the language server provided by the extension

radiant venture
#

i'd like to note that clicking on the Welcome and Nuxt3 components does take me to where they're defined

sonic onyx
#

so check for open issues on the official extension

radiant venture
#

i'm going to go insane if this is intended behaviour
"go to referennce doesn't work outside the script tag"

sonic onyx
#

maybe some features are just not implemented

#

it's up to the language servers to implement the different actions

radiant venture
#

The solution is simple: vue must embrace raw jsx / tsx completly and just rely on tsserver so it doesn't have to maintain a separate language extension and language anymore

#

I am in contact with Evan You right now /s