Skip to content

Commit 0cd2090

Browse files
Added comment
1 parent b3bce4d commit 0cd2090

File tree

1 file changed

+2
-0
lines changed
  • packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/WordScopeHandler

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export class WordScopeHandler extends NestedScopeHandler {
1616
domain,
1717
}: TargetScope): TargetScope[] {
1818
const { document } = editor;
19+
// FIXME: Switch to using getMatchesInRange once we are able to properly
20+
// mock away vscode for the unit tests in subtoken.test.ts
1921
const offset = document.offsetAt(domain.start);
2022
const matches = this.wordTokenizer.splitIdentifier(
2123
document.getText(domain),

0 commit comments

Comments
 (0)