From 42dc656bf748b43c9eb95c9d6681c9900b04504a Mon Sep 17 00:00:00 2001 From: Anthony Kim <62267334+anthonykim1@users.noreply.github.com> Date: Mon, 8 Apr 2024 10:53:31 -0700 Subject: [PATCH] Fix duplicated venv prompt (#23201) Resolves: #23193 #23184 Resolve duplicated (.venv) prompt for users terminal. Issue came from: #23080 --- src/client/terminals/envCollectionActivation/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/terminals/envCollectionActivation/service.ts b/src/client/terminals/envCollectionActivation/service.ts index b7ec224828da..8993007ce7c8 100644 --- a/src/client/terminals/envCollectionActivation/service.ts +++ b/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}) `; }