From 3e9c170e3a0f07385ebffd774571d6eea699766c Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Thu, 14 Mar 2024 13:59:10 -0700 Subject: [PATCH] s --- .../common/environmentManagers/conda.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/client/pythonEnvironments/common/environmentManagers/conda.ts b/src/client/pythonEnvironments/common/environmentManagers/conda.ts index 59d6cd5daec7..bb844f45a0f9 100644 --- a/src/client/pythonEnvironments/common/environmentManagers/conda.ts +++ b/src/client/pythonEnvironments/common/environmentManagers/conda.ts @@ -280,9 +280,9 @@ export class Conda { }); } - public static async getConda(shellPath?: string, useWorkerThreads?: boolean): Promise { + public static async getConda(shellPath?: string): Promise { if (Conda.condaPromise.get(shellPath) === undefined || isTestExecution()) { - Conda.condaPromise.set(shellPath, Conda.locate(shellPath, useWorkerThreads)); + Conda.condaPromise.set(shellPath, Conda.locate(shellPath)); } return Conda.condaPromise.get(shellPath); } @@ -293,11 +293,7 @@ export class Conda { * * @return A Conda instance corresponding to the binary, if successful; otherwise, undefined. */ - private static async locate(shellPath?: string, useWorkerThread?: boolean): Promise { - let useWorkerThreads: boolean; - if (useWorkerThread === undefined) { - useWorkerThreads = false; - } + private static async locate(shellPath?: string): Promise { traceVerbose(`Searching for conda.`); const home = getUserHomeDir(); let customCondaPath: string | undefined = 'conda';