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

Suggestions from project stop intermittently #347

Closed dj-foxxy closed 1 year ago

dj-foxxy commented 2 years ago

In my TS project, suggestions from the project (not external, e.g., browser objects) stop appearing in the suggestions list. Type checking still works, just suggestions stop. :CocRestart temporary fixes the issue.

I'm not sure what information to provide so let me know and I'll add it to this issue.

Thanks :)

chemzqm commented 2 years ago

Seems your tsserver stop working for some reason https://github.com/neoclide/coc-tsserver#troubleshooting

dj-foxxy commented 2 years ago

Thanks. I've updated my config as per your link and will post again when it next happens.

dj-foxxy commented 2 years ago

These are logs just after it happened. I looked at the end of the logs but I don't know enough about coc or tsserver to see an issue. Here are the full logs, hope this helps.

https://foxdogstudios.com/static/peter/tsserver.log https://foxdogstudios.com/static/peter/tsserver.output

dj-foxxy commented 2 years ago

I tried settings the max TS server memory really high ("tsserver.maxTsServerMemory": 16384) to see that would help. The issue still occurred and looking at htop I can see that the server is still running and using a small amount of memory.

chemzqm commented 1 year ago

The tsserver could be slow after some time, use latest typescript > 4.9 and disable logging of tsserver should helps.

  "tsserver.log": "off",
  "tsserver.trace.server": "off",