Add info to "hover" peek type info
Is it possible to add the info to the hover peek type info popup?
💯 came here to find this exact issue!
This is the missing piece which 10x's the UX of this extension and makes it actually super useful for daily usage. Not sure if it's possible within VSCode though.
VSCode feature that allows extensions to add sections into hover popup is called "hover provider". But it won't allow to have a tree view, only static content. Best use for it would be to augment the information that is provided by native hover.
There is another extension - Prettify TypeScript - that adds a hover provider to show more unrolled type definition than the native hover provider. Unfortunately, that information is not very useful for me most of the time.
What I'm looking for: I'd love to see better TSDoc descriptions in the hover. For example, VSCode doesn't show descriptions of function parameters (except for very specific situations).
Being able to see TSDoc descriptions in TypeScript Explorer panel would've been still handy. Unfortunately, the panel only shows descriptions on hover - this makes it requiring notable effort for something I'd wish to get effortlessly.
Relevant documentation and example links for hover providers:
- https://code.visualstudio.com/api/language-extensions/programmatic-language-features
- https://code.visualstudio.com/api/references/vscode-api#HoverProvider
- https://code.visualstudio.com/api/references/document-selector
- https://github.com/mylesmmurphy/prettify-ts/blob/main/packages/vscode-extension/src/hover-provider.ts