From fdfb9f41291866e59ebee9fef4ebefd00fc8f873 Mon Sep 17 00:00:00 2001 From: Anthony Kim <62267334+anthonykim1@users.noreply.github.com> Date: Mon, 8 Apr 2024 12:53:31 -0500 Subject: [PATCH] Fix duplicated venv prompt (microsoft/vscode-python#23201) Resolves: microsoft/vscode-python#23193 microsoft/vscode-python#23184 Resolve duplicated (.venv) prompt for users terminal. Issue came from: microsoft/vscode-python#23080 --- .../src/client/terminals/envCollectionActivation/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts b/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts index b7ec224828da..8993007ce7c8 100644 --- a/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts +++ b/extensions/positron-python/src/client/terminals/envCollectionActivation/service.ts @@ -468,7 +468,7 @@ function getPromptForEnv(interpreter: PythonEnvironment | undefined, env: Enviro return undefined; } if (interpreter.type === PythonEnvType.Virtual && env.VIRTUAL_ENV_PROMPT) { - return `(${env.VIRTUAL_ENV_PROMPT}) `; + return `${env.VIRTUAL_ENV_PROMPT}`; } return `(${interpreter.envName}) `; }