Go to Definition
doesn't point to the SFC Source for global components (registered by unplugin-vue-components
)
#4817
Labels
Vue - Official extension or vue-tsc version
2.1.6
VSCode version
1.92.2
Vue version
3.5.1
TypeScript version
5.5.4
System Info
No response
package.json dependencies
Steps to reproduce
App.vue
, right click overJTransition
>Go to definition
JSuspense
What is expected?
JTransition
location is inferred from the type definition export that it's automatically added by `unplugin-vue-components.What is actually happening?
JSuspense
source is shown correctly, butJTransition
is being redirected tocomponents.d.ts
file.Link to minimal reproduction
https://stackblitz.com/edit/vue3-vite-typescript-starter-2bi7tj?file=src%2FApp.vue
Any additional comments?
Found multiple issues with somewhat a similar issue, but all of them were using the old shim declaration files and Nuxt, which is not my reproduction case. Also saw suggested using Takeover mode, and even a 2 PRs (1) (2) but it's now deprecated with the hybrid mode.
The text was updated successfully, but these errors were encountered: