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

Auto imports completion is erratic #367

Closed flupke closed 2 years ago

flupke commented 2 years ago

Very often auto import completion options are not offered, and I have to CocRestart to get them. The first 2 or 3 completions always work, then it stops working like 90% of the time (sometimes it works), until I restart the server.

Sometimes the completion works for a few minutes, sometimes it stops working right after a restart. I noticed it seems to fail frequently after opening a new file.

chemzqm commented 2 years ago

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

Could be issue with your tsserver or nodejs on your system

flupke commented 2 years ago

Thanks, if anyone comes here for the same issue, I found a similar issue, and contributed a complete log demonstrating it, here: https://github.com/microsoft/TypeScript/issues/48880