From 96a5f10e8fea6b2e2377cb9cc16c5f2e22cbbae1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 20 May 2025 16:46:22 +0000 Subject: [PATCH 1/2] Initial plan for issue From 05b50134bc3a8e4d4c5e47093f43e77af793c7e9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 20 May 2025 16:53:23 +0000 Subject: [PATCH 2/2] Add executable path to Python environment description in picker dropdown Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> --- src/common/pickers/environments.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/pickers/environments.ts b/src/common/pickers/environments.ts index 058e1ad7..b7368959 100644 --- a/src/common/pickers/environments.ts +++ b/src/common/pickers/environments.ts @@ -146,7 +146,7 @@ export async function pickEnvironment( }, { label: options.recommended.displayName, - description: options.recommended.description, + description: options.recommended.description || options.recommended.displayPath, result: options.recommended, iconPath: getIconPath(options.recommended.iconPath), }, @@ -163,7 +163,7 @@ export async function pickEnvironment( ...envs.map((e) => { return { label: e.displayName ?? e.name, - description: e.description, + description: e.description || e.displayPath, result: e, manager: manager, iconPath: getIconPath(e.iconPath), @@ -178,7 +178,7 @@ export async function pickEnvironment( export async function pickEnvironmentFrom(environments: PythonEnvironment[]): Promise { const items = environments.map((e) => ({ label: e.displayName ?? e.name, - description: e.description, + description: e.description || e.displayPath, e: e, iconPath: getIconPath(e.iconPath), }));