See here: the recommended environment on top (which is the currently selected one) comes from my Hatch extension’s env manager, but the “venv” env manager shows the same environment. The only difference I can see is that it adds bin/python to the path.
Should I set the path of the environment to the binary in my extension to prevent this?
If so, which one is used to deduplicate? Are they deduplicated at all or will the venv env manager just pick up and duplicate everything it ever sees?
|
readonly displayPath: string; |
|
readonly environmentPath: Uri; |
|
readonly execInfo: PythonEnvironmentExecutionInfo; |

See here: the recommended environment on top (which is the currently selected one) comes from my Hatch extension’s env manager, but the “venv” env manager shows the same environment. The only difference I can see is that it adds
bin/pythonto the path.Should I set the path of the environment to the binary in my extension to prevent this?
If so, which one is used to deduplicate? Are they deduplicated at all or will the
venvenv manager just pick up and duplicate everything it ever sees?vscode-python-environments/src/api.ts
Line 178 in 3c072d1
vscode-python-environments/src/api.ts
Line 188 in 3c072d1
vscode-python-environments/src/api.ts
Line 208 in 3c072d1