python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

Document command line to kill language server

Open dashesy opened this issue 5 years ago • 1 comments

I first asked this feature here.

I use project with Python/C++ over SSH. After few days of use, I guess VSCode updates and previous language server processes remain dangling. I understand this is improving, and has its own set of issues, but I would like to have an easy way to restart/kill the server.

What is the best way to kill them all?

Something like killall node does not kill them anymore.

dashesy avatar May 12 '20 17:05 dashesy

This LS isn't in node, so if killing node worked before it was likely because the LS's parent exited. The LS should be watching its parent and if the parent exists, will also exit. That may not be working (and may be related or the same as #1755).

On Linux, the actual binary name is Microsoft.Python.LanguageServer; I'd check in ps/top/htop to verify this, but you should be able to kill processes with that name.

jakebailey avatar May 12 '20 17:05 jakebailey