Skip to content

Commit 05b5013

Browse files
Copiloteleanorjboyd
andcommitted
Add executable path to Python environment description in picker dropdown
Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
1 parent 96a5f10 commit 05b5013

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/pickers/environments.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export async function pickEnvironment(
146146
},
147147
{
148148
label: options.recommended.displayName,
149-
description: options.recommended.description,
149+
description: options.recommended.description || options.recommended.displayPath,
150150
result: options.recommended,
151151
iconPath: getIconPath(options.recommended.iconPath),
152152
},
@@ -163,7 +163,7 @@ export async function pickEnvironment(
163163
...envs.map((e) => {
164164
return {
165165
label: e.displayName ?? e.name,
166-
description: e.description,
166+
description: e.description || e.displayPath,
167167
result: e,
168168
manager: manager,
169169
iconPath: getIconPath(e.iconPath),
@@ -178,7 +178,7 @@ export async function pickEnvironment(
178178
export async function pickEnvironmentFrom(environments: PythonEnvironment[]): Promise<PythonEnvironment | undefined> {
179179
const items = environments.map((e) => ({
180180
label: e.displayName ?? e.name,
181-
description: e.description,
181+
description: e.description || e.displayPath,
182182
e: e,
183183
iconPath: getIconPath(e.iconPath),
184184
}));

0 commit comments

Comments
 (0)