Skip to content

Hide Add Python Project context menu item if already selected as Python Project #272

Description

  1. Select a folder/file as a Python project
  2. Navigate to the file explorer
  3. Right click on workspace or file that is already added
  4. ❗We still show "Add Python Project" even though it is already selected

Can we hide this if it is already selected to reduce confusion. I think renaming this item to "Add as Python project" would be helpful as well since we plan to introduce project creation this could be confused as creating a new project from scratch.

Activity

  1. eleanorjboyd commented on May 20, 2025

    @eleanorjboyd
    Member

    To test, make sure that:
    When user right-clicks on a file/folder not yet added as a Python project: "Add as Python Project" is shown
    When user right-clicks on a file/folder already added as a Python project: The menu item is hidden

  2. added a commit that references this issue on May 22, 2025
    6ccbb2f
  3. rzhao271 commented on Jun 5, 2025

    @rzhao271
    Contributor

    My current folder layout is

    • testworkspace3
      • emmet
      • simple

    I open the folder testworkspace3, and it already seems to be added as a Python project by default (probably because I already have a venv set up for it). After manually adding emmet as a separate Python project with the context menu, I'm unable to add simple as a separate Python project with the context menu.

  4. 11 remaining items

  5. added a commit that references this issue on Oct 23, 2025
    a26df66
  6. eleanorjboyd commented on Sep 30, 2026

    @eleanorjboyd
    Member

    this is just really challenging to do because of the menu constraints. If we get a lot of complaints / questions on it maybe we can circle back but I don't think it is worth the effort atm

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 bugverification-foundIssue verification failed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions