Skip to content

Commit f14e57e

Browse files
committed
Allow Activated Virtual Envs to Be Detected w/ a Workspace File
1 parent ef01ace commit f14e57e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/client/interpreter/virtualEnvs/activatedEnvLaunch.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,9 @@ export class ActivatedEnvironmentLaunch implements IActivatedEnvironmentLaunch {
8585

8686
@cache(-1, true)
8787
private async _selectIfLaunchedViaActivatedEnv(doNotBlockOnSelection = false): Promise<string | undefined> {
88-
if (this.workspaceService.workspaceFile) {
89-
// Assuming multiroot workspaces cannot be directly launched via `code .` command.
90-
return undefined;
91-
}
9288
if (process.env.VSCODE_CLI !== '1') {
9389
// We only want to select the interpreter if VS Code was launched from the command line.
90+
traceLog("Skipping ActivatedEnv Detection: process.env.VSCODE_CLI !== '1'");
9491
return undefined;
9592
}
9693
traceVerbose('VS Code was not launched from the command line');

0 commit comments

Comments
 (0)