Skip to content

Commit 7006f3d

Browse files
committed
chore(vscode): 移除 python.defaultInterpreterPath 让自动发现接管 venv
原值 ${workspaceFolder}/.venv 指向目录而非 python.exe,Black LSP 重启时 spawn 该目录报 ENOENT。删除后由 ms-python 自动发现解析到 .venv/Scripts/python.exe (Windows) / .venv/bin/python (Unix),跨平台正确, 且消除自动发现与设置值的时序竞争。
1 parent 78711a1 commit 7006f3d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@
3535
],
3636
"url": "./tools/schema/pipeline.schema.json"
3737
}
38-
],
39-
"python.defaultInterpreterPath": "${workspaceFolder}/.venv"
38+
]
4039
}

0 commit comments

Comments
 (0)