📋 Description
Add new VS Code settings python-env.globalSearchPaths and python-env.workspaceSearchPaths to allow users to configure custom search paths for Python environments. These settings provide more flexible environment discovery at both global and workspace levels.
✅ Steps to Verify
-
get the pre-release for python envs ext and python ext
-
add this setting if you don't see the python icon in the sidebar "python.useEnvironmentsExtension: true`
-
try out the two new settings and verify they work
Step 3 is generalized if you know how to do that with your own scenario go ahead but expanded a bit for others:
-
create a folder within the root of your workspace
-
create a venv within this folder
-
go to the python panel, confirm that this env does not get discovered (is not shown in the list)
-
edit settingpython-env.workspaceSearchPaths to include the path to the folder you made, try with a relative path
-
reload and confirm the folder is now found
-
repeat steps 4 and 5 but instead with settingpython-env.globalSearchPaths with absolute path