Skip to content

Commit

Permalink
Configure before resolving and remove old API call
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jul 18, 2024
1 parent abe223f commit fd38d3d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativePytho
}

public async resolve(executable: string): Promise<NativeEnvInfo> {
await this.configure();
const environment = await this.connection.sendRequest<NativeEnvInfo>('resolve', {
executable,
});
Expand Down Expand Up @@ -438,10 +439,6 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativePytho
async getCondaInfo(): Promise<NativeCondaInfo> {
return this.connection.sendRequest<NativeCondaInfo>('condaInfo');
}

public async find(searchPath: string): Promise<NativeEnvInfo[]> {
return this.connection.sendRequest<NativeEnvInfo[]>('find', { searchPath });
}
}

type ConfigurationOptions = {
Expand Down

0 comments on commit fd38d3d

Please sign in to comment.