Commit d84e05b
authored
Fix
The PR is a follow-up task to the sync meeting and the discussion in
#861 (comment)
The PR fixes a bug where the `python.defaultInterpreterPath` setting was
not being respected when opening new workspaces. Users who configured a
specific Python interpreter path would see a different Python version
selected instead.
The root cause is that the early return prevented `api.setEnvironment()`
from ever being called, so the workspace environment was never actually
set.
When the extension later queried for the workspace environment, the
`venvManager.get()` method found nothing in the workspace-to-environment
map and fell back to `globalEnv`.
Verified now the default is being used.
<img width="681" height="214" alt="image"
src="https://github.com/user-attachments/assets/19ec4e44-2f14-4331-9e6c-e7221475843a"
/>
Also fixed wrong field used for `sysPrefix`.python.defaultInterpreterPath0. setting not being applied to new workspaces (#1110)1 parent bff57a6 commit d84e05b
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | 273 | | |
279 | 274 | | |
280 | 275 | | |
| |||
294 | 289 | | |
295 | 290 | | |
296 | 291 | | |
297 | | - | |
| 292 | + | |
298 | 293 | | |
299 | 294 | | |
300 | 295 | | |
| |||
0 commit comments