Skip to content

Comments

bug: terminal triggered package refresh to use correct env#1175

Merged
eleanorjboyd merged 1 commit intomicrosoft:mainfrom
eleanorjboyd:meaningful-lobster
Feb 4, 2026
Merged

bug: terminal triggered package refresh to use correct env#1175
eleanorjboyd merged 1 commit intomicrosoft:mainfrom
eleanorjboyd:meaningful-lobster

Conversation

@eleanorjboyd
Copy link
Member

@eleanorjboyd eleanorjboyd commented Feb 4, 2026

fixes #653

Automatic Package Refresh from Terminal
When you install, uninstall, or modify packages directly in the terminal using commands like pip install, conda install, poetry add, or pipenv install, the extension automatically detects these changes and refreshes your package list. The extension monitors terminal commands and recognizes package-modifying operations across all common Python package managers—including pip, uv, conda, mamba, poetry, and pipenv.

To ensure the correct environment is updated, the extension uses the environment that's actually activated in that specific terminal, not simply the workspace's selected environment. This means if you activate a different virtual environment in a terminal and run pip install requests, the package list refreshes for that activated environment rather than your project's default. If no environment is explicitly activated in the terminal, the extension falls back to matching the environment based on the terminal's working directory and workspace context.

This automatic refresh keeps your package views in sync without requiring manual intervention, ensuring that the Environment details panel and other package-related features always reflect your latest changes.

@vs-code-engineering vs-code-engineering bot added this to the Feb Bug Bash milestone Feb 4, 2026
@eleanorjboyd eleanorjboyd added the bug Issue identified by VS Code Team member as probable bug label Feb 4, 2026
@eleanorjboyd eleanorjboyd enabled auto-merge (squash) February 4, 2026 20:37
@eleanorjboyd eleanorjboyd merged commit f124cb2 into microsoft:main Feb 4, 2026
7 of 8 checks passed
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.

Error refreshing packages: Extension uses system Python instead of selected Conda environment in WSL2

2 participants