Skip to content

Commit 55996cc

Browse files
author
fidgetingbits
committed
Tests for local variables
1 parent 0196b73 commit 55996cc

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change name
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: name}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
local local_var="Local Variable"
16+
17+
selections:
18+
- anchor: {line: 0, character: 18}
19+
active: {line: 0, character: 18}
20+
marks: {}
21+
finalState:
22+
documentContents: |+
23+
local ="Local Variable"
24+
25+
selections:
26+
- anchor: {line: 0, character: 6}
27+
active: {line: 0, character: 6}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: chuck name
5+
action:
6+
name: remove
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: name}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
local local_var="Local Variable"
16+
17+
selections:
18+
- anchor: {line: 0, character: 18}
19+
active: {line: 0, character: 18}
20+
marks: {}
21+
finalState:
22+
documentContents: |+
23+
"Local Variable"
24+
25+
selections:
26+
- anchor: {line: 0, character: 2}
27+
active: {line: 0, character: 2}

0 commit comments

Comments
 (0)