You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.nls.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@
11
11
"python-envs.terminal.autoActivationType.shellStartup": "Activation using [shell integration](https://code.visualstudio.com/docs/terminal/shell-integration) or by modifying the terminal shell startup script. Enable `terminal.integrated.shellIntegration.enabled` or we may need to modify your shell startup scripts for the ideal experience.",
12
12
"python-envs.terminal.autoActivationType.off": "No automatic activation of environments.",
13
13
"python-envs.terminal.useEnvFile.description": "Controls whether environment variables from .env files and python.envFile setting are injected into terminals.",
14
-
"python-envs.globalSearchPaths.description": "Global search paths for Python environments. Absolute directory paths that are searched at the user level.\n\n**Legacy Setting Support:** This setting is merged with the legacy `python.venvPath` and `python.venvFolders` settings. All paths from these three settings are combined into a single list of search paths. The legacy settings `python.venvPath` and `python.venvFolders` will be deprecated in the future, after which this setting will fully replace them. Please consider migrating your paths to this setting.",
15
-
"python-envs.workspaceSearchPaths.description": "Workspace search paths for Python environments. Can be absolute paths or relative directory paths searched within the workspace.",
14
+
"python-envs.globalSearchPaths.description": "Absolute paths to search for Python environments across all workspaces. Use for shared environment folders like `~/envs`.",
15
+
"python-envs.workspaceSearchPaths.description": "Paths to search for environments in this workspace. By default, searches for a `.venv` folder in the workspace root.",
@@ -745,6 +754,7 @@ function getGlobalSearchPaths(): string[] {
745
754
746
755
/**
747
756
* Gets the most specific workspace-level setting available for workspaceSearchPaths.
757
+
* Supports glob patterns which are expanded by PET.
748
758
*/
749
759
functiongetWorkspaceSearchPaths(): string[]{
750
760
try{
@@ -753,11 +763,11 @@ function getWorkspaceSearchPaths(): string[] {
753
763
754
764
if(inspection?.globalValue){
755
765
traceError(
756
-
'Error: python-envs.workspaceSearchPaths is set at the user/global level, but this setting can only be set at the workspace or workspace folder level.',
766
+
'python-envs.workspaceSearchPaths is set at the user/global level, but this setting can only be set at the workspace or workspace folder level.',
757
767
);
758
768
}
759
769
760
-
// For workspace settings, prefer workspaceFolder > workspace
770
+
// For workspace settings, prefer workspaceFolder > workspace > default
761
771
if(inspection?.workspaceFolderValue){
762
772
returninspection.workspaceFolderValue;
763
773
}
@@ -766,8 +776,8 @@ function getWorkspaceSearchPaths(): string[] {
766
776
returninspection.workspaceValue;
767
777
}
768
778
769
-
// Default empty array (don't use global value for workspace settings)
0 commit comments