Skip to content

Commit 5d8f514

Browse files
authored
Add some more telemetry for missing conda envs (#23825)
1 parent 33f423c commit 5d8f514

File tree

4 files changed

+355
-244
lines changed

4 files changed

+355
-244
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface NativeGlobalPythonFinder extends Disposable {
6262
refresh(): AsyncIterable<NativeEnvInfo>;
6363
categoryToKind(category?: string): PythonEnvKind;
6464
getCondaInfo(): Promise<NativeCondaInfo>;
65+
find(searchPath: string): Promise<NativeEnvInfo[]>;
6566
}
6667

6768
interface NativeLog {
@@ -376,6 +377,10 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativeGloba
376377
async getCondaInfo(): Promise<NativeCondaInfo> {
377378
return this.connection.sendRequest<NativeCondaInfo>('condaInfo');
378379
}
380+
381+
public async find(searchPath: string): Promise<NativeEnvInfo[]> {
382+
return this.connection.sendRequest<NativeEnvInfo[]>('find', { searchPath });
383+
}
379384
}
380385

381386
type ConfigurationOptions = {
@@ -387,6 +392,7 @@ type ConfigurationOptions = {
387392
environmentDirectories: string[];
388393
condaExecutable: string | undefined;
389394
poetryExecutable: string | undefined;
395+
cacheDirectory?: string;
390396
};
391397
/**
392398
* Gets all custom virtual environment locations to look for environments.

0 commit comments

Comments
 (0)