Skip to content

Commit 0cdc812

Browse files
author
fidgetingbits
committed
item tests
1 parent 9d51f3a commit 0cdc812

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-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 item
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionItem}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
{
16+
foo = [ "a" a/b/c "b" ];
17+
}
18+
selections:
19+
- anchor: {line: 1, character: 17}
20+
active: {line: 1, character: 17}
21+
marks: {}
22+
finalState:
23+
documentContents: |
24+
{
25+
foo = [ "a" "b" ];
26+
}
27+
selections:
28+
- anchor: {line: 1, character: 14}
29+
active: {line: 1, character: 14}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
languageId: nix
2+
command:
3+
version: 6
4+
spokenForm: change item
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionItem}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
{
16+
bar = [ A
17+
B
18+
C # foo
19+
];
20+
}
21+
selections:
22+
- anchor: {line: 2, character: 10}
23+
active: {line: 2, character: 10}
24+
marks: {}
25+
finalState:
26+
documentContents: |
27+
{
28+
bar = [ A
29+
30+
C # foo
31+
];
32+
}
33+
selections:
34+
- anchor: {line: 2, character: 10}
35+
active: {line: 2, character: 10}

0 commit comments

Comments
 (0)