open-remote-ssh icon indicating copy to clipboard operation
open-remote-ssh copied to clipboard

Delete Old VSCodium-REH Binary Directories

Open lex-ibm opened this issue 2 years ago • 2 comments

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:

  • Delete old instance directories (I was thinking older than 3 releases but might make this number variable)
  • Check that the binary is not actually running (if so, maybe have the option to force kill it?)

@jeanp413 please advice.

lex-ibm avatar Jun 22 '23 15:06 lex-ibm

@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

jeanp413 avatar Jun 22 '23 17:06 jeanp413

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".

GitMensch avatar Jan 05 '24 14:01 GitMensch