Skip to content

Commit 2e65ecb

Browse files
committed
docs/remote: update 'Kill VS Code Server on Host' command
The current commands fail to show any processes corresponding to the VS Code server. Grep for 'vscode-server' instead. Also, filter out processes belonging to other users by using 'ps aux' and adding 'grep $USER' to the pipeline.
1 parent 35b61c0 commit 2e65ecb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/remote/troubleshooting.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,9 @@ The SSH extension provides a command for cleaning up the VS Code Server from the
516516
If you want to run these steps manually, or if the command isn't working for you, you can run a script like this:
517517
518518
```bash
519-
kill -9 `ps ax | grep "remoteExtensionHostAgent.js" | grep -v grep | awk '{print $1}'`
520-
kill -9 `ps ax | grep "watcherService" | grep -v grep | awk '{print $1}'`
519+
# Kill server processes
520+
kill -9 `ps aux | \grep vscode-server | \grep USER | \grep -v grep | awk '{print $2}'`
521+
# Delete related files and folder
521522
rm -rf ~/.vscode-server # Or ~/.vscode-server-insiders
522523
```
523524

0 commit comments

Comments
 (0)