Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache files are stored by VS Code in the permanent storage on Linux instead of the location for cached data #191434

Closed
MurzNN opened this issue Aug 28, 2023 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) triage-needed

Comments

@MurzNN
Copy link

MurzNN commented Aug 28, 2023

  • VSCode Version:
    Version: 1.81.1
    Commit: 6c3e3db
    Date: 2023-08-09T22:18:39.991Z
    Electron: 22.3.18
    ElectronBuildId: 22689846
    Chromium: 108.0.5359.215
    Node.js: 16.17.1
    V8: 10.8.168.25-electron.0
    OS: Linux x64 6.2.0-27-generic

  • Local OS Version: Ubuntu 22.04

  • Remote OS Version: Ubuntu 22.04

  • Remote Extension/Connection Type: Containers

I have a problem with that VS Code uses too much space in my home folder.

By analyzing the stored files I found that it stores a lot of cached files in the permanent storage, instead of using the special storage for cache data in Linux ($XDG_CACHE_HOME, usually located at ~/.cache).

So here is the list of VS Code data directories, that should be moved to the temporary cache storage from the permanent storage for configs and other data:

  • .config/Code/Cache
  • .config/Code/CachedConfigurations
  • .config/Code/CachedData
  • .config/Code/CachedExtensionVSIXs
  • .config/Code/CachedExtensions
  • .config/Code/CachedProfilesData
  • .config/Code/Code Cache
  • .config/Code/DawnCache
  • .config/Code/GPUCache
  • .config/Code/Service Worker/CacheStorage
  • .config/Code/Service Worker/ScriptCache
  • .vscode-server/extensionsCache
  • .vscode-server/data/CachedExtensions
  • .vscode-server/data/CachedProfilesData
  • extensions cache data like .vscode-server/data/User/globalStorage/redhat.vscode-yaml/schemas_cache

All these directories should be moved to the $XDG_CACHE_HOME/Code directory, to not waste space of the permanent storage, designed for storing only configuration and other persistent files, not the cache files.

@deepak1556
Copy link
Collaborator

/duplicate #3884

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 28, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) triage-needed
Projects
None yet
Development

No branches or pull requests

3 participants