Skip to content

Commit

Permalink
Fix notebookUri tab.uri comparison to handle leading slash differences (
Browse files Browse the repository at this point in the history
  • Loading branch information
debonte authored Mar 7, 2023
1 parent b869c07 commit ba7fb3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ba7fb3b

Please sign in to comment.