Skip to content

Commit 619d8be

Browse files
author
fidgetingbits
committed
Fix branch interior and add more branch tests
1 parent d9e39f8 commit 619d8be

13 files changed

+471
-15
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
if [ $value -le 0 ]; then
16+
fi
17+
18+
19+
selections:
20+
- anchor: {line: 0, character: 0}
21+
active: {line: 0, character: 0}
22+
marks: {}
23+
finalState:
24+
documentContents: |+
25+
26+
fi
27+
28+
29+
selections:
30+
- anchor: {line: 0, character: 0}
31+
active: {line: 0, character: 0}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
if [ $value -le 0 ]; then
16+
else
17+
fi
18+
19+
selections:
20+
- anchor: {line: 1, character: 2}
21+
active: {line: 1, character: 2}
22+
marks: {}
23+
finalState:
24+
documentContents: |+
25+
if [ $value -le 0 ]; then
26+
27+
fi
28+
29+
selections:
30+
- anchor: {line: 1, character: 0}
31+
active: {line: 1, character: 0}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
if [ $value -le 0 ]; then
16+
else
17+
fi
18+
19+
selections:
20+
- anchor: {line: 0, character: 2}
21+
active: {line: 0, character: 2}
22+
marks: {}
23+
finalState:
24+
documentContents: |+
25+
26+
else
27+
fi
28+
29+
selections:
30+
- anchor: {line: 0, character: 0}
31+
active: {line: 0, character: 0}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
if [ $value -le 0 ]; then
16+
elif [ $value -le 0 ]; then
17+
else
18+
fi
19+
selections:
20+
- anchor: {line: 1, character: 4}
21+
active: {line: 1, character: 4}
22+
marks: {}
23+
finalState:
24+
documentContents: |
25+
if [ $value -le 0 ]; then
26+
27+
else
28+
fi
29+
selections:
30+
- anchor: {line: 1, character: 0}
31+
active: {line: 1, character: 0}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change every branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: everyScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
if [ $value -le 0 ]; then
16+
elif [ $value -le 0 ]; then
17+
else
18+
fi
19+
selections:
20+
- anchor: {line: 1, character: 4}
21+
active: {line: 1, character: 4}
22+
marks: {}
23+
finalState:
24+
documentContents: |
25+
26+
27+
28+
fi
29+
selections:
30+
- anchor: {line: 0, character: 0}
31+
active: {line: 0, character: 0}
32+
- anchor: {line: 1, character: 0}
33+
active: {line: 1, character: 0}
34+
- anchor: {line: 2, character: 0}
35+
active: {line: 2, character: 0}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change inside branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: interiorOnly}
11+
- type: containingScope
12+
scopeType: {type: branch}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |+
16+
if [ $value -le 0 ]; then
17+
echo "foo1"
18+
echo "foo1"
19+
fi
20+
21+
selections:
22+
- anchor: {line: 1, character: 15}
23+
active: {line: 1, character: 15}
24+
marks: {}
25+
finalState:
26+
documentContents: |+
27+
if [ $value -le 0 ]; then
28+
29+
fi
30+
31+
selections:
32+
- anchor: {line: 1, character: 4}
33+
active: {line: 1, character: 4}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change inside branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: interiorOnly}
11+
- type: containingScope
12+
scopeType: {type: branch}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |+
16+
if [ $value -le 0 ]; then
17+
echo "foo1"
18+
echo "foo1"
19+
else
20+
echo "foo1"
21+
echo "foo1"
22+
fi
23+
24+
25+
26+
selections:
27+
- anchor: {line: 4, character: 9}
28+
active: {line: 4, character: 9}
29+
marks: {}
30+
finalState:
31+
documentContents: |+
32+
if [ $value -le 0 ]; then
33+
echo "foo1"
34+
echo "foo1"
35+
else
36+
37+
fi
38+
39+
40+
41+
selections:
42+
- anchor: {line: 4, character: 4}
43+
active: {line: 4, character: 4}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change inside branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: interiorOnly}
11+
- type: containingScope
12+
scopeType: {type: branch}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |+
16+
if [ $value -le 0 ]; then
17+
echo "foo1"
18+
echo "foo1"
19+
else
20+
echo "foo1"
21+
fi
22+
23+
24+
25+
selections:
26+
- anchor: {line: 4, character: 4}
27+
active: {line: 4, character: 4}
28+
marks: {}
29+
finalState:
30+
documentContents: |+
31+
if [ $value -le 0 ]; then
32+
echo "foo1"
33+
echo "foo1"
34+
else
35+
36+
fi
37+
38+
39+
40+
selections:
41+
- anchor: {line: 4, character: 4}
42+
active: {line: 4, character: 4}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change inside branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: interiorOnly}
11+
- type: containingScope
12+
scopeType: {type: branch}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |+
16+
if [ $value -le 0 ]; then
17+
echo "foo1"
18+
echo "foo1"
19+
elif [ $value -le 0 ]; then
20+
echo "foo1"
21+
echo "foo1"
22+
else
23+
echo "foo1"
24+
echo "foo1"
25+
fi
26+
27+
selections:
28+
- anchor: {line: 8, character: 3}
29+
active: {line: 8, character: 3}
30+
marks: {}
31+
finalState:
32+
documentContents: |+
33+
if [ $value -le 0 ]; then
34+
echo "foo1"
35+
echo "foo1"
36+
elif [ $value -le 0 ]; then
37+
echo "foo1"
38+
echo "foo1"
39+
else
40+
41+
fi
42+
43+
selections:
44+
- anchor: {line: 7, character: 4}
45+
active: {line: 7, character: 4}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change inside branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: interiorOnly}
11+
- type: containingScope
12+
scopeType: {type: branch}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |+
16+
if [ $value -le 0 ]; then
17+
echo "foo1"
18+
echo "foo1"
19+
elif [ $value -le 0 ]; then
20+
echo "foo1"
21+
echo "foo1"
22+
else
23+
echo "foo1"
24+
fi
25+
26+
selections:
27+
- anchor: {line: 7, character: 0}
28+
active: {line: 7, character: 0}
29+
marks: {}
30+
finalState:
31+
documentContents: |+
32+
if [ $value -le 0 ]; then
33+
echo "foo1"
34+
echo "foo1"
35+
elif [ $value -le 0 ]; then
36+
echo "foo1"
37+
echo "foo1"
38+
else
39+
40+
fi
41+
42+
selections:
43+
- anchor: {line: 7, character: 4}
44+
active: {line: 7, character: 4}

0 commit comments

Comments
 (0)