Skip to content

Useless folders created on Windows #256373

Closed as not planned
Closed as not planned

Description

@daniporr

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

  • VS Code Version: 1.102.1
  • OS Version: win32-x64

Steps to Reproduce:

  1. Download VS Code Windows ZIP file
  2. Extract it
  3. Follow the official guideline for Portable mode
  4. Open VS Code

You will see that it created a .vscode folder, and an empty cli folder inside it, even in this case that the user data is stored somewhere else. This is obviously not what an user would expect to happen.

Activity

  1. added
    stale
    on Jul 27, 2025
  2. removed
    stale
    on Jul 28, 2025
  3. TylerLeonhardt commented on Jul 28, 2025

    @TylerLeonhardt
    Member
  4. bpasero commented on Aug 5, 2025

    @bpasero
    Contributor

    I am not able to reproduce. daniporr where exactly is the folder created? can you share screenshots to help understand the issue.

    CLI sounds like Connor maybe.

  5. added
    *duplicate
    on Aug 5, 2025
  6. vs-code-engineering commented on Aug 5, 2025

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

    Happy Coding!

  7. daniporr commented on Sep 6, 2025

    @daniporr
    Author

    @daniporr where exactly is the folder created?

    it is created directly inside your user folder; assuming you are using C as your Windows local disk, it is in: C:\Users\YOUR-USERNAME
    To be clear, it creates: C:\Users\YOUR-USERNAME\.vscode
    and, inside it there is only the following empty folder: C:\Users\YOUR-USERNAME\.vscode\cli

  8. daniporr commented on Sep 6, 2025

    @daniporr
    Author

    Benjamin Pasero (@bpasero) Connor Peet (@connor4312) I have just reproduced it, as reported in my first post, inside a Windows Sandbox, and the issue is still there:

    Image

    Shall I open a new issue?

  9. hncky commented on Sep 11, 2025

    @hncky

    This issue is caused by bin\code-tunnel.exe in the vscode directory.

    You can define the environment variable VSCODE_CLI_DATA_DIR to change its directory.

    For example: setx VSCODE_CLI_DATA_DIR "D:\path\cli"

    It will then create D:\path\cli

    For more information, please use code-tunnel.exe -h

  10. locked and limited conversation to collaborators on Sep 21, 2025
  11. jruales commented on Dec 3, 2025

    @jruales
    Contributor

    duplicate of #184646

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

Metadata

Metadata

Labels

*duplicateconfirmation-pending

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions