Repository navigation
Show Python in activity bar conditionally #26015
Description
Activity
- addedfeature-requestRequest for new features or functionalityRequest for new features or functionality
on Jun 20, 2026 - addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jun 20, 2026 - removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jun 20, 2026 Karthik Nadig (@karthiknadig) can i work on this if Eduardo Villalpando Mello (@edvilme) have not started working on this
Reacted by Eduardo Villalpando Mellokarthiknadig commented
on Jun 21, 2026 MemberMore actionsGo for it
Reacted by Mohit YadavKarthik Nadig (@karthiknadig) Quick finding before I start -- the
PythonActivity Bar icon isn't actually contributed by this repo (vscode-python'spackage.jsonhas noviewsContainers). It comes fromvscode-python-environments(id:python), and itswhenclause currently only checks the rollout setting, not whether the workspace has Python -- that's why it shows everywhere.The Testing icon hides correctly for a different reason:
vscode-pythononly activates in Python workspaces (viaworkspaceContains:*), so it never registers a test controller elsewhere, and VS Code auto-hides empty view containers. Same mechanism could work here via a new context key in the other repo.Should I send the PR to
vscode-python-environmentsdirectly, or would you rathervscode-pythonexpose the "is this a Python workspace" signal for it to consume? Want to avoid duplicating detection logic across both extensions./working
Please consider showing the Python icon in the Activities bar only when Python is detected (or providing an option to do this). Something does detect Python related workspaces already, as the Python tests icon is not visible in other workspaces. It would be nice if the Python icon itself would appear iff the Python test icon appears.
I did not find a preexisting issue, searching for "activity bar", "workspace activation", "viewsContainers", "conditional"…