jeanp413 / open-remote-ssh

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

Delete Old VSCodium-REH Binary Directories #98

Open lex-ibm opened 1 year ago

lex-ibm commented 1 year ago

I have a limited home space and with the last few updates to VSCodium I managed to fill my home dir with vscodium-reh binaries.

I have a PoC but needs a bit of cleaning, but just for the record, here is what would be expected out of this:

@jeanp413 please advice.

jeanp413 commented 1 year ago

@lex-ibm yep sounds good in general except for force kill, if server is running most probably there's another client connected using older version of vscode, server will kill itself after 5 min if there's no connection

GitMensch commented 10 months ago

We don't have the hash for the previous versions, the only thing that may be used is the time stamp. But this still would not qualify enough, because a user may connect from 5 different machines using 3 different versions of vscode - so the server needs to be different, too and those 3 need to be kept, not the 3 newest ones.

Therefore I think - in any case - that this would need to be an extension setting, either opt-in, opt-out, or "keep only the versions with the configured hashes".