Closed rschristian closed 1 year ago
VSCode shows hove message along with diagnostic message, you can invoke CocAction('doHover')
Is there a way to do that automatically? When it comes to deprecations, that "hover message" (or at least the doc comment) is a rather key part of the diagnostic.
Not yet
Okay, thanks!
Reproduction Repository
https://github.com/rschristian/coc-tsserver-jsdoc-deprecation-bug
Description
The JSDoc deprecation message, that is, the content provided alongside
@deprecated
, is missing in static warnings. It is working correctly in autocomplete.I'll try to poke around, but I'm quite unfamiliar. Maybe it's as simple as stripping out the JSDoc messages in this one popup form, but not another?
Desired Outcome
I'd like the warning popup to display the deprecation reason, not just the generic TS message about the function signature being deprecated. This would better mirror VSCode & other editors.
Images
Correctly showing in autocomplete:
Not showing as a static warning
VSCode displaying the deprecation message
Env
nvim: v0.7.2
coc.nvim: 0.0.82
coc-tsserver: 1.11.5
Result of
:CocInfo