Skip to content

Commit

Permalink
Add suggestionToQuickPickItem as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Sep 21, 2021
1 parent fc2914b commit 73ee613
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client/jupyter/jupyterIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ type PythonApiForJupyterExtension = {
allowExceptions?: boolean,
): Promise<NodeJS.ProcessEnv | undefined>;
isWindowsStoreInterpreter(pythonPath: string): Promise<boolean>;
suggestionToQuickPickItem(suggestion: PythonEnvironment, workspaceUri?: Uri | undefined): IInterpreterQuickPickItem;
getKnownSuggestions(resource: Resource): Promise<IInterpreterQuickPickItem[]>;
/**
* @deprecated Use `getKnownSuggestions` and `suggestionToQuickPickItem` instead.
Expand Down Expand Up @@ -207,6 +208,11 @@ export class JupyterExtensionIntegration {
this.interpreterSelector.getAllSuggestions(resource),
getKnownSuggestions: async (resource: Resource): Promise<IInterpreterQuickPickItem[]> =>
this.interpreterSelector.getSuggestions(resource),
suggestionToQuickPickItem: (
suggestion: PythonEnvironment,
workspaceUri?: Uri | undefined,
): IInterpreterQuickPickItem =>
this.interpreterSelector.suggestionToQuickPickItem(suggestion, workspaceUri),
install: async (
product: JupyterProductToInstall,
resource?: InterpreterUri,
Expand Down

0 comments on commit 73ee613

Please sign in to comment.