You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vuejs/core#3399 has landed in Vue 3.5, and the GlobalDirectives interface exists, but Volar does not seem to populate directive completions from the the GlobalDirectives interface.
On a fresh project created with pnpm create vue@latest, with VSCode, adding the module declaration
(in App.vue) enables type hints and jump to definition (at least to the module declaration) on the directive in Vue SFCs, but the completion popup when attempting to use the directive does not include v-hello-world.
I only managed to make the directive completion work when doing
What problem does this feature solve?
vuejs/core#3399 has landed in Vue 3.5, and the
GlobalDirectives
interface exists, but Volar does not seem to populate directive completions from the theGlobalDirectives
interface.On a fresh project created with
pnpm create vue@latest
, with VSCode, adding the module declaration(in
App.vue
) enables type hints and jump to definition (at least to the module declaration) on the directive in Vue SFCs, but the completion popup when attempting to use the directive does not includev-hello-world
.I only managed to make the directive completion work when doing
What does the proposed solution look like?
Volar should provide completion for global directives declared in the
GlobalDirectives
interface.The text was updated successfully, but these errors were encountered: