Skip to content

Commit 56ad4c5

Browse files
More clean up
1 parent cd1f0be commit 56ad4c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/NotebookCellScopeHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ function createTargetScope(cell: NotebookCell): TargetScope {
122122
}
123123

124124
function getEditor(cell: NotebookCell) {
125+
const uri = cell.document.uri.toString();
125126
for (const editor of ide().visibleTextEditors) {
126-
if (editor.document.uri.toString() === cell.document.uri.toString()) {
127+
if (editor.document.uri.toString() === uri) {
127128
return editor;
128129
}
129130
}

0 commit comments

Comments
 (0)