Skip to content

Commit 12c3835

Browse files
Properly name collection item textual iteration scope handler (#2726)
The previous name was missing the word textual. This is the iteration scope handler only for the textual collection item. The parse tree based collection item defines its own iteration. ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
1 parent 98a95aa commit 12c3835

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cursorless-engine/src/processTargets/modifiers/scopeHandlers/CollectionItemScopeHandler/CollectionItemTextualScopeHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type {
1616
import type { ScopeHandlerFactory } from "../ScopeHandlerFactory";
1717
import { OneWayNestedRangeFinder } from "../util/OneWayNestedRangeFinder";
1818
import { OneWayRangeFinder } from "../util/OneWayRangeFinder";
19-
import { collectionItemIterationScopeHandler } from "./collectionItemIterationScopeHandler";
19+
import { collectionItemTextualIterationScopeHandler } from "./collectionItemTextualIterationScopeHandler";
2020
import { createTargetScope } from "./createTargetScope";
2121
import { getInteriorRanges } from "./getInteriorRanges";
2222
import { getSeparatorOccurrences } from "./getSeparatorOccurrences";
@@ -26,7 +26,7 @@ export class CollectionItemTextualScopeHandler extends BaseScopeHandler {
2626
protected isHierarchical = true;
2727

2828
get iterationScopeType(): ComplexScopeType {
29-
return collectionItemIterationScopeHandler;
29+
return collectionItemTextualIterationScopeHandler;
3030
}
3131

3232
constructor(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { TargetScope } from "../scope.types";
33
import type { ComplexScopeType } from "../scopeHandler.types";
44
import { separatorRegex } from "./getSeparatorOccurrences";
55

6-
export const collectionItemIterationScopeHandler: ComplexScopeType = {
6+
export const collectionItemTextualIterationScopeHandler: ComplexScopeType = {
77
type: "fallback",
88
scopeTypes: [
99
{

0 commit comments

Comments
 (0)