@codingame/monaco-editor-wrapper 1.7.0 → 1.8.0
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/dist/Groovy2.js +28 -0
- package/dist/features/mutualizedExtensionConfigurations.d.ts +1 -0
- package/dist/features/mutualizedExtensionConfigurations.js +4857 -0
- package/dist/languages/extensions/configurationLoader.d.ts +20 -2
- package/dist/languages/index.d.ts +2 -1
- package/dist/languages/textMate/index.d.ts +1 -1
- package/dist/main.js +26 -10
- package/dist/markdown-basics-markdown.js +18 -0
- package/dist/services/CustomFoldingRulesLanguageConfigurationService.d.ts +4 -0
- package/dist/verilog-systemverilog.js +140 -327
- package/dist/verilog2.js +65 -56
- package/dist/vscode-R-rmd.js +2 -2
- package/package.json +1 -2
- package/stats.html +1 -1
- package/dist/COBOL Copybook2.js +0 -2017
- package/dist/COBOL2.js +0 -2017
- package/dist/SQL.plist.js +0 -482
- package/dist/bsv2.js +0 -49
- package/dist/c2.js +0 -18
- package/dist/coffeescript2.js +0 -18
- package/dist/configuration/hack.d.ts +0 -2
- package/dist/cpp2.js +0 -18
- package/dist/csharp2.js +0 -508
- package/dist/cssContribution.js +0 -10
- package/dist/diet3.js +0 -92
- package/dist/extensionConfigurations.js +0 -9475
- package/dist/fsharp2.js +0 -18
- package/dist/groovy2.js +0 -229
- package/dist/html (eex).js +0 -31
- package/dist/htmlContribution.js +0 -10
- package/dist/javascript2.js +0 -196
- package/dist/javascriptreact2.js +0 -196
- package/dist/jsonContribution.js +0 -78
- package/dist/kotlin2.js +0 -117
- package/dist/kotlinscript2.js +0 -117
- package/dist/languages/monarch/list.d.ts +0 -7
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
- package/dist/markdown-basics.js +0 -103
- package/dist/markdown2.js +0 -103
- package/dist/pgsql-sql.js +0 -21
- package/dist/pgsql.js +0 -21
- package/dist/php2.js +0 -265
- package/dist/powershell2.js +0 -18
- package/dist/r.tmLanguage.js +0 -572
- package/dist/reason2.js +0 -100
- package/dist/services/functional.d.ts +0 -1
- package/dist/services/lyfecycle.d.ts +0 -13
- package/dist/sql2.js +0 -21
- package/dist/swift2.js +0 -183
- package/dist/systemverilog2.js +0 -208
- package/dist/tcl2.js +0 -151
- package/dist/typescript-basics.js +0 -312
- package/dist/typescript2.js +0 -312
- package/dist/typescriptContribution.js +0 -36
- package/dist/typescriptreact2.js +0 -312
- package/dist/vb2.js +0 -88
package/dist/fsharp2.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var fsharp = {
|
|
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 { fsharp as default };
|
package/dist/groovy2.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
var print = {
|
|
2
|
-
prefix: "p",
|
|
3
|
-
body: "print $0",
|
|
4
|
-
description: "print"
|
|
5
|
-
};
|
|
6
|
-
var groovy = {
|
|
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 { groovy as default, print };
|
package/dist/html (eex).js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var fileTypes = [
|
|
2
|
-
"html.eex"
|
|
3
|
-
];
|
|
4
|
-
var foldingStartMarker = "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)";
|
|
5
|
-
var foldingStopMarker = "(?x)\n\t\t(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^\\s*-->\n\t\t|(^|\\s)\\}\n\t\t)";
|
|
6
|
-
var name = "HTML (EEx)";
|
|
7
|
-
var patterns = [
|
|
8
|
-
{
|
|
9
|
-
include: "text.elixir"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
include: "text.html.basic"
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
var scopeName = "text.html.elixir";
|
|
16
|
-
var information_for_contributors = [
|
|
17
|
-
"This file has been converted from https://github.com/timmhirsens/vscode-elixir/blob/master/",
|
|
18
|
-
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
19
|
-
"Once accepted there, we are happy to receive an update request."
|
|
20
|
-
];
|
|
21
|
-
var html__eex_ = {
|
|
22
|
-
fileTypes: fileTypes,
|
|
23
|
-
foldingStartMarker: foldingStartMarker,
|
|
24
|
-
foldingStopMarker: foldingStopMarker,
|
|
25
|
-
name: name,
|
|
26
|
-
patterns: patterns,
|
|
27
|
-
scopeName: scopeName,
|
|
28
|
-
information_for_contributors: information_for_contributors
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export { html__eex_ as default, fileTypes, foldingStartMarker, foldingStopMarker, information_for_contributors, name, patterns, scopeName };
|
package/dist/htmlContribution.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import 'monaco-editor/esm/vs/language/html/monaco.contribution';
|
|
2
|
-
import { r as registerWorkerLoader } from './worker.js';
|
|
3
|
-
|
|
4
|
-
const workerLoader = async () => (await import(
|
|
5
|
-
/* webpackChunkName: "MonacoHtmlWorker" */
|
|
6
|
-
'./html.worker.js').then(module => module)).default;
|
|
7
|
-
|
|
8
|
-
registerWorkerLoader('html', workerLoader);
|
|
9
|
-
registerWorkerLoader('handlebars', workerLoader);
|
|
10
|
-
registerWorkerLoader('razor', workerLoader);
|
package/dist/javascript2.js
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
var javascript = {
|
|
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 { javascript as default };
|
package/dist/javascriptreact2.js
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
var javascriptreact = {
|
|
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 { javascriptreact as default };
|