Skip to content

Commit 0d1a0f1

Browse files
authored
Configure before resolving and remove old API call (microsoft#23834)
1 parent abe223f commit 0d1a0f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/client/pythonEnvironments/base/locators/common/nativePythonFinder.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativePytho
163163
}
164164

165165
public async resolve(executable: string): Promise<NativeEnvInfo> {
166+
await this.configure();
166167
const environment = await this.connection.sendRequest<NativeEnvInfo>('resolve', {
167168
executable,
168169
});
@@ -438,10 +439,6 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativePytho
438439
async getCondaInfo(): Promise<NativeCondaInfo> {
439440
return this.connection.sendRequest<NativeCondaInfo>('condaInfo');
440441
}
441-
442-
public async find(searchPath: string): Promise<NativeEnvInfo[]> {
443-
return this.connection.sendRequest<NativeEnvInfo[]>('find', { searchPath });
444-
}
445442
}
446443

447444
type ConfigurationOptions = {

0 commit comments

Comments
 (0)