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

Clear out-of-date files in global storage #2597

Closed
jdneo opened this issue Jul 27, 2022 · 3 comments · Fixed by #3724
Closed

Clear out-of-date files in global storage #2597

jdneo opened this issue Jul 27, 2022 · 3 comments · Fixed by #3724

Comments

@jdneo
Copy link
Collaborator

jdneo commented Jul 27, 2022

The extension will store some caches in global storage with each version. Each version will occupy around 15~20MB, which the total size will be quite large when users switched to the pre-release channel.

image

We can consider detect the out-of-date version and remove it.

@CsCherrYY
Copy link
Contributor

I remember @rgrunber mentioned this before: #2285 (comment) We have already updated to M2E 2.0, so is there any difference on size of the recent versions?

Besides, we can have such logic to clean previous global storage folders.

@jdneo
Copy link
Collaborator Author

jdneo commented Jul 27, 2022

so is there any difference on size of the recent versions?

Yes the size is smaller. For example, the size if the folder 1.3.0 is ~24MB, while the size of 1.10.2022072204 takes ~16MB

@rgrunber
Copy link
Member

As per discussions, maybe there is some feature to have VS Code clear such cached folders at the platform level ? Or maybe there is something we can take advantage of in VS Code API that can mark those folders for deletion on certain staleness criteria ?

logonoff added a commit to logonoff/vscode-java that referenced this issue Jul 26, 2024
logonoff added a commit to logonoff/vscode-java that referenced this issue Jul 26, 2024
@rgrunber rgrunber added this to the End July 2024 milestone Jul 26, 2024
logonoff added a commit to logonoff/vscode-java that referenced this issue Jul 26, 2024
logonoff added a commit to logonoff/vscode-java that referenced this issue Jul 26, 2024
rgrunber pushed a commit that referenced this issue Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants