Skip to content

Copies entire project to VSCode workspaceStorage. Doesn't cleanup on Uninstall #984

Open

Description

@JonathanShor

Upon opening the single .java file in the repo, this extension (secretly, as far as I'm concerned) copied the entire workspace file tree to VSCode's workspaceStorage. This duplicated 50GB, including (obviously) many files with no relationship to java. Not sure what the rationale for copying every file could be...
but at the very least, clean everything up upon uninstall guys.

Environment
  • Operating System: macOS 10.14.5
  • JDK version: None!
  • Visual Studio Code version: 1.36.1
  • Java extension version: latest

Activity

  1. JonathanShor commented on Jul 17, 2019

    @JonathanShor
    Author

    Related to #960 and #634 maybe?

  2. fbricon commented on Jul 17, 2019

    @fbricon
    Collaborator

    @JonathanShor this kinda relates to those issues but it's a bit different. When you open a single java file, the language server treats its folder as a java source folder, which is then processed in the language server's workspace (in workspaceStorage). the workspace storage is never cleaned because it's faster to reuse it the next time you reopen your folder.

    @testforstephen @yaohaizh we should prolly add some filters to the invisible project source folders. Only process java and properties files, with the possibility of configuring additional file types.

  3. fbricon commented on Jul 17, 2019

    @fbricon
    Collaborator

    @testforstephen @yaohaizh is there an API to process stuff during extension uninstallation?

  4. testforstephen commented on Jul 18, 2019

    @testforstephen
    Collaborator

    Looks like there is a thread vscode-45474 to discuss adding an uninstall hook, but it's not supported yet.

  5. aphyr commented on Dec 1, 2026

    @aphyr

    Oof, yeah, just got bit by this. redhat.java copied a huge volume of binary files from my project into .config/Code/User/workspaceStorage/.../redhat.java/jdt_ws/<project>/bin. Any way to make that stop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions