Skip to content

Commit 29a7cdb

Browse files
author
fidgetingbits
committed
collectionKey tests
1 parent add3cdd commit 29a7cdb

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
languageId: nix
2+
command:
3+
version: 6
4+
spokenForm: change key
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionKey}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
{
16+
foo = { x = 1; y = 2; };
17+
}
18+
selections:
19+
- anchor: {line: 1, character: 14}
20+
active: {line: 1, character: 14}
21+
marks: {}
22+
finalState:
23+
documentContents: |
24+
{
25+
foo = { = 1; y = 2; };
26+
}
27+
selections:
28+
- anchor: {line: 1, character: 10}
29+
active: {line: 1, character: 10}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: nix
2+
command:
3+
version: 6
4+
spokenForm: change key plex
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
mark: {type: decoratedSymbol, symbolColor: default, character: x}
10+
modifiers:
11+
- type: containingScope
12+
scopeType: {type: collectionKey}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
{
17+
foo = { x = 1; y = 2; };
18+
}
19+
selections:
20+
- anchor: {line: 1, character: 12}
21+
active: {line: 1, character: 12}
22+
marks:
23+
default.x:
24+
start: {line: 1, character: 10}
25+
end: {line: 1, character: 11}
26+
finalState:
27+
documentContents: |
28+
{
29+
foo = { = 1; y = 2; };
30+
}
31+
selections:
32+
- anchor: {line: 1, character: 10}
33+
active: {line: 1, character: 10}

0 commit comments

Comments
 (0)