Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Old extension files kept forever #3683

Unanswered
aptalca asked this question in Q&A
Jun 28, 2021 · 1 comments · 3 replies
Discussion options

Hi,

I just noticed that the data folder of my code-server instance was getting quite large. Digging in, I realized code-server kept copies of all the old extensions it ever downloaded. There were 2.4GB of python extension files.

Are they not supposed to be pruned when updated? Is this a bug or intended behavior?

If intended, is there a way to prune them without manually going through and deleting the files on disk?

Thanks

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

I guess this is the default behavior of vscode / code @jsjoeio
I guess code caches old extensions instead of installing again when you want to install a specific version of it.
As per the discussions there, seems like restarting the code-server container (if docker) or the service shall fix your issue.
microsoft/vscode#106595
In my case, i always faced like the extensions being cached and not cleared at all.

Let me know if i am wrong in my answer, i am not so old in code-server although, it has been year by now.

You must be logged in to vote
3 replies
Comment options

Thanks. It looks like that link is about the cached downloads under CachedExtensionVSIXs folder. I'm referring to the installed extensions under the extensions folder. I had old extension versions going back years even though code server has been restarted plenty of times.

Comment options

I actually noticed this too with old Python extensions hanging around even though I uninstalled them globally. I believe this is intended, but not sure. And I'm not sure if there is any easy way to prune them without doing it manually. Let's see if @code-asher or @oxy know

Comment options

Yeah it seems that VS Code doesn't actually delete extensions, it just creates a .obsolete file with the names of the extensions that shouldn't be loaded.

But I am not sure if they are intended to sit around forever or if there is some cleanup code we are supposed to be running that we aren't (or that we need to implement).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /