microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.61k stars 274 forks source link

The `.vscode-server/bin` directory is always growing in time with no auto cleanup #8846

Open MurzNN opened 1 year ago

MurzNN commented 1 year ago

I have a problem with the .vscode-server/bin directory on remote containers - it is always growing! So, in time it grows to huge sizes of several gigabytes! And now I have 19 gigabytes occupied by this folder!

It contains cached versions of the vscode server from all previous versions, so on each new release I'm getting a new bunch of megabytes here.

To resolve this problem, I think VS Code should include some cleanup procedure, that removes the oldest versions from this folder automatically.

MurzNN commented 11 months ago

Will be good to have the built-in default ability to auto clean up all old versions with keeping the last 3 versions.

Or cleanup by the last use time of the version, to keep even very old versions that are still in use by some developers for some reason.

davetapley commented 1 month ago

Just ran in to this, 6GB since Feb 2022 🤯

I assume it's safe to just delete .vscode-server and let it recreate it on next connection?

Because I just did that, and it seems to work, and directory is only 160 MB now.