Skip to content

Commit 810ec73

Browse files
author
Kartik Raj
committed
Add suggestionToQuickPickItem as well
1 parent 991d1fe commit 810ec73

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/client/jupyter/jupyterIntegration.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ type PythonApiForJupyterExtension = {
105105
allowExceptions?: boolean,
106106
): Promise<NodeJS.ProcessEnv | undefined>;
107107
isWindowsStoreInterpreter(pythonPath: string): Promise<boolean>;
108+
suggestionToQuickPickItem(suggestion: PythonEnvironment, workspaceUri?: Uri | undefined): IInterpreterQuickPickItem;
108109
getKnownSuggestions(resource: Resource): Promise<IInterpreterQuickPickItem[]>;
109110
/**
110111
* @deprecated Use `getKnownSuggestions` and `suggestionToQuickPickItem` instead.
@@ -207,6 +208,11 @@ export class JupyterExtensionIntegration {
207208
this.interpreterSelector.getAllSuggestions(resource),
208209
getKnownSuggestions: async (resource: Resource): Promise<IInterpreterQuickPickItem[]> =>
209210
this.interpreterSelector.getSuggestions(resource),
211+
suggestionToQuickPickItem: (
212+
suggestion: PythonEnvironment,
213+
workspaceUri?: Uri | undefined,
214+
): IInterpreterQuickPickItem =>
215+
this.interpreterSelector.suggestionToQuickPickItem(suggestion, workspaceUri),
210216
install: async (
211217
product: JupyterProductToInstall,
212218
resource?: InterpreterUri,

0 commit comments

Comments
 (0)