vuejs / language-tools

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

Can it show comment information when typing props? #4663

Closed joy-yu closed 3 weeks ago

joy-yu commented 1 month 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 1 month 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 4 weeks ago

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