Skip to content

Commit

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

Resolve duplicated (.venv) prompt for users terminal.
Issue came from: #23080
  • Loading branch information
anthonykim1 authored Apr 8, 2024
1 parent 7cad63b commit eed0c3b
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 eed0c3b

Please sign in to comment.