-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSDoc intellisense for Vue 3 setup events and component description #1894
Comments
Due to TypeScript limitation we can't support JSDoc for interface Props {
/** test event */
onTest(): void;
}
const props = defineProps<Props>(); |
@johnsoncodehk will this be a thing for vue-tsc? Or only for IDE support? |
@d8vjork all TS behavior is affected vue-tsc and IDE support both. |
I saw the pinned issue about maintaining this project. Will be very happy to help with this project and this feature in particular, but I've 0 (none) idea about TypeScript's tsc. |
What changes need to be done to copy the behavior of vue-styleguidist in volar/vue-component-meta? |
I wonder with the introduction of |
Implemented via #4365, for script setup components that need to work with Vue 3.5, for generic components it should work with next Vue langauge tools release. |
Discussed in #1473
Originally posted by vincerubinetti June 17, 2022
I'm using Vue 3 and the composition API with
<script setup>
. Just upgraded to the latest version of Vue and and updated my Volar extension.All of this works great (note the comments):
TestComponent.vue
But if I use the component in another template, there are some holes:
Hovering over the
text
attribute shows "text to show in label", but hovering over@test
does not show "test event". It would also be cool if hovering over theTestComponent
tag showed "fun test component" (and any other JSDoc info I suppose).I did try different JSDoc tags like
@description
and@function
to see if those would show up, but they didn't.It'd be cool if Volar could support this. I think there are other tools/plugins that do this, but they all seem to be more on the side of doc generators. I don't need a doc generator because my app is small enough, but I do want/need intellisense for components/props/events because I forget what they are.
Sorry if this is the wrong place for this, I'm not sure if this falls under the scope of Vue/Volar/VS Code/TypeScript/etc.
The text was updated successfully, but these errors were encountered: