Cache files not stored under appropriate XDG directory #126182
Labels
bug
Issue identified by VS Code Team member as probable bug
electron
Issues and items related to Electron
linux
Issues with VS Code on Linux
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
upstream-issue-linked
This is an upstream issue that has been reported upstream
Does this issue occur when all extensions are disabled?: Yes
VSCode appears to store cache/intermediate files under ~/.config/Code. For example: Cache/, CachedConfigurations/, CachedData/, CachedExtensions/, CachedExtensionsVSIXs/, Code Cache/, GPUCache/, etc. There may be other files/folders containing temporary data that is also inappropriate for the ~/.config location.
On a well used Ubuntu system, my total ~/.config/ is 657 MB, the ~/.config/Code directory is 606 MB, and the sum of all .config/Code/ directories starting with “Cache” is 568 MB. While it is possible that the “Cache” naming is a red herring, I believe they should be stored under ~/.cache, as per the XDG specification.
Only noticed this because I am trying to become more diligent about backups, and the total size of my ~/.config was surprising.
The text was updated successfully, but these errors were encountered: