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

Main doc string in typescript hover window sometimes just shows `[object Object]` #338

Closed kmoschcau closed 2 years ago

kmoschcau commented 2 years ago

Hi, since a few days now I have this sporadic behavior that the main doc string for a symbol in typescript just shows [object Object] on hover.

I am still trying to figure out how to reliably reproduce it, but so far it is a bit inconsistent. At one point it seemed like modifying the current buffer would get it into a state where this happens, but now this doesn't seem to reproduce the problem anymore. It seems though that once this starts showing up, it never works again in that buffer. When I open another unedited file, the hover doc string looks OK.

Here's a screenshot. VirtualBoxVM_cJYbHyyYgZ

kmoschcau commented 2 years ago

Some more detail: When the documentation for autocompletion is shown for the same item, it is shown correctly.

kmoschcau commented 2 years ago

It gets even better, now I am seeing arrays of objects. VirtualBoxVM_gDNvdEUkgR