File tree Expand file tree Collapse file tree 9 files changed +39
-133
lines changed
Expand file tree Collapse file tree 9 files changed +39
-133
lines changed Original file line number Diff line number Diff line change 66 name : insertSnippet
77 snippetDescription :
88 type : custom
9- body : " function $name($parameterList) {\n\t $body\n }"
9+ body : " $name($parameterList) {\n\t $body\n }"
1010 scopeTypes :
1111 - {type: statement}
1212 destination :
@@ -25,12 +25,12 @@ initialState:
2525finalState :
2626 documentContents : |-
2727 const foo = "bar";
28- function () {
28+ () {
2929
3030 }
3131 selections :
32- - anchor : {line: 1, character: 9 }
33- active : {line: 1, character: 9 }
32+ - anchor : {line: 1, character: 0 }
33+ active : {line: 1, character: 0 }
3434 thatMark :
3535 - type : UntypedTarget
3636 contentRange :
Original file line number Diff line number Diff line change @@ -4,15 +4,19 @@ command:
44 spokenForm : snippet funk after this
55 action :
66 name : insertSnippet
7- snippetDescription : {type: named, name: functionDeclaration}
7+ snippetDescription :
8+ type : custom
9+ body : " $name($parameterList) {\n\t $body\n }"
10+ scopeTypes :
11+ - {type: statement}
812 destination :
913 type : primitive
1014 insertionMode : after
1115 target :
1216 type : primitive
1317 mark : {type: cursor}
1418 usePrePhraseSnapshot : true
15- spokenFormError : named insertion snippet
19+ spokenFormError : custom insertion snippet
1620initialState :
1721 documentContents : |-
1822 class Aaa {
@@ -24,4 +28,23 @@ initialState:
2428 - anchor : {line: 2, character: 8}
2529 active : {line: 2, character: 8}
2630 marks : {}
27- thrownError : {name: Error}
31+ finalState :
32+ documentContents : |-
33+ class Aaa {
34+ bbb() {
35+
36+ }
37+ () {
38+
39+ }
40+ }
41+ selections :
42+ - anchor : {line: 4, character: 4}
43+ active : {line: 4, character: 4}
44+ thatMark :
45+ - type : UntypedTarget
46+ contentRange :
47+ start : {line: 4, character: 4}
48+ end : {line: 6, character: 5}
49+ isReversed : false
50+ hasExplicitRange : true
Original file line number Diff line number Diff line change 66 name : insertSnippet
77 snippetDescription :
88 type : custom
9- body : " function $name($parameterList) {\n\t $body\n }"
9+ body : " $name($parameterList) {\n\t $body\n }"
1010 scopeTypes :
1111 - {type: statement}
1212 substitutions : {name: celloWorld}
@@ -25,13 +25,13 @@ initialState:
2525finalState :
2626 documentContents : |-
2727 class Aaa {
28- function celloWorld() {
28+ celloWorld() {
2929
3030 }
3131 }
3232 selections :
33- - anchor : {line: 1, character: 24 }
34- active : {line: 1, character: 24 }
33+ - anchor : {line: 1, character: 15 }
34+ active : {line: 1, character: 15 }
3535 thatMark :
3636 - type : UntypedTarget
3737 contentRange :
Original file line number Diff line number Diff line change 66 name : insertSnippet
77 snippetDescription :
88 type : custom
9- body : " function $name($parameterList) { \n\t $body\n } "
9+ body : " def $name($parameterList): \n\t $body"
1010 scopeTypes :
1111 - {type: statement}
1212 substitutions : {name: hello_world}
@@ -20,16 +20,15 @@ initialState:
2020 active : {line: 0, character: 0}
2121finalState :
2222 documentContents : |-
23- function hello_world() {
23+ def hello_world():
2424
25- }
2625 selections :
27- - anchor : {line: 0, character: 21 }
28- active : {line: 0, character: 21 }
26+ - anchor : {line: 0, character: 16 }
27+ active : {line: 0, character: 16 }
2928 thatMark :
3029 - type : UntypedTarget
3130 contentRange :
3231 start : {line: 0, character: 0}
33- end : {line: 2 , character: 1 }
32+ end : {line: 1 , character: 4 }
3433 isReversed : false
3534 hasExplicitRange : true
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments