jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
288 stars 40 forks source link

[FR] Uninstall Server #138

Open moritztim opened 7 months ago

moritztim commented 7 months ago

I would like to have the ability to delete the server on a remote, as a command and as a setting to automatically delete it before disconnecting. Currently the user wouldn't know that there's a server being installed and that it's gonna get left behind in the end. To remove it the user needs to manually make a separate connection and delete the server.

Related: #98

C-Logemann commented 4 months ago

Beside the approach above I sometimes run into a corrupted state of a remote server. The workaround is to delete the server on the remote host. For this I need to login outside of vscodium with a terminal. An ssh login beside or bypassing the remote server would be a good start to fix.

On the other side there are sometimes situations where I only need a onetime vscodium access to a server. When work is done it would be fine to get an easy way to cleanup. Especially on HA SSD cluster storage space is expensive. So this would be another reason to cleanup after leaving.

C-Logemann commented 4 months ago

Didn't tested it yet. There is a "Kill" command for the server in MS Remote plugin for VS code. And I found on one system a .vscodium-server folder with already 1.4G data (because of 8 instances in bin folder). So maybe it would a good thing if this plugin could "monitor" this and maybe suggest to cleanup partially or complete.