I use VSC as editor and have opened a remote connection to my Debian server via SSH in VSC.
I work there on a Node.js project. I have started in VSC a terminal and there started my Node.js server with the command npm start
.
Now my issue:
Sometimes I kill the terminal in VSC accidently. Then, the Nodejs server is still running in the background. Therefore, I’m not able to stop the NodeJS server anymore, or see the output, I’ve had in the previously opened Terminal.
The only way to stop the NodeJS server I’ve found is, to open htop
, and kill all vscode-server processes. Then reconnect the SSH session in VSC, open a new terminal and start the Nodejs Server again.
Is there any method to retrieve the “lost” terminal again, to avoid this cumbersome process?