VS Code Python Environments Extension Gets Performance Overhaul and Usability Upgrades
Faster Startup and Smoother Activation
The latest update to the Python Environments extension for Visual Studio Code brings noticeable speed improvements, especially for remote and containerized workspaces. Three key changes make activation snappier:

Lazy Discovery of Package Managers
Previously, the extension eagerly scanned for Pipenv, pyenv, and Poetry environments at startup, which wasted resources for most users who rely on venv, uv, or Conda. Now, detection is deferred until you actually interact with one of those tools—for example, opening a project with a Pipfile or pyproject.toml using a Poetry backend. This change eliminates unnecessary work and makes startup faster. (See issues #1423, #1408)
Faster Environment Resolution
The path from extension activation to a ready interpreter is now shorter. The resolution process during startup and interpreter selection completes with less overhead, giving you a working interpreter sooner. (#1419)
Narrower Workspace Scanning
The default search pattern for virtual environments was ./**/.venv, which caused a recursive scan of the entire workspace tree. On large projects—especially over Remote-SSH—this could hang the Python Environment Tools (PET) process for over 30 seconds during configuration, leading to timeouts and restart loops (see #1460, #1434). The new default is .venv and */.venv, covering standard layouts without deep traversal. If you have environments nested more than one level deep, add custom paths with the python-envs.workspaceSearchPaths setting. (#1419)
Improved Reliability and Crash Recovery
PET Crash Recovery
When the PET process crashed mid-refresh, the extension could end up in a broken state with no environments visible. We now retry the refresh after a crash and handle empty or malformed responses defensively. A transient PET failure no longer leaves you with a blank environment list. (#1442, #1447, #1444)
Conda Base Environment Fix
After a window reload, the Conda base environment could be incorrectly restored as a different named environment, making it appear that your interpreter selection had silently changed. This bug is now fixed. (#1412)
Better Terminal and Package Management
Auto-Refreshing Package Lists
You no longer need to manually refresh the package view after running pip install or pip uninstall. The extension now watches for metadata changes in site-packages and updates the package list automatically. (#1420)
Multi-Project Terminal Creation
In workspaces with multiple Python projects, creating a new terminal now prompts you to choose which project's environment to activate, rather than picking one silently. This gives you more control over which environment is used. (#1401)
PowerShell Activation on Windows
Virtual environment activation via PowerShell could fail if the system execution policy blocked scripts. The extension now sets a process-scoped execution policy before running activation, so .ps1 scripts run reliably. This resolves a common issue for Windows users.
Related Articles
- Psyche Spacecraft Slingshots Past Mars in Critical Test for Asteroid Mission
- How to Measure Nuclear Reactions at Record-Low Energies for Astrophysical Research
- SpaceX and NASA Launch 34th Resupply Mission to the International Space Station
- Lego Unveils 9 New Star Wars Sets for May the 4th, Including First Ultimate Collector Series Set of 2026 — Mandalorian N-1 Starfighter Confirmed for New Film
- Cambridge Scientists Achieve 'Impossible' LED Breakthrough: Insulating Nanoparticles Powered to Emit Pure Near-Infrared Light
- The Container: Humanity's First and Most Essential Tool
- The Unseen Victims of Deepfake Porn: Porn Actors Whose Bodies Are Stolen
- Navigating Ransomware Trends in Early 2026: A Practical Guide