Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some more telemetry for missing conda envs #23825

Merged
merged 5 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading