Skip to content

VS Code's C:\Users\username\AppData\Roaming\Code\WebStorage\2\CacheStorage folder grows indefinitely and has currently reached over 30GB. #310384

@shaonvpiaoyaodesilian

Description

@shaonvpiaoyaodesilian

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.106.1 (user setup)
  • OS Version: Windows 11

Steps to Reproduce:

  1. Connect to a remote server using Remote-SSH.
    2.Directly open a relatively large image file (approximately 20MB) from the remote folder in VS Code.
    3.Repeat the above steps multiple times. The CacheStorage folder size grows rapidly.

Expected Behavior
The WebView cache should have a reasonable automatic cleanup mechanism, or provide a setting option to limit the maximum cache size.
Actual Behavior
The cache is never automatically cleaned up. The only solution is to manually delete the entire folder. Every time a large image is opened, a large amount of new cache data is generated.
Additional Information

Related existing issues: #166632 #152519

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions