@@ -12,8 +12,8 @@ function createSandcastleSnippets(range: Range): languages.CompletionItem[] {
12
12
kind : languages . CompletionItemKind . Function ,
13
13
documentation : "Create a Sandcastle button" ,
14
14
insertText : `Sandcastle.addToolbarButton(\${1:"New Button"}, function () {
15
- \${0:// your code here}
16
- });`,
15
+ \${0:// your code here}
16
+ });` ,
17
17
insertTextRules : languages . CompletionItemInsertTextRule . InsertAsSnippet ,
18
18
range : range ,
19
19
} ,
@@ -22,9 +22,9 @@ function createSandcastleSnippets(range: Range): languages.CompletionItem[] {
22
22
kind : languages . CompletionItemKind . Function ,
23
23
documentation : "Create a Sandcastle toggle button" ,
24
24
insertText : `let \${2:toggleValue} = \${3:true};
25
- Sandcastle.addToggleButton(\${1:"Toggle"}, \${2:toggleValue}, function (checked) {
26
- \${2:toggleValue} = checked;$0
27
- });`,
25
+ Sandcastle.addToggleButton(\${1:"Toggle"}, \${2:toggleValue}, function (checked) {
26
+ \${2:toggleValue} = checked;$0
27
+ });` ,
28
28
insertTextRules : languages . CompletionItemInsertTextRule . InsertAsSnippet ,
29
29
range : range ,
30
30
} ,
@@ -33,14 +33,14 @@ function createSandcastleSnippets(range: Range): languages.CompletionItem[] {
33
33
kind : languages . CompletionItemKind . Function ,
34
34
documentation : "Create a Sandcastle select menu" ,
35
35
insertText : `const \${1:options} = [
36
- {
37
- text: \${2:"Option 1"},
38
- onselect: function () {
39
- \${0:// your code here, the first option is always run at load}
40
- },
36
+ {
37
+ text: \${2:"Option 1"},
38
+ onselect: function () {
39
+ \${0:// your code here, the first option is always run at load}
41
40
},
42
- ];
43
- Sandcastle.addToolbarMenu(\${1:options});` ,
41
+ },
42
+ ];
43
+ Sandcastle.addToolbarMenu(\${1:options});` ,
44
44
insertTextRules : languages . CompletionItemInsertTextRule . InsertAsSnippet ,
45
45
range : range ,
46
46
} ,
@@ -49,11 +49,11 @@ function createSandcastleSnippets(range: Range): languages.CompletionItem[] {
49
49
kind : languages . CompletionItemKind . Function ,
50
50
documentation : "Create a Sandcastle select menu item" ,
51
51
insertText : `{
52
- text: \${1:"New Option"},
53
- onselect: function () {
54
- \${0:// your code here, the first option is always run at load}
55
- },
56
- },`,
52
+ text: \${1:"New Option"},
53
+ onselect: function () {
54
+ \${0:// your code here, the first option is always run at load}
55
+ },
56
+ },` ,
57
57
insertTextRules : languages . CompletionItemInsertTextRule . InsertAsSnippet ,
58
58
range : range ,
59
59
} ,
0 commit comments