Is there a way to prevent PyCharm from automatically closing terminals from an expired SSH session?
Say I have a remote session to a server, with some data logged:
Then, my VPN connection expires, and initially my logged data (say for example, results from my experiments above) is still there (and I can copy/paste the results), but I can't type anything on the remote terminal. That's totally fine and expected, since the connection between my computer and the remote server has been severed due to the VPN suspension.
But then the real annoyance is that a minute later, PyCharm automatically closes the expired remote session and replaces it with a new bash session on my personal computer (as seen below where the previous session with email@example.com has been replaced with a blank session with userid@My-Personal-Computer). So basically it seems at this point that if I hadn't copy-pasted the results from my remote session fast enough, all that data would have been lost.
Now my question is, is there a way to prevent PyCharm from automatically closing expired/dead remote sessions? If not, is there a way to automatically save a "history" of terminal session logs in some file for viewing after the session has already been closed?