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
Download the project locally, open in VSCode and install all dependencies
In App.vue, hover over JTransition and JSuspense
What is expected?
Both components have the proper JSDoc annotation given JTransition is properly registered as a GlobalComponent automatically by unplugin-vue-components and has full type annotation otherwise.
What is actually happening?
JTransition (imported automatically by unplugin-vue-components) does not show the JSDoc comment, while JSuspense (ignored in unplugin-vue-components and manually imported) does.
It would also be great if the need for the setupJsdoc macro is removed, by doing this quick reproduction example I learned that it's possible to workaround it by adding an empty <script> tag, so perhaps it can be done by adding it to the virtual codegen (not sure if that's the real name, not knowledgeable enough of the codebase yet) that Volar uses and deprecate that macro?
The text was updated successfully, but these errors were encountered:
ferferga
changed the title
No JSDoc from global components (registered by ´unplugin-vue-components`)
No JSDoc from global components (registered by unplugin-vue-components)
Sep 5, 2024
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
, hover overJTransition
andJSuspense
What is expected?
Both components have the proper JSDoc annotation given
JTransition
is properly registered as a GlobalComponent automatically byunplugin-vue-components
and has full type annotation otherwise.What is actually happening?
JTransition
(imported automatically byunplugin-vue-components
) does not show the JSDoc comment, whileJSuspense
(ignored inunplugin-vue-components
and manually imported) does.Link to minimal reproduction
https://stackblitz.com/edit/vue3-vite-typescript-starter-2bi7tj?file=src%2FApp.vue
Any additional comments?
It would also be great if the need for the setupJsdoc macro is removed, by doing this quick reproduction example I learned that it's possible to workaround it by adding an empty
<script>
tag, so perhaps it can be done by adding it to the virtual codegen (not sure if that's the real name, not knowledgeable enough of the codebase yet) that Volar uses and deprecate that macro?The text was updated successfully, but these errors were encountered: