@codingame/monaco-editor-wrapper 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/stats.html +1 -1
- package/dist/BSV.tmLanguage.js +0 -299
- package/dist/Groovy2.js +0 -28
- package/dist/bsv.js +0 -115
- package/dist/cobol-COBOL Copybook.js +0 -2017
- package/dist/cobol-COBOL.js +0 -2017
- package/dist/coffeescript-coffeescript.js +0 -18
- package/dist/cpp-c.js +0 -18
- package/dist/cpp-cpp.js +0 -18
- package/dist/elixir-elixir.js +0 -184
- package/dist/features/mutualizedExtensionConfigurations.d.ts +0 -1
- package/dist/features/mutualizedExtensionConfigurations.js +0 -4857
- package/dist/fsharp-fsharp.js +0 -18
- package/dist/groovy-groovy.js +0 -229
- package/dist/javascript-javascript.js +0 -196
- package/dist/javascript-javascriptreact.js +0 -196
- package/dist/kotlin-kotlinscript.js +0 -117
- package/dist/languages/extensions/configurationLoader.d.ts +0 -1324
- package/dist/markdown-basics-markdown.js +0 -121
- package/dist/php-php.js +0 -265
- package/dist/powershell-powershell.js +0 -18
- package/dist/sdc.js +0 -69
- package/dist/sdc.tmLanguage.js +0 -712
- package/dist/services/CustomFoldingRulesLanguageConfigurationService.d.ts +0 -4
- package/dist/services/EditorModelResolverService.d.ts +0 -24
- package/dist/swift-swift.js +0 -183
- package/dist/typescript-basics-typescript.js +0 -312
- package/dist/typescript-basics-typescriptreact.js +0 -312
- package/dist/ucf.js +0 -73
- package/dist/ucf.tmLanguage.js +0 -36
- package/dist/vb-vb.js +0 -88
- package/dist/verilog-bsv.js +0 -49
- package/dist/verilog-systemverilog.js +0 -208
- package/dist/verilog-verilog.js +0 -432
- package/dist/verilog.tmLanguage.js +0 -321
- package/dist/verilog2.js +0 -94
- package/dist/vscode-R-r.js +0 -473
- package/dist/vscode-R-rd.js +0 -473
- package/dist/vscode-R-rmd.js +0 -91
- package/dist/xdc.js +0 -69
package/dist/fsharp-fsharp.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var fsharpFsharp = {
|
|
2
|
-
"Region Start": {
|
|
3
|
-
prefix: "#region",
|
|
4
|
-
body: [
|
|
5
|
-
"//#region $0"
|
|
6
|
-
],
|
|
7
|
-
description: "Folding Region Start"
|
|
8
|
-
},
|
|
9
|
-
"Region End": {
|
|
10
|
-
prefix: "#endregion",
|
|
11
|
-
body: [
|
|
12
|
-
"//#endregion"
|
|
13
|
-
],
|
|
14
|
-
description: "Folding Region End"
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { fsharpFsharp as default };
|
package/dist/groovy-groovy.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
var print = {
|
|
2
|
-
prefix: "p",
|
|
3
|
-
body: "print $0",
|
|
4
|
-
description: "print"
|
|
5
|
-
};
|
|
6
|
-
var groovyGroovy = {
|
|
7
|
-
"replace(dir: …, includes: …, token: …, value: …)": {
|
|
8
|
-
prefix: "replace",
|
|
9
|
-
body: "replace(dir:\"${1:dirName}\", includes:\"${2:*.*}\", token:\"${3:tokenName}\", value:\"\\${${4:value}}\")$0",
|
|
10
|
-
description: "Replace(...)"
|
|
11
|
-
},
|
|
12
|
-
"Doc Block": {
|
|
13
|
-
prefix: "doc",
|
|
14
|
-
body: [
|
|
15
|
-
"/**",
|
|
16
|
-
" * $0",
|
|
17
|
-
" */"
|
|
18
|
-
],
|
|
19
|
-
description: "Doc block comment"
|
|
20
|
-
},
|
|
21
|
-
"key: \"value\" (Hash Pair)": {
|
|
22
|
-
prefix: "key",
|
|
23
|
-
body: "${1:key}: ${2:\"${3:value}\"}"
|
|
24
|
-
},
|
|
25
|
-
"Thread.start { … }": {
|
|
26
|
-
prefix: "thread",
|
|
27
|
-
body: [
|
|
28
|
-
"Thread.start {",
|
|
29
|
-
"\t$0",
|
|
30
|
-
"}"
|
|
31
|
-
],
|
|
32
|
-
description: "Thread.start { ... }"
|
|
33
|
-
},
|
|
34
|
-
"Thread.startDaemon { … }": {
|
|
35
|
-
prefix: "thread",
|
|
36
|
-
body: [
|
|
37
|
-
"Thread.startDaemon {",
|
|
38
|
-
"\t$0",
|
|
39
|
-
"}"
|
|
40
|
-
],
|
|
41
|
-
description: "Thread.startDaemon { ... }"
|
|
42
|
-
},
|
|
43
|
-
"case … break": {
|
|
44
|
-
prefix: "case",
|
|
45
|
-
body: [
|
|
46
|
-
"case ${1:CASE_NAME}:",
|
|
47
|
-
"\t$2",
|
|
48
|
-
"break$0"
|
|
49
|
-
],
|
|
50
|
-
description: "case ... break"
|
|
51
|
-
},
|
|
52
|
-
"instance … (Singleton)": {
|
|
53
|
-
prefix: "instance",
|
|
54
|
-
body: [
|
|
55
|
-
"private static $1 instance",
|
|
56
|
-
"",
|
|
57
|
-
"static $1 getInstance(${2:args}) { ",
|
|
58
|
-
"\tif (!instance) instance = new $1(${2:args})",
|
|
59
|
-
"\treturn instance",
|
|
60
|
-
"}"
|
|
61
|
-
],
|
|
62
|
-
description: "Singleton instance + Getter"
|
|
63
|
-
},
|
|
64
|
-
"class … extends GroovyTestCase { … }": {
|
|
65
|
-
prefix: "tc",
|
|
66
|
-
body: [
|
|
67
|
-
"class $1 extends GroovyTestCase {",
|
|
68
|
-
"",
|
|
69
|
-
"\t$0",
|
|
70
|
-
"}"
|
|
71
|
-
],
|
|
72
|
-
description: "GroovyTestCase class"
|
|
73
|
-
},
|
|
74
|
-
"copy(file: …, tofile: …) ": {
|
|
75
|
-
prefix: "copy",
|
|
76
|
-
body: "copy(file:\"${1:sourceFile}\", tofile:\"${2:targetFile}\")",
|
|
77
|
-
description: "Copy file"
|
|
78
|
-
},
|
|
79
|
-
"copy(todir: …) { fileset(dir: …) { include … exclude }": {
|
|
80
|
-
prefix: "copy",
|
|
81
|
-
body: [
|
|
82
|
-
"copy(todir:\"${1:targetDir}\") {",
|
|
83
|
-
"\tfileset(dir:\"${2:sourceDir}\") {",
|
|
84
|
-
"\t\tinclude(name:\"${3:includeName}\")",
|
|
85
|
-
"\t\texclude(name:\"${4:excludeName}\")",
|
|
86
|
-
"\t}",
|
|
87
|
-
"}"
|
|
88
|
-
],
|
|
89
|
-
description: "Copy fileset todir w/ include/exclude"
|
|
90
|
-
},
|
|
91
|
-
"copy(todir: …) { fileset:dir …) }": {
|
|
92
|
-
prefix: "copy",
|
|
93
|
-
body: [
|
|
94
|
-
"copy(todir:\"${1:targetDir}\") {",
|
|
95
|
-
"\tfileset(dir:\"${2:sourceDir}\")",
|
|
96
|
-
"}"
|
|
97
|
-
],
|
|
98
|
-
description: "Copy fileset todir"
|
|
99
|
-
},
|
|
100
|
-
"closure = { … } ": {
|
|
101
|
-
prefix: "cv",
|
|
102
|
-
body: [
|
|
103
|
-
"def ${1:closureName} = { ${2:args} ->",
|
|
104
|
-
"\t$0",
|
|
105
|
-
"}"
|
|
106
|
-
],
|
|
107
|
-
description: "Closure block"
|
|
108
|
-
},
|
|
109
|
-
"for(… in …) { … }": {
|
|
110
|
-
prefix: "forin",
|
|
111
|
-
body: [
|
|
112
|
-
"for (${1:element} in ${2:collection}) {",
|
|
113
|
-
"\t$0",
|
|
114
|
-
"}"
|
|
115
|
-
],
|
|
116
|
-
description: "For-loop"
|
|
117
|
-
},
|
|
118
|
-
"mkdir(dir: …)": {
|
|
119
|
-
prefix: "mkdir",
|
|
120
|
-
body: "mkdir(dir:\"${1:dirName}\")",
|
|
121
|
-
description: "mkdir"
|
|
122
|
-
},
|
|
123
|
-
print: print,
|
|
124
|
-
"println ": {
|
|
125
|
-
prefix: "pl",
|
|
126
|
-
body: "println $0",
|
|
127
|
-
description: "println"
|
|
128
|
-
},
|
|
129
|
-
"runAfter() { … }": {
|
|
130
|
-
prefix: "runa",
|
|
131
|
-
body: [
|
|
132
|
-
"runAfter(${1:delay}) {",
|
|
133
|
-
"\t$0",
|
|
134
|
-
"}"
|
|
135
|
-
],
|
|
136
|
-
description: "runAfter() { ... }"
|
|
137
|
-
},
|
|
138
|
-
"setUp() { … }": {
|
|
139
|
-
prefix: "setup",
|
|
140
|
-
body: [
|
|
141
|
-
"void setUp() {",
|
|
142
|
-
"\t$0",
|
|
143
|
-
"}"
|
|
144
|
-
],
|
|
145
|
-
description: "setup() { ... }"
|
|
146
|
-
},
|
|
147
|
-
"sleep(secs) { … // on interrupt do }": {
|
|
148
|
-
prefix: "sleep",
|
|
149
|
-
body: [
|
|
150
|
-
"sleep(${1:secs}) {",
|
|
151
|
-
"\t${2:// on interrupt do}",
|
|
152
|
-
"}"
|
|
153
|
-
],
|
|
154
|
-
description: "sleep with interrupt"
|
|
155
|
-
},
|
|
156
|
-
"sleep(secs)": {
|
|
157
|
-
prefix: "sleep",
|
|
158
|
-
body: "sleep(${1:secs})",
|
|
159
|
-
description: "sleep"
|
|
160
|
-
},
|
|
161
|
-
"sort { … }": {
|
|
162
|
-
prefix: "sort",
|
|
163
|
-
body: [
|
|
164
|
-
"sort { ",
|
|
165
|
-
"\t$0",
|
|
166
|
-
"}"
|
|
167
|
-
],
|
|
168
|
-
description: "sort"
|
|
169
|
-
},
|
|
170
|
-
"static main() { … }": {
|
|
171
|
-
prefix: "main",
|
|
172
|
-
body: [
|
|
173
|
-
"static main(args) {",
|
|
174
|
-
"\t$0",
|
|
175
|
-
"}"
|
|
176
|
-
],
|
|
177
|
-
description: "main method"
|
|
178
|
-
},
|
|
179
|
-
"switch … case": {
|
|
180
|
-
prefix: "switch",
|
|
181
|
-
body: [
|
|
182
|
-
"switch(${1:value}) {",
|
|
183
|
-
"\tcase ${2:CASE}:",
|
|
184
|
-
"\t\t$3",
|
|
185
|
-
"\tbreak$0",
|
|
186
|
-
"}"
|
|
187
|
-
],
|
|
188
|
-
description: "Switch-Case block"
|
|
189
|
-
},
|
|
190
|
-
"switch … case … default": {
|
|
191
|
-
prefix: "switch",
|
|
192
|
-
body: [
|
|
193
|
-
"switch(${1:value}) {",
|
|
194
|
-
"\tcase ${3:CASE}:",
|
|
195
|
-
"\t\t$4",
|
|
196
|
-
"\tbreak$0",
|
|
197
|
-
"\tdefault:",
|
|
198
|
-
"\t\t$2",
|
|
199
|
-
"\tbreak",
|
|
200
|
-
"}"
|
|
201
|
-
],
|
|
202
|
-
description: "Switch-Case-Default block"
|
|
203
|
-
},
|
|
204
|
-
"tearDown() { … }": {
|
|
205
|
-
prefix: "tear",
|
|
206
|
-
body: [
|
|
207
|
-
"void tearDown() {",
|
|
208
|
-
"\t$0",
|
|
209
|
-
"}"
|
|
210
|
-
],
|
|
211
|
-
description: "tearDown() { ... }"
|
|
212
|
-
},
|
|
213
|
-
"test()": {
|
|
214
|
-
prefix: "t",
|
|
215
|
-
body: [
|
|
216
|
-
"void test$1() {",
|
|
217
|
-
"\t$0",
|
|
218
|
-
"}"
|
|
219
|
-
],
|
|
220
|
-
description: "test method"
|
|
221
|
-
},
|
|
222
|
-
"var": {
|
|
223
|
-
prefix: "v",
|
|
224
|
-
body: "${1:def} ${2:var}${3: = ${0:null}}",
|
|
225
|
-
description: "var"
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
export { groovyGroovy as default, print };
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
var javascriptJavascript = {
|
|
2
|
-
"define module": {
|
|
3
|
-
prefix: "define",
|
|
4
|
-
body: [
|
|
5
|
-
"define([",
|
|
6
|
-
"\t'require',",
|
|
7
|
-
"\t'${1:dependency}'",
|
|
8
|
-
"], function(require, ${2:factory}) {",
|
|
9
|
-
"\t'use strict';",
|
|
10
|
-
"\t$0",
|
|
11
|
-
"});"
|
|
12
|
-
],
|
|
13
|
-
description: "define module"
|
|
14
|
-
},
|
|
15
|
-
"For Loop": {
|
|
16
|
-
prefix: "for",
|
|
17
|
-
body: [
|
|
18
|
-
"for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {",
|
|
19
|
-
"\tconst ${3:element} = ${2:array}[${1:index}];",
|
|
20
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
21
|
-
"}"
|
|
22
|
-
],
|
|
23
|
-
description: "For Loop"
|
|
24
|
-
},
|
|
25
|
-
"For-Each Loop": {
|
|
26
|
-
prefix: "foreach",
|
|
27
|
-
body: [
|
|
28
|
-
"${1:array}.forEach(${2:element} => {",
|
|
29
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
30
|
-
"});"
|
|
31
|
-
],
|
|
32
|
-
description: "For-Each Loop"
|
|
33
|
-
},
|
|
34
|
-
"For-In Loop": {
|
|
35
|
-
prefix: "forin",
|
|
36
|
-
body: [
|
|
37
|
-
"for (const ${1:key} in ${2:object}) {",
|
|
38
|
-
"\tif (Object.hasOwnProperty.call(${2:object}, ${1:key})) {",
|
|
39
|
-
"\t\tconst ${3:element} = ${2:object}[${1:key}];",
|
|
40
|
-
"\t\t$TM_SELECTED_TEXT$0",
|
|
41
|
-
"\t}",
|
|
42
|
-
"}"
|
|
43
|
-
],
|
|
44
|
-
description: "For-In Loop"
|
|
45
|
-
},
|
|
46
|
-
"For-Of Loop": {
|
|
47
|
-
prefix: "forof",
|
|
48
|
-
body: [
|
|
49
|
-
"for (const ${1:iterator} of ${2:object}) {",
|
|
50
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
51
|
-
"}"
|
|
52
|
-
],
|
|
53
|
-
description: "For-Of Loop"
|
|
54
|
-
},
|
|
55
|
-
"Function Statement": {
|
|
56
|
-
prefix: "function",
|
|
57
|
-
body: [
|
|
58
|
-
"function ${1:name}(${2:params}) {",
|
|
59
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
60
|
-
"}"
|
|
61
|
-
],
|
|
62
|
-
description: "Function Statement"
|
|
63
|
-
},
|
|
64
|
-
"If Statement": {
|
|
65
|
-
prefix: "if",
|
|
66
|
-
body: [
|
|
67
|
-
"if (${1:condition}) {",
|
|
68
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
69
|
-
"}"
|
|
70
|
-
],
|
|
71
|
-
description: "If Statement"
|
|
72
|
-
},
|
|
73
|
-
"If-Else Statement": {
|
|
74
|
-
prefix: "ifelse",
|
|
75
|
-
body: [
|
|
76
|
-
"if (${1:condition}) {",
|
|
77
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
78
|
-
"} else {",
|
|
79
|
-
"\t",
|
|
80
|
-
"}"
|
|
81
|
-
],
|
|
82
|
-
description: "If-Else Statement"
|
|
83
|
-
},
|
|
84
|
-
"New Statement": {
|
|
85
|
-
prefix: "new",
|
|
86
|
-
body: [
|
|
87
|
-
"const ${1:name} = new ${2:type}(${3:arguments});$0"
|
|
88
|
-
],
|
|
89
|
-
description: "New Statement"
|
|
90
|
-
},
|
|
91
|
-
"Switch Statement": {
|
|
92
|
-
prefix: "switch",
|
|
93
|
-
body: [
|
|
94
|
-
"switch (${1:key}) {",
|
|
95
|
-
"\tcase ${2:value}:",
|
|
96
|
-
"\t\t$0",
|
|
97
|
-
"\t\tbreak;",
|
|
98
|
-
"",
|
|
99
|
-
"\tdefault:",
|
|
100
|
-
"\t\tbreak;",
|
|
101
|
-
"}"
|
|
102
|
-
],
|
|
103
|
-
description: "Switch Statement"
|
|
104
|
-
},
|
|
105
|
-
"While Statement": {
|
|
106
|
-
prefix: "while",
|
|
107
|
-
body: [
|
|
108
|
-
"while (${1:condition}) {",
|
|
109
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
110
|
-
"}"
|
|
111
|
-
],
|
|
112
|
-
description: "While Statement"
|
|
113
|
-
},
|
|
114
|
-
"Do-While Statement": {
|
|
115
|
-
prefix: "dowhile",
|
|
116
|
-
body: [
|
|
117
|
-
"do {",
|
|
118
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
119
|
-
"} while (${1:condition});"
|
|
120
|
-
],
|
|
121
|
-
description: "Do-While Statement"
|
|
122
|
-
},
|
|
123
|
-
"Try-Catch Statement": {
|
|
124
|
-
prefix: "trycatch",
|
|
125
|
-
body: [
|
|
126
|
-
"try {",
|
|
127
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
128
|
-
"} catch (${1:error}) {",
|
|
129
|
-
"\t",
|
|
130
|
-
"}"
|
|
131
|
-
],
|
|
132
|
-
description: "Try-Catch Statement"
|
|
133
|
-
},
|
|
134
|
-
"Set Timeout Function": {
|
|
135
|
-
prefix: "settimeout",
|
|
136
|
-
body: [
|
|
137
|
-
"setTimeout(() => {",
|
|
138
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
139
|
-
"}, ${1:timeout});"
|
|
140
|
-
],
|
|
141
|
-
description: "Set Timeout Function"
|
|
142
|
-
},
|
|
143
|
-
"Set Interval Function": {
|
|
144
|
-
prefix: "setinterval",
|
|
145
|
-
body: [
|
|
146
|
-
"setInterval(() => {",
|
|
147
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
148
|
-
"}, ${1:interval});"
|
|
149
|
-
],
|
|
150
|
-
description: "Set Interval Function"
|
|
151
|
-
},
|
|
152
|
-
"Import external module.": {
|
|
153
|
-
prefix: "import statement",
|
|
154
|
-
body: [
|
|
155
|
-
"import { $0 } from \"${1:module}\";"
|
|
156
|
-
],
|
|
157
|
-
description: "Import external module."
|
|
158
|
-
},
|
|
159
|
-
"Region Start": {
|
|
160
|
-
prefix: "#region",
|
|
161
|
-
body: [
|
|
162
|
-
"//#region $0"
|
|
163
|
-
],
|
|
164
|
-
description: "Folding Region Start"
|
|
165
|
-
},
|
|
166
|
-
"Region End": {
|
|
167
|
-
prefix: "#endregion",
|
|
168
|
-
body: [
|
|
169
|
-
"//#endregion"
|
|
170
|
-
],
|
|
171
|
-
description: "Folding Region End"
|
|
172
|
-
},
|
|
173
|
-
"Log to the console": {
|
|
174
|
-
prefix: "log",
|
|
175
|
-
body: [
|
|
176
|
-
"console.log($1);"
|
|
177
|
-
],
|
|
178
|
-
description: "Log to the console"
|
|
179
|
-
},
|
|
180
|
-
"Log warning to console": {
|
|
181
|
-
prefix: "warn",
|
|
182
|
-
body: [
|
|
183
|
-
"console.warn($1);"
|
|
184
|
-
],
|
|
185
|
-
description: "Log warning to the console"
|
|
186
|
-
},
|
|
187
|
-
"Log error to console": {
|
|
188
|
-
prefix: "error",
|
|
189
|
-
body: [
|
|
190
|
-
"console.error($1);"
|
|
191
|
-
],
|
|
192
|
-
description: "Log error to the console"
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
export { javascriptJavascript as default };
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
var javascriptJavascriptreact = {
|
|
2
|
-
"define module": {
|
|
3
|
-
prefix: "define",
|
|
4
|
-
body: [
|
|
5
|
-
"define([",
|
|
6
|
-
"\t'require',",
|
|
7
|
-
"\t'${1:dependency}'",
|
|
8
|
-
"], function(require, ${2:factory}) {",
|
|
9
|
-
"\t'use strict';",
|
|
10
|
-
"\t$0",
|
|
11
|
-
"});"
|
|
12
|
-
],
|
|
13
|
-
description: "define module"
|
|
14
|
-
},
|
|
15
|
-
"For Loop": {
|
|
16
|
-
prefix: "for",
|
|
17
|
-
body: [
|
|
18
|
-
"for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {",
|
|
19
|
-
"\tconst ${3:element} = ${2:array}[${1:index}];",
|
|
20
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
21
|
-
"}"
|
|
22
|
-
],
|
|
23
|
-
description: "For Loop"
|
|
24
|
-
},
|
|
25
|
-
"For-Each Loop": {
|
|
26
|
-
prefix: "foreach",
|
|
27
|
-
body: [
|
|
28
|
-
"${1:array}.forEach(${2:element} => {",
|
|
29
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
30
|
-
"});"
|
|
31
|
-
],
|
|
32
|
-
description: "For-Each Loop"
|
|
33
|
-
},
|
|
34
|
-
"For-In Loop": {
|
|
35
|
-
prefix: "forin",
|
|
36
|
-
body: [
|
|
37
|
-
"for (const ${1:key} in ${2:object}) {",
|
|
38
|
-
"\tif (Object.hasOwnProperty.call(${2:object}, ${1:key})) {",
|
|
39
|
-
"\t\tconst ${3:element} = ${2:object}[${1:key}];",
|
|
40
|
-
"\t\t$TM_SELECTED_TEXT$0",
|
|
41
|
-
"\t}",
|
|
42
|
-
"}"
|
|
43
|
-
],
|
|
44
|
-
description: "For-In Loop"
|
|
45
|
-
},
|
|
46
|
-
"For-Of Loop": {
|
|
47
|
-
prefix: "forof",
|
|
48
|
-
body: [
|
|
49
|
-
"for (const ${1:iterator} of ${2:object}) {",
|
|
50
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
51
|
-
"}"
|
|
52
|
-
],
|
|
53
|
-
description: "For-Of Loop"
|
|
54
|
-
},
|
|
55
|
-
"Function Statement": {
|
|
56
|
-
prefix: "function",
|
|
57
|
-
body: [
|
|
58
|
-
"function ${1:name}(${2:params}) {",
|
|
59
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
60
|
-
"}"
|
|
61
|
-
],
|
|
62
|
-
description: "Function Statement"
|
|
63
|
-
},
|
|
64
|
-
"If Statement": {
|
|
65
|
-
prefix: "if",
|
|
66
|
-
body: [
|
|
67
|
-
"if (${1:condition}) {",
|
|
68
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
69
|
-
"}"
|
|
70
|
-
],
|
|
71
|
-
description: "If Statement"
|
|
72
|
-
},
|
|
73
|
-
"If-Else Statement": {
|
|
74
|
-
prefix: "ifelse",
|
|
75
|
-
body: [
|
|
76
|
-
"if (${1:condition}) {",
|
|
77
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
78
|
-
"} else {",
|
|
79
|
-
"\t",
|
|
80
|
-
"}"
|
|
81
|
-
],
|
|
82
|
-
description: "If-Else Statement"
|
|
83
|
-
},
|
|
84
|
-
"New Statement": {
|
|
85
|
-
prefix: "new",
|
|
86
|
-
body: [
|
|
87
|
-
"const ${1:name} = new ${2:type}(${3:arguments});$0"
|
|
88
|
-
],
|
|
89
|
-
description: "New Statement"
|
|
90
|
-
},
|
|
91
|
-
"Switch Statement": {
|
|
92
|
-
prefix: "switch",
|
|
93
|
-
body: [
|
|
94
|
-
"switch (${1:key}) {",
|
|
95
|
-
"\tcase ${2:value}:",
|
|
96
|
-
"\t\t$0",
|
|
97
|
-
"\t\tbreak;",
|
|
98
|
-
"",
|
|
99
|
-
"\tdefault:",
|
|
100
|
-
"\t\tbreak;",
|
|
101
|
-
"}"
|
|
102
|
-
],
|
|
103
|
-
description: "Switch Statement"
|
|
104
|
-
},
|
|
105
|
-
"While Statement": {
|
|
106
|
-
prefix: "while",
|
|
107
|
-
body: [
|
|
108
|
-
"while (${1:condition}) {",
|
|
109
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
110
|
-
"}"
|
|
111
|
-
],
|
|
112
|
-
description: "While Statement"
|
|
113
|
-
},
|
|
114
|
-
"Do-While Statement": {
|
|
115
|
-
prefix: "dowhile",
|
|
116
|
-
body: [
|
|
117
|
-
"do {",
|
|
118
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
119
|
-
"} while (${1:condition});"
|
|
120
|
-
],
|
|
121
|
-
description: "Do-While Statement"
|
|
122
|
-
},
|
|
123
|
-
"Try-Catch Statement": {
|
|
124
|
-
prefix: "trycatch",
|
|
125
|
-
body: [
|
|
126
|
-
"try {",
|
|
127
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
128
|
-
"} catch (${1:error}) {",
|
|
129
|
-
"\t",
|
|
130
|
-
"}"
|
|
131
|
-
],
|
|
132
|
-
description: "Try-Catch Statement"
|
|
133
|
-
},
|
|
134
|
-
"Set Timeout Function": {
|
|
135
|
-
prefix: "settimeout",
|
|
136
|
-
body: [
|
|
137
|
-
"setTimeout(() => {",
|
|
138
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
139
|
-
"}, ${1:timeout});"
|
|
140
|
-
],
|
|
141
|
-
description: "Set Timeout Function"
|
|
142
|
-
},
|
|
143
|
-
"Set Interval Function": {
|
|
144
|
-
prefix: "setinterval",
|
|
145
|
-
body: [
|
|
146
|
-
"setInterval(() => {",
|
|
147
|
-
"\t$TM_SELECTED_TEXT$0",
|
|
148
|
-
"}, ${1:interval});"
|
|
149
|
-
],
|
|
150
|
-
description: "Set Interval Function"
|
|
151
|
-
},
|
|
152
|
-
"Import external module.": {
|
|
153
|
-
prefix: "import statement",
|
|
154
|
-
body: [
|
|
155
|
-
"import { $0 } from \"${1:module}\";"
|
|
156
|
-
],
|
|
157
|
-
description: "Import external module."
|
|
158
|
-
},
|
|
159
|
-
"Region Start": {
|
|
160
|
-
prefix: "#region",
|
|
161
|
-
body: [
|
|
162
|
-
"//#region $0"
|
|
163
|
-
],
|
|
164
|
-
description: "Folding Region Start"
|
|
165
|
-
},
|
|
166
|
-
"Region End": {
|
|
167
|
-
prefix: "#endregion",
|
|
168
|
-
body: [
|
|
169
|
-
"//#endregion"
|
|
170
|
-
],
|
|
171
|
-
description: "Folding Region End"
|
|
172
|
-
},
|
|
173
|
-
"Log to the console": {
|
|
174
|
-
prefix: "log",
|
|
175
|
-
body: [
|
|
176
|
-
"console.log($1);"
|
|
177
|
-
],
|
|
178
|
-
description: "Log to the console"
|
|
179
|
-
},
|
|
180
|
-
"Log warning to console": {
|
|
181
|
-
prefix: "warn",
|
|
182
|
-
body: [
|
|
183
|
-
"console.warn($1);"
|
|
184
|
-
],
|
|
185
|
-
description: "Log warning to the console"
|
|
186
|
-
},
|
|
187
|
-
"Log error to console": {
|
|
188
|
-
prefix: "error",
|
|
189
|
-
body: [
|
|
190
|
-
"console.error($1);"
|
|
191
|
-
],
|
|
192
|
-
description: "Log error to the console"
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
export { javascriptJavascriptreact as default };
|