Skip to content

Commit e6cd7aa

Browse files
authored
support new env kind from pet venvUv (#25532)
python extension will handle envs created by uv the same as any venvs, so just adding the `venvUv` kind to map to `venv`. The python environments extension will handle uv environments differently and not just bundle them by default
1 parent 9cba9a0 commit e6cd7aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/pythonEnvironments/base/locators/common/nativePythonUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export enum NativePythonEnvironmentKind {
2323
VirtualEnvWrapper = 'VirtualEnvWrapper',
2424
WindowsStore = 'WindowsStore',
2525
WindowsRegistry = 'WindowsRegistry',
26+
VenvUv = 'VenvUv',
2627
}
2728

2829
const mapping = new Map<NativePythonEnvironmentKind, PythonEnvKind>([
@@ -36,6 +37,7 @@ const mapping = new Map<NativePythonEnvironmentKind, PythonEnvKind>([
3637
[NativePythonEnvironmentKind.VirtualEnv, PythonEnvKind.VirtualEnv],
3738
[NativePythonEnvironmentKind.VirtualEnvWrapper, PythonEnvKind.VirtualEnvWrapper],
3839
[NativePythonEnvironmentKind.Venv, PythonEnvKind.Venv],
40+
[NativePythonEnvironmentKind.VenvUv, PythonEnvKind.Venv],
3941
[NativePythonEnvironmentKind.WindowsRegistry, PythonEnvKind.System],
4042
[NativePythonEnvironmentKind.WindowsStore, PythonEnvKind.MicrosoftStore],
4143
[NativePythonEnvironmentKind.Homebrew, PythonEnvKind.System],

0 commit comments

Comments
 (0)