Skip to content

Commit

Permalink
Add some more telemetry for missing conda envs (microsoft#23825)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jul 17, 2024
1 parent 33f423c commit 5d8f514
Show file tree
Hide file tree
Showing 4 changed files with 355 additions and 244 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface NativeGlobalPythonFinder extends Disposable {
refresh(): AsyncIterable<NativeEnvInfo>;
categoryToKind(category?: string): PythonEnvKind;
getCondaInfo(): Promise<NativeCondaInfo>;
find(searchPath: string): Promise<NativeEnvInfo[]>;
}

interface NativeLog {
Expand Down Expand Up @@ -376,6 +377,10 @@ class NativeGlobalPythonFinderImpl extends DisposableBase implements NativeGloba
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 All @@ -387,6 +392,7 @@ type ConfigurationOptions = {
environmentDirectories: string[];
condaExecutable: string | undefined;
poetryExecutable: string | undefined;
cacheDirectory?: string;
};
/**
* Gets all custom virtual environment locations to look for environments.
Expand Down
Loading

0 comments on commit 5d8f514

Please sign in to comment.