Skip to content

Commit 6181f44

Browse files
authored
fix interpreter conversion to legacy api (#25417)
fixes microsoft/vscode-python-environments#508
1 parent ebc683a commit 6181f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/envExt/api.legacy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ function toLegacyType(env: PythonEnvironment): PythonEnvironmentLegacy {
7777
const ver = parseVersion(env.version);
7878
const envType = toEnvironmentType(env);
7979
return {
80-
id: env.environmentPath.fsPath,
80+
id: env.execInfo.run.executable,
8181
displayName: env.displayName,
8282
detailedDisplayName: env.name,
8383
envType,
8484
envPath: env.sysPrefix,
8585
type: getEnvType(envType),
86-
path: env.environmentPath.fsPath,
86+
path: env.execInfo.run.executable,
8787
version: {
8888
raw: env.version,
8989
major: ver.major,

0 commit comments

Comments
 (0)