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

When disableAutomaticTypeAcquisition is set to true, all hover documentation is rendered as [object Object] #343

Closed dmitmel closed 2 years ago

dmitmel commented 2 years ago

Reproduction:

  1. Create this minimal vimrc:
    set rtp^=~/.config/nvim/plugged/coc.nvim
    let g:coc_global_extensions = ['coc-tsserver']
    let g:coc_user_config = {
    \ 'tsserver.disableAutomaticTypeAcquisition': v:true,
    \ }
  2. nvim -u minimal_vimrc.vim test.js
  3. Type console.log into the buffer
  4. Position the cursor over log
  5. :call CocAction('doHover')
  6. The following popup is displayed: \ image
chemzqm commented 2 years ago

Install latest coc-tsserver by run :CocUpdate

dmitmel commented 2 years ago

Thanks, it did the trick.