If my VS Code Remote SSH session gets stale somehow, e.g. because the connection went down or something, often all the processes that I run in the terminal tabs continue to run, using my resources. (I have to resort to remembering their names and killing them manually after grepping ps aux
.)
I want to make sure that whatever I run through VS Code, is properly killed. An inactivity timeout or any better way to detect that it's time to clean up child process, I'd settle for whatever.
I couldn't find any setting or extension to do what I need, perhaps because I couldn't find a good way to phrase it. I don't expect this to be a rare or unique need, so perhaps there's a solution out there?