Skip to content

Commit 9fa757a

Browse files
committed
chore: Create folder for test-case exmaple files
1 parent 2b27fd5 commit 9fa757a

File tree

2 files changed

+130
-0
lines changed

2 files changed

+130
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
languageId: typescript
2+
command:
3+
version: 6
4+
spokenForm: bring air and bat and cap after item each
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: list
9+
elements:
10+
- type: primitive
11+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
12+
- type: primitive
13+
mark: {type: decoratedSymbol, symbolColor: default, character: b}
14+
- type: primitive
15+
mark: {type: decoratedSymbol, symbolColor: default, character: c}
16+
destination:
17+
type: primitive
18+
insertionMode: after
19+
target:
20+
type: primitive
21+
modifiers:
22+
- type: containingScope
23+
scopeType: {type: collectionItem}
24+
mark: {type: decoratedSymbol, symbolColor: default, character: e}
25+
usePrePhraseSnapshot: false
26+
initialState:
27+
documentContents: |
28+
a
29+
b
30+
c
31+
32+
const values = [e]
33+
selections:
34+
- anchor: {line: 5, character: 0}
35+
active: {line: 5, character: 0}
36+
marks:
37+
default.a:
38+
start: {line: 0, character: 0}
39+
end: {line: 0, character: 1}
40+
default.b:
41+
start: {line: 1, character: 0}
42+
end: {line: 1, character: 1}
43+
default.c:
44+
start: {line: 2, character: 0}
45+
end: {line: 2, character: 1}
46+
default.e:
47+
start: {line: 4, character: 16}
48+
end: {line: 4, character: 17}
49+
finalState:
50+
documentContents: |
51+
a
52+
b
53+
c
54+
55+
const values = [e, a, b, c]
56+
selections:
57+
- anchor: {line: 5, character: 0}
58+
active: {line: 5, character: 0}
59+
thatMark:
60+
- type: UntypedTarget
61+
contentRange:
62+
start: {line: 4, character: 19}
63+
end: {line: 4, character: 26}
64+
isReversed: false
65+
hasExplicitRange: true
66+
sourceMark:
67+
- type: UntypedTarget
68+
contentRange:
69+
start: {line: 0, character: 0}
70+
end: {line: 0, character: 1}
71+
isReversed: false
72+
hasExplicitRange: true
73+
- type: UntypedTarget
74+
contentRange:
75+
start: {line: 1, character: 0}
76+
end: {line: 1, character: 1}
77+
isReversed: false
78+
hasExplicitRange: true
79+
- type: UntypedTarget
80+
contentRange:
81+
start: {line: 2, character: 0}
82+
end: {line: 2, character: 1}
83+
isReversed: false
84+
hasExplicitRange: true
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
languageId: plaintext
2+
command:
3+
version: 6
4+
spokenForm: bring air to end of air
5+
action:
6+
name: replaceWithTarget
7+
source:
8+
type: primitive
9+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
10+
destination:
11+
type: primitive
12+
insertionMode: to
13+
target:
14+
type: primitive
15+
modifiers:
16+
- {type: endOf}
17+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
18+
usePrePhraseSnapshot: true
19+
initialState:
20+
documentContents: a
21+
selections:
22+
- anchor: {line: 0, character: 1}
23+
active: {line: 0, character: 1}
24+
marks:
25+
default.a:
26+
start: {line: 0, character: 0}
27+
end: {line: 0, character: 1}
28+
finalState:
29+
documentContents: aa
30+
selections:
31+
- anchor: {line: 0, character: 2}
32+
active: {line: 0, character: 2}
33+
thatMark:
34+
- type: UntypedTarget
35+
contentRange:
36+
start: {line: 0, character: 1}
37+
end: {line: 0, character: 2}
38+
isReversed: false
39+
hasExplicitRange: true
40+
sourceMark:
41+
- type: UntypedTarget
42+
contentRange:
43+
start: {line: 0, character: 0}
44+
end: {line: 0, character: 1}
45+
isReversed: false
46+
hasExplicitRange: true

0 commit comments

Comments
 (0)