Open janlimpens opened 2 years ago
give this cmd a try
ps ax | grep LanguageServer | grep -v \"grep\" | awk '{print $1}' | xargs kill;
and reload vscode window
ps ax | grep LanguageServer | grep -v \"grep\" | awk '{print $1}' | xargs kill;
That's a nice snippet! For me, it was
ps ax | grep LanguageServer | grep -v grep | awk '{print $1}' | xargs kill;
, though.
@janlimpens sry. copy paste. this snippet is a copy from my vscode workspace. I installed the "adrianwilczynski.terminal-commands" extension for running this command in a console. but it should be working with the vscode buildin "Tasks"
pkill -f Lang
is even shorter (maybe use LanguageServer in case there is another process with Lang in the name)
At least when the plugin can't connect to the server 5 times, and it stops trying, log output could tell people to try to restart the process. Ideally, this would be provided as an action (c-s-P). There also could be some action to allow retrying the process other than restarting code itself.
I do