Skip to content

Commit d68f766

Browse files
More tests
1 parent 71c1759 commit d68f766

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class MyClass {
2+
~MyClass() {}
3+
}
4+
---
5+
6+
[Content] =
7+
[Removal] = 1:4-1:12
8+
>--------<
9+
1| ~MyClass() {}
10+
11+
[Leading delimiter] = 1:0-1:4
12+
>----<
13+
1| ~MyClass() {}
14+
15+
[Domain] = 1:4-1:17
16+
>-------------<
17+
1| ~MyClass() {}
18+
19+
[Insertion delimiter] = " "
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class MyClass {
2+
~MyClass() {}
3+
}
4+
---
5+
6+
[Content] =
7+
[Domain] = 1:4-1:17
8+
>-------------<
9+
1| ~MyClass() {}
10+
11+
[Removal] = 1:0-2:0
12+
>-----------------
13+
1| ~MyClass() {}
14+
2| }
15+
<
16+
17+
[Leading delimiter] = 1:0-1:4
18+
>----<
19+
1| ~MyClass() {}
20+
21+
[Insertion delimiter] = "\n\n"

packages/cursorless-engine/src/languages/TreeSitterQuery/checkCaptureStartEnd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function checkCaptureStartEnd(
4343
void showError(
4444
messages,
4545
"TreeSitterQuery.checkCaptures.badOrder",
46-
`Start capture must be before end capture: ${captures}`,
46+
`Start capture must be before end capture: ${captures.map((c) => c.name)}`,
4747
);
4848
shownError = true;
4949
}

0 commit comments

Comments
 (0)