Skip to content

fix: hide Python activity bar icon in non-Python workspaces - #1663

Open
mohityadav8 wants to merge 2 commits into
microsoft:mainfrom
mohityadav8:fix/conditional-activity-bar-icon-v2
Open

fix: hide Python activity bar icon in non-Python workspaces#1663
mohityadav8 wants to merge 2 commits into
microsoft:mainfrom
mohityadav8:fix/conditional-activity-bar-icon-v2

Conversation

@mohityadav8

Copy link
Copy Markdown
Contributor

Fixes microsoft/vscode-python#26015

Added context key python-envs.workspaceHasPython via findFiles + FileSystemWatcher. ANDed into when clauses of the activitybar container and both views.

Fixes microsoft/vscode-python#26015

Added context key python-envs.workspaceHasPython via findFiles + FileSystemWatcher.
ANDed into when clauses of the activitybar container and both views.

Signed-off-by: Mohit Yadav <ymohit799057@gmail.com>
@mohityadav8
mohityadav8 marked this pull request as ready for review July 25, 2026 15:04
Comment thread src/features/views/workspacePythonContext.ts Outdated

@edvilme edvilme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contributions!
LGTML :)

@edvilme edvilme added the bug Issue identified by VS Code Team member as probable bug label Jul 28, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show Python in activity bar conditionally

2 participants