Skip to content

Jsdoc annotations on multi-word props #5215

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

Closed
fabruex opened this issue Feb 26, 2025 · 1 comment
Closed

Jsdoc annotations on multi-word props #5215

fabruex opened this issue Feb 26, 2025 · 1 comment
Labels
good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug

Comments

@fabruex
Copy link

fabruex commented Feb 26, 2025

Vue - Official extension or vue-tsc version

2.2.4

VSCode version

1.97.2

Vue version

3.5.13

TypeScript version

5.7.2

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1355U
    Memory: 2.93 GB / 15.69 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (132.0.2957.140)
    Internet Explorer: 11.0.26100.1882

Steps to reproduce

Just create a new Vue app with npm create vue@latest and create a ts component with with jsdoc annotations for props, like this:

<script setup lang="ts">
  defineProps<{
    /**
     * Single word prop
     */
    singlewordprop: string
    /**
     * Two words prop
     */
    twowordsProp: string
    /**
     * Three words prop
     */
    threeWordsProp: string

  }>()
</script>

What is expected?

I expect to see jsdoc annotations on hover for all props.

What is actually happening?

Looks like jsdoc annotations are showed on hover only for props with one or two words, not for more.

I tried with an older version of Vue extension (2.2.2) and everything works fine.

This works:

Image

This works:

Image

This doesn't work:

Image

Link to minimal reproduction

https://github.com/fabruex/vue-test-jsdoc-props

Any additional comments?

No response

@KazariEX KazariEX added good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug and removed pending triage labels Feb 26, 2025
@KazariEX
Copy link
Member

This has been fixed by #5207.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug
Projects
None yet
Development

No branches or pull requests

2 participants