Skip to content
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

hover on prop showing less info than before #1971

Closed
kingyue737 opened this issue Oct 10, 2022 · 6 comments
Closed

hover on prop showing less info than before #1971

kingyue737 opened this issue Oct 10, 2022 · 6 comments

Comments

@kingyue737
Copy link
Contributor

Before:
Volar shows acceptable types of the hovered prop and its description(jsdoc), perfect!
image

Now:
Volar only shows the type of the argument passed to prop.
image

@johnsoncodehk
Copy link
Member

Can you try setting vueCompilerOptions.jsxTemplates = true in tsconfig?

@kingyue737
Copy link
Contributor Author

Can you try setting vueCompilerOptions.jsxTemplates = true in tsconfig?

It works! Thanks

@johnsoncodehk
Copy link
Member

It's also works to me without setting vueCompilerOptions.jsxTemplates = true, could you provide repro case?

@kingyue737
Copy link
Contributor Author

@johnsoncodehk this issue exists in v1.0.3 when vueCompilerOptions.jsxTemplates = false
After upgrading to v1.0.5, no such issue.

@SD-Gaming
Copy link

I use volar v1.0.7, but I also can't see the more jsdoc description.

image

any other setting?

@johnsoncodehk this issue exists in v1.0.3 when vueCompilerOptions.jsxTemplates = false After upgrading to v1.0.5, no such issue.

@kingyue737
Copy link
Contributor Author

@SD-Gaming Are you using Vuetify 2? Vuetify 2 does not have built-in type support for components. I generate it myself. You can refer to this guide vuetifyjs/vuetify#14798 (comment) .
If you need full example, here is my template project https://github.com/kingyue737/vitify-admin which contains this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants