Skip to content

Creating a new venv replaces selection #507

Description

I currently only have the root as a project with a virtual env already created and selected. I created a new virtual environment for dev-requirements.txt prior to adding the tests folder as a project and the new virtual environment is now selected for the root. Should we replace a virtual environment with a virtual environment?

Image

Activity

  1. cwebster-99 commented on Jun 6, 2025

    @cwebster-99
    MemberAuthor

    Then when I add the tests folder as a project it assigns a global Python rather than one of the virtual envs. This seems like a bug since it should probably default to a virtual env but it would be great if we could be smarter about this selection to auto to the environment that matches a req file if present

  2. cwebster-99 commented on Jun 6, 2025

    @cwebster-99
    MemberAuthor

    Ok one more weird update I reloaded and then it selected the devenv for both projects

    Image

  3. cwebster-99 commented on Jun 10, 2025

    @cwebster-99
    MemberAuthor

    Observed this feedback in user studies as well, users did not expect the environment to be automatically selected unless the option made it more clear this was "Create and Select" they imagined it would just create the environment

  4. eleanorjboyd commented on Jun 16, 2025

    @eleanorjboyd
    Member

    Opted to enforce just "create" so this will no longer override existing selections. If we get user feedback we can switch to a "Create and Select" flow

  5. locked as resolved and limited conversation to collaborators on May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions