neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

JSDoc deprecation message missing only in static warning #397

Closed rschristian closed 1 year ago

rschristian commented 1 year ago

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

Env

chemzqm commented 1 year ago

VSCode shows hove message along with diagnostic message, you can invoke CocAction('doHover')

rschristian commented 1 year ago

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.

chemzqm commented 1 year ago

Not yet

rschristian commented 1 year ago

Okay, thanks!