Skip to content

Commit eecf0fd

Browse files
committed
fix: revert workspaceSearchPaths default to empty array to prevent PET configure timeout
The default `["./**/.venv"]` introduced in microsoft#1191 causes the PET server to recursively walk the entire workspace during `configure`, which exceeds the 30s timeout (microsoft#1154) on large workspaces. PET's built-in Venv locator already discovers .venv directories at workspace roots without needing extra search paths. Affected versions: v1.18.0, v1.18.1, v1.20.0, v1.20.1, v1.22.0, and main (v1.16.0 and earlier used an empty default and are not affected). Fixes environment discovery failure on workspaces with deep directory trees (e.g. ML projects with datasets, checkpoints, vendored repos).
1 parent ecbcdac commit eecf0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"python-envs.workspaceSearchPaths": {
125125
"type": "array",
126126
"description": "%python-envs.workspaceSearchPaths.description%",
127-
"default": ["./**/.venv"],
127+
"default": [],
128128
"scope": "resource",
129129
"items": {
130130
"type": "string"

0 commit comments

Comments
 (0)