Skip to content

Commit

Permalink
Fix duplicated venv prompt (microsoft#23201)
Browse files Browse the repository at this point in the history
Resolves: microsoft#23193 microsoft#23184

Resolve duplicated (.venv) prompt for users terminal.
Issue came from: microsoft#23080
  • Loading branch information
anthonykim1 committed Apr 9, 2024
1 parent e3ff798 commit 42dc656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/terminals/envCollectionActivation/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}) `;
}
Expand Down

0 comments on commit 42dc656

Please sign in to comment.