From fd38d3d7dec0423e1cfa7e89d70ec4a0bebe9bd5 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 19 Jul 2024 08:05:32 +1000 Subject: [PATCH] Configure before resolving and remove old API call --- .../base/locators/common/nativePythonFinder.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts b/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts index 9dc440a7a88f..97601c59dbaa 100644 --- a/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts +++ b/src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts @@ -163,6 +163,7 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativePytho } public async resolve(executable: string): Promise { + await this.configure(); const environment = await this.connection.sendRequest('resolve', { executable, }); @@ -438,10 +439,6 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativePytho async getCondaInfo(): Promise { return this.connection.sendRequest('condaInfo'); } - - public async find(searchPath: string): Promise { - return this.connection.sendRequest('find', { searchPath }); - } } type ConfigurationOptions = {