Skip to content

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

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

Closed
Tracked by #390
cwebster-99 opened this issue Apr 8, 2025 · 1 comment · Fixed by #432
Closed
Tracked by #390
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verification-needed Verification of issue is requested
Milestone

Comments

@cwebster-99
Copy link
Member

  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.

@eleanorjboyd
Copy link
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

@eleanorjboyd eleanorjboyd added this to the May 2025 milestone May 30, 2025
@eleanorjboyd eleanorjboyd added the verification-needed Verification of issue is requested label May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verification-needed Verification of issue is requested
Projects
None yet
3 participants