From 52aa5ea3e014ca00ca76deb297334efc1e3db9d7 Mon Sep 17 00:00:00 2001 From: Erik De Bonte Date: Tue, 7 Mar 2023 12:57:18 -0800 Subject: [PATCH] Fix notebookUri tab.uri comparison to handle leading slash differences --- src/standalone/intellisense/notebookPythonPathService.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/standalone/intellisense/notebookPythonPathService.node.ts b/src/standalone/intellisense/notebookPythonPathService.node.ts index b88998743ac..9b519bd926b 100644 --- a/src/standalone/intellisense/notebookPythonPathService.node.ts +++ b/src/standalone/intellisense/notebookPythonPathService.node.ts @@ -155,7 +155,7 @@ export class NotebookPythonPathService implements IExtensionSingleActivationServ if (isInteractiveInputTab(tab)) { const tabUri = tab.input.uri.toString(); // the interactive resource URI was altered to start with `/`, this will account for both URI formats - if (tab.input.uri.toString().endsWith(notebookUri.toString())) { + if (tab.input.uri.toString().endsWith(notebookUri.path)) { result = tabUri; } }