question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Old extension versions are not cleaned up

See original GitHub issue

OS/Web Information

  • Web Browser: Chromium
  • Local OS: Ubuntu 22.04
  • Remote OS: Ubuntu 22.04
  • Remote Architecture: amd64
  • code-server --version: 3.12.0 4cd55f94c0a72f05c18cea070e10b969996614d2

Steps to Reproduce

  1. Install extensions
  2. Wait a few months to get many updates
  3. Check the content (and size) of ~/.local/share/code-server/extensions/

Expected

Only one version per extension

Actual

Plenty of versions, e.g.:

$ du -hs ~/.local/share/code-server/extensions/ms-python* | sort -h
59M     ~/.local/share/code-server/extensions/ms-python.python-2021.10.1365161279
60M     ~/.local/share/code-server/extensions/ms-python.python-2019.4.12954
73M     ~/.local/share/code-server/extensions/ms-python.python-2021.1.502429796
73M     ~/.local/share/code-server/extensions/ms-python.python-2021.2.582707922
73M     ~/.local/share/code-server/extensions/ms-python.python-2021.2.625869727
73M     ~/.local/share/code-server/extensions/ms-python.python-2021.2.633441544
73M     ~/.local/share/code-server/extensions/ms-python.python-2021.5.840043038
77M     ~/.local/share/code-server/extensions/ms-python.python-2021.8.1159798656
83M     ~/.local/share/code-server/extensions/ms-python.python-2021.3.680753044
83M     ~/.local/share/code-server/extensions/ms-python.python-2021.4.765268190
85M     ~/.local/share/code-server/extensions/ms-python.python-2019.6.24221
110M    ~/.local/share/code-server/extensions/ms-python.python-2019.9.34911
129M    ~/.local/share/code-server/extensions/ms-python.python-2020.2.63072
147M    ~/.local/share/code-server/extensions/ms-python.python-2020.6.91350
161M    ~/.local/share/code-server/extensions/ms-python.python-2019.11.50794
196M    ~/.local/share/code-server/extensions/ms-python.python-2019.10.44104
197M    ~/.local/share/code-server/extensions/ms-python.python-2020.1.58038

Notes

Apparently, vscode should clean old extension when it is restarted: https://github.com/microsoft/vscode/issues/132896 A restart of code-server doesn’t do that.

PS: thank you for working and maintaining this nice project!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
code-ashercommented, Nov 29, 2021

I am not sure if we were doing this before! It sounds like there is probably some cleanup routine somewhere we should be calling.

0reactions
jsjoeiocommented, May 31, 2022

@matttbe must have been fixed upstream - thanks for confirming!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Old extension never removed · Issue #78107 · microsoft/vscode
Workaround (or not) · Uninstall extension · Close all VsCode instanences · manually go in C:\Users\USER_NAME\.vscode-insiders\extensions · find the ...
Read more >
VSCode doesn't delete older version of extension
The older version will not be deleted if you just reload VSCode (clicking the Reload button in Extensions tab or using the Reload...
Read more >
Is it safe to remove old Chrome extension versions?
If you have no non-recoverable strings attached to those extensions then I would tell you to uninstall all the versions of the extension...
Read more >
How to Unpublish and Uninstall an Extension - Business Central
An extension can't be unpublished if it's installed on a tenant of the server instance. For example, you would unpublish an extension version...
Read more >
Managing Extensions in Visual Studio Code
Discover, add, update, disable and uninstall Visual Studio Code extensions (plug-ins) through the Extension Marketplace.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found