Skip to content

Commit

Permalink
More clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Nov 23, 2024
1 parent cd1f0be commit 56ad4c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ function createTargetScope(cell: NotebookCell): TargetScope {
}

function getEditor(cell: NotebookCell) {
const uri = cell.document.uri.toString();
for (const editor of ide().visibleTextEditors) {
if (editor.document.uri.toString() === cell.document.uri.toString()) {
if (editor.document.uri.toString() === uri) {
return editor;
}
}
Expand Down

0 comments on commit 56ad4c5

Please sign in to comment.