vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.87k stars 400 forks source link

Can it show comment information when typing props? #4663

Closed joy-yu closed 2 months ago

joy-yu commented 3 months ago

What problem does this feature solve?

There are no additional information to display when typing props.

image

Is that possible to show extra information just like data in current file. image

What does the proposed solution look like?

No solution.

joy-yu commented 2 months ago

I studied the source code and implemented this function simply.

I found that the CompletionItem documentation only support markdown style, so we must transfer comment and jsdoc info to markdown manually.

Perhaps there are still many undiscovered edge cases. Is the official interested in fully implementing and testing it?

image

ferferga commented 2 months ago

@joy-yu Hello! Can you make a PR for this please? It would be great to have this upstreamed!