From d3af55fbb927f6a591ad7d88ae0c0dbb1ff6e3dc Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Tue, 7 Sep 2021 12:49:54 -0700 Subject: [PATCH] Expose trigger refresh in the jupyter integration API --- src/client/jupyter/jupyterIntegration.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/jupyter/jupyterIntegration.ts b/src/client/jupyter/jupyterIntegration.ts index 7cdaca6b4293..313a930b0991 100644 --- a/src/client/jupyter/jupyterIntegration.ts +++ b/src/client/jupyter/jupyterIntegration.ts @@ -73,6 +73,10 @@ type PythonApiForJupyterExtension = { * IInterpreterService */ getInterpreters(resource?: Uri): Promise; + /** + * IInterpreterService + */ + triggerRefresh(): Promise; /** * IInterpreterService */ @@ -171,6 +175,7 @@ export class JupyterExtensionIntegration { getInterpreterDetails: async (pythonPath: string) => this.interpreterService.getInterpreterDetails(pythonPath), getInterpreters: async (resource: Uri | undefined) => this.interpreterService.getAllInterpreters(resource), + triggerRefresh: async () => this.interpreterService.triggerRefresh(), getActivatedEnvironmentVariables: async ( resource: Resource, interpreter?: PythonEnvironment,