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; } }