@codingame/monaco-editor-wrapper 1.4.3 → 1.7.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/COBOL Copybook2.js +2017 -0
- package/dist/COBOL2.js +2017 -0
- package/dist/JavaScript.tmLanguage.js +0 -49
- package/dist/JavaScriptReact.tmLanguage.js +0 -49
- package/dist/SQL.plist.js +482 -0
- package/dist/TypeScript.tmLanguage.js +0 -49
- package/dist/TypeScriptReact.tmLanguage.js +0 -49
- package/dist/bsv2.js +49 -0
- package/dist/c2.js +18 -0
- package/dist/cobol-snippets.js +2017 -0
- package/dist/codeblock3.js +18 -18
- package/dist/coffeescript-coffeescript.code-snippets.js +18 -0
- package/dist/coffeescript2.js +18 -0
- package/dist/configuration/hack.d.ts +2 -0
- package/dist/cpp-c.code-snippets.js +18 -0
- package/dist/cpp-cpp.code-snippets.js +18 -0
- package/dist/cpp2.js +18 -0
- package/dist/cpptools.js +7 -1
- package/dist/csharp2.js +508 -0
- package/dist/css.worker.js +1 -1
- package/dist/cssContribution.js +10 -0
- package/dist/diet3.js +92 -0
- package/dist/elixir-snippets.js +184 -0
- package/dist/extensionConfigurations.js +9475 -0
- package/dist/features/extensionConfigurations.js +3 -3
- package/dist/fsharp-fsharp.code-snippets.js +18 -0
- package/dist/fsharp2.js +18 -0
- package/dist/groovy-groovy.code-snippets.js +229 -0
- package/dist/groovy2.js +229 -0
- package/dist/hacks.d.ts +2 -1
- package/dist/html (eex).js +31 -0
- package/dist/html.worker.js +1 -1
- package/dist/htmlContribution.js +10 -0
- package/dist/index.d.ts +2 -2
- package/dist/java-java.js +4 -1
- package/dist/java.js +11 -0
- package/dist/java2.js +3 -2
- package/dist/javascript-javascript.code-snippets.js +196 -0
- package/dist/javascript2.js +196 -0
- package/dist/javascriptreact2.js +196 -0
- package/dist/json.worker.js +1 -1
- package/dist/jsonContribution.js +78 -0
- package/dist/keybindings/index.d.ts +2 -1
- package/dist/keybindings/keybindingHelper.d.ts +1 -1
- package/dist/kotlin2.js +117 -0
- package/dist/kotlinscript2.js +117 -0
- package/dist/languages/extensions/configurationLoader.d.ts +1306 -0
- package/dist/languages/extensions/languageConfigurationLoader.d.ts +9 -1
- package/dist/languages/monarch/list.d.ts +7 -0
- package/dist/languages/textMate/CGTMTokenizationSupport.d.ts +2 -2
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
- package/dist/lua2.js +35 -0
- package/dist/main.js +186 -232
- package/dist/markdown-basics-markdown.code-snippets.js +121 -0
- package/dist/markdown-basics.js +103 -0
- package/dist/markdown2.js +103 -0
- package/dist/monaco.d.ts +0 -1
- package/dist/pgsql-sql.js +21 -0
- package/dist/pgsql.js +21 -0
- package/dist/php-php.code-snippets.js +265 -0
- package/dist/php2.js +265 -0
- package/dist/powershell-powershell.code-snippets.js +18 -0
- package/dist/powershell2.js +18 -0
- package/dist/r.tmLanguage.js +572 -0
- package/dist/r2.js +1 -1
- package/dist/reason2.js +100 -0
- package/dist/scalameta.js +12 -1
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +3 -3
- package/dist/services/TextModelService.d.ts +25 -0
- package/dist/services/functional.d.ts +1 -0
- package/dist/services/lyfecycle.d.ts +13 -0
- package/dist/sql2.js +21 -0
- package/dist/svlangserver-systemverilog.js +395 -0
- package/dist/svlangserver.js +85 -0
- package/dist/swift-swift.code-snippets.js +183 -0
- package/dist/swift2.js +183 -0
- package/dist/systemverilog.js +41 -7
- package/dist/systemverilog.tmLanguage.js +676 -496
- package/dist/systemverilog2.js +208 -0
- package/dist/tcl2.js +151 -0
- package/dist/theme/tools.d.ts +2 -1
- package/dist/ts.worker.js +1 -1
- package/dist/typescript-basics-typescript.code-snippets.js +312 -0
- package/dist/typescript-basics.js +312 -0
- package/dist/typescript-language-features.js +14 -4
- package/dist/typescript2.js +312 -0
- package/dist/typescriptContribution.js +36 -0
- package/dist/typescriptreact2.js +312 -0
- package/dist/vb-vb.code-snippets.js +88 -0
- package/dist/vb2.js +88 -0
- package/dist/verilog-systemverilog.js +327 -140
- package/dist/verilog.js +85 -3
- package/dist/verilog2.js +56 -65
- package/dist/vscode-R-r-snippets.js +534 -0
- package/dist/vscode-R-rmarkdown.js +91 -0
- package/dist/vscode-python.js +9 -0
- package/dist/worker.js +1 -1
- package/package.json +18 -14
- package/stats.html +1 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
var print = {
|
|
2
|
+
prefix: "print",
|
|
3
|
+
body: "print(\"$1\")\n$0",
|
|
4
|
+
description: "print(\"...\")"
|
|
5
|
+
};
|
|
6
|
+
var guard = {
|
|
7
|
+
prefix: "guard",
|
|
8
|
+
body: [
|
|
9
|
+
"guard ${1:condition} else {",
|
|
10
|
+
"\t$0",
|
|
11
|
+
"}"
|
|
12
|
+
],
|
|
13
|
+
description: "guard statement"
|
|
14
|
+
};
|
|
15
|
+
var func = {
|
|
16
|
+
prefix: "func",
|
|
17
|
+
body: [
|
|
18
|
+
"func ${1:name}(${2:parameters}) -> ${3:Type} {",
|
|
19
|
+
"\t$0",
|
|
20
|
+
"}"
|
|
21
|
+
],
|
|
22
|
+
description: "function declaration"
|
|
23
|
+
};
|
|
24
|
+
var struct = {
|
|
25
|
+
prefix: "struct",
|
|
26
|
+
body: [
|
|
27
|
+
"struct ${1:Name} {",
|
|
28
|
+
"",
|
|
29
|
+
"\t$0",
|
|
30
|
+
"}"
|
|
31
|
+
],
|
|
32
|
+
description: "struct declaration"
|
|
33
|
+
};
|
|
34
|
+
var protocol = {
|
|
35
|
+
prefix: "protocol",
|
|
36
|
+
body: [
|
|
37
|
+
"protocol ${1:Name} {",
|
|
38
|
+
"",
|
|
39
|
+
"\t$0",
|
|
40
|
+
"}"
|
|
41
|
+
],
|
|
42
|
+
description: "protocol declaration"
|
|
43
|
+
};
|
|
44
|
+
var extension = {
|
|
45
|
+
prefix: "extension",
|
|
46
|
+
body: [
|
|
47
|
+
"extension ${1:Type} {",
|
|
48
|
+
"",
|
|
49
|
+
"\t$0",
|
|
50
|
+
"}"
|
|
51
|
+
],
|
|
52
|
+
description: "extension declaration"
|
|
53
|
+
};
|
|
54
|
+
var swiftSwift_codeSnippets = {
|
|
55
|
+
print: print,
|
|
56
|
+
"print value": {
|
|
57
|
+
prefix: "printv",
|
|
58
|
+
body: "print(\"\\($1)\")\n$0",
|
|
59
|
+
description: "print(\"\\(...)\")"
|
|
60
|
+
},
|
|
61
|
+
"while": {
|
|
62
|
+
prefix: "while",
|
|
63
|
+
body: [
|
|
64
|
+
"while ${1:condition} {",
|
|
65
|
+
"\t$0",
|
|
66
|
+
"}"
|
|
67
|
+
],
|
|
68
|
+
description: "while statement"
|
|
69
|
+
},
|
|
70
|
+
"repeat-while": {
|
|
71
|
+
prefix: "repeat",
|
|
72
|
+
body: [
|
|
73
|
+
"repeat {",
|
|
74
|
+
"\t$0",
|
|
75
|
+
"} while ${1:condition}"
|
|
76
|
+
],
|
|
77
|
+
description: "repeat-while statement"
|
|
78
|
+
},
|
|
79
|
+
"for": {
|
|
80
|
+
prefix: "for",
|
|
81
|
+
body: [
|
|
82
|
+
"for ${1:item} in ${2:collection} {",
|
|
83
|
+
"\t$0",
|
|
84
|
+
"}"
|
|
85
|
+
],
|
|
86
|
+
description: "for-in statement"
|
|
87
|
+
},
|
|
88
|
+
"if": {
|
|
89
|
+
prefix: "if",
|
|
90
|
+
body: [
|
|
91
|
+
"if ${1:condition} {",
|
|
92
|
+
"\t$0",
|
|
93
|
+
"}"
|
|
94
|
+
],
|
|
95
|
+
description: "if statement"
|
|
96
|
+
},
|
|
97
|
+
"else if": {
|
|
98
|
+
prefix: "elif",
|
|
99
|
+
body: [
|
|
100
|
+
"else if ${1:condition} {",
|
|
101
|
+
"\t$0",
|
|
102
|
+
"}"
|
|
103
|
+
],
|
|
104
|
+
description: "else clause with a nested if statement"
|
|
105
|
+
},
|
|
106
|
+
"else": {
|
|
107
|
+
prefix: "else",
|
|
108
|
+
body: [
|
|
109
|
+
"else {",
|
|
110
|
+
"\t$0",
|
|
111
|
+
"}"
|
|
112
|
+
],
|
|
113
|
+
description: "else clause"
|
|
114
|
+
},
|
|
115
|
+
"if let": {
|
|
116
|
+
prefix: "iflet",
|
|
117
|
+
body: [
|
|
118
|
+
"if let ${1:value} = ${2:optional} {",
|
|
119
|
+
"\t$0",
|
|
120
|
+
"}"
|
|
121
|
+
],
|
|
122
|
+
description: "if statement with optional binding"
|
|
123
|
+
},
|
|
124
|
+
guard: guard,
|
|
125
|
+
"guard let": {
|
|
126
|
+
prefix: "guardlet",
|
|
127
|
+
body: [
|
|
128
|
+
"guard let ${1:value} = ${2:optional} else {",
|
|
129
|
+
"\t$0",
|
|
130
|
+
"}"
|
|
131
|
+
],
|
|
132
|
+
description: "guard statement with optional binding"
|
|
133
|
+
},
|
|
134
|
+
"switch": {
|
|
135
|
+
prefix: "switch",
|
|
136
|
+
body: [
|
|
137
|
+
"switch ${1:value} {",
|
|
138
|
+
"case ${2:pattern}:",
|
|
139
|
+
"\t$0",
|
|
140
|
+
"default:",
|
|
141
|
+
"\t",
|
|
142
|
+
"}"
|
|
143
|
+
],
|
|
144
|
+
description: "switch statement"
|
|
145
|
+
},
|
|
146
|
+
"do": {
|
|
147
|
+
prefix: "do",
|
|
148
|
+
body: [
|
|
149
|
+
"do {",
|
|
150
|
+
"\t$0",
|
|
151
|
+
"} catch ${1:error} {",
|
|
152
|
+
"\t$2",
|
|
153
|
+
"}"
|
|
154
|
+
],
|
|
155
|
+
description: "do statement"
|
|
156
|
+
},
|
|
157
|
+
func: func,
|
|
158
|
+
struct: struct,
|
|
159
|
+
"enum": {
|
|
160
|
+
prefix: "enum",
|
|
161
|
+
body: [
|
|
162
|
+
"enum ${1:Name} {",
|
|
163
|
+
"",
|
|
164
|
+
"\tcase $0",
|
|
165
|
+
"}"
|
|
166
|
+
],
|
|
167
|
+
description: "enum declaration"
|
|
168
|
+
},
|
|
169
|
+
"class": {
|
|
170
|
+
prefix: "class",
|
|
171
|
+
body: [
|
|
172
|
+
"class ${1:Name} {",
|
|
173
|
+
"",
|
|
174
|
+
"\t$0",
|
|
175
|
+
"}"
|
|
176
|
+
],
|
|
177
|
+
description: "class declaration"
|
|
178
|
+
},
|
|
179
|
+
protocol: protocol,
|
|
180
|
+
extension: extension
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export { swiftSwift_codeSnippets as default, extension, func, guard, print, protocol, struct };
|
package/dist/swift2.js
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
var print = {
|
|
2
|
+
prefix: "print",
|
|
3
|
+
body: "print(\"$1\")\n$0",
|
|
4
|
+
description: "print(\"...\")"
|
|
5
|
+
};
|
|
6
|
+
var guard = {
|
|
7
|
+
prefix: "guard",
|
|
8
|
+
body: [
|
|
9
|
+
"guard ${1:condition} else {",
|
|
10
|
+
"\t$0",
|
|
11
|
+
"}"
|
|
12
|
+
],
|
|
13
|
+
description: "guard statement"
|
|
14
|
+
};
|
|
15
|
+
var func = {
|
|
16
|
+
prefix: "func",
|
|
17
|
+
body: [
|
|
18
|
+
"func ${1:name}(${2:parameters}) -> ${3:Type} {",
|
|
19
|
+
"\t$0",
|
|
20
|
+
"}"
|
|
21
|
+
],
|
|
22
|
+
description: "function declaration"
|
|
23
|
+
};
|
|
24
|
+
var struct = {
|
|
25
|
+
prefix: "struct",
|
|
26
|
+
body: [
|
|
27
|
+
"struct ${1:Name} {",
|
|
28
|
+
"",
|
|
29
|
+
"\t$0",
|
|
30
|
+
"}"
|
|
31
|
+
],
|
|
32
|
+
description: "struct declaration"
|
|
33
|
+
};
|
|
34
|
+
var protocol = {
|
|
35
|
+
prefix: "protocol",
|
|
36
|
+
body: [
|
|
37
|
+
"protocol ${1:Name} {",
|
|
38
|
+
"",
|
|
39
|
+
"\t$0",
|
|
40
|
+
"}"
|
|
41
|
+
],
|
|
42
|
+
description: "protocol declaration"
|
|
43
|
+
};
|
|
44
|
+
var extension = {
|
|
45
|
+
prefix: "extension",
|
|
46
|
+
body: [
|
|
47
|
+
"extension ${1:Type} {",
|
|
48
|
+
"",
|
|
49
|
+
"\t$0",
|
|
50
|
+
"}"
|
|
51
|
+
],
|
|
52
|
+
description: "extension declaration"
|
|
53
|
+
};
|
|
54
|
+
var swift = {
|
|
55
|
+
print: print,
|
|
56
|
+
"print value": {
|
|
57
|
+
prefix: "printv",
|
|
58
|
+
body: "print(\"\\($1)\")\n$0",
|
|
59
|
+
description: "print(\"\\(...)\")"
|
|
60
|
+
},
|
|
61
|
+
"while": {
|
|
62
|
+
prefix: "while",
|
|
63
|
+
body: [
|
|
64
|
+
"while ${1:condition} {",
|
|
65
|
+
"\t$0",
|
|
66
|
+
"}"
|
|
67
|
+
],
|
|
68
|
+
description: "while statement"
|
|
69
|
+
},
|
|
70
|
+
"repeat-while": {
|
|
71
|
+
prefix: "repeat",
|
|
72
|
+
body: [
|
|
73
|
+
"repeat {",
|
|
74
|
+
"\t$0",
|
|
75
|
+
"} while ${1:condition}"
|
|
76
|
+
],
|
|
77
|
+
description: "repeat-while statement"
|
|
78
|
+
},
|
|
79
|
+
"for": {
|
|
80
|
+
prefix: "for",
|
|
81
|
+
body: [
|
|
82
|
+
"for ${1:item} in ${2:collection} {",
|
|
83
|
+
"\t$0",
|
|
84
|
+
"}"
|
|
85
|
+
],
|
|
86
|
+
description: "for-in statement"
|
|
87
|
+
},
|
|
88
|
+
"if": {
|
|
89
|
+
prefix: "if",
|
|
90
|
+
body: [
|
|
91
|
+
"if ${1:condition} {",
|
|
92
|
+
"\t$0",
|
|
93
|
+
"}"
|
|
94
|
+
],
|
|
95
|
+
description: "if statement"
|
|
96
|
+
},
|
|
97
|
+
"else if": {
|
|
98
|
+
prefix: "elif",
|
|
99
|
+
body: [
|
|
100
|
+
"else if ${1:condition} {",
|
|
101
|
+
"\t$0",
|
|
102
|
+
"}"
|
|
103
|
+
],
|
|
104
|
+
description: "else clause with a nested if statement"
|
|
105
|
+
},
|
|
106
|
+
"else": {
|
|
107
|
+
prefix: "else",
|
|
108
|
+
body: [
|
|
109
|
+
"else {",
|
|
110
|
+
"\t$0",
|
|
111
|
+
"}"
|
|
112
|
+
],
|
|
113
|
+
description: "else clause"
|
|
114
|
+
},
|
|
115
|
+
"if let": {
|
|
116
|
+
prefix: "iflet",
|
|
117
|
+
body: [
|
|
118
|
+
"if let ${1:value} = ${2:optional} {",
|
|
119
|
+
"\t$0",
|
|
120
|
+
"}"
|
|
121
|
+
],
|
|
122
|
+
description: "if statement with optional binding"
|
|
123
|
+
},
|
|
124
|
+
guard: guard,
|
|
125
|
+
"guard let": {
|
|
126
|
+
prefix: "guardlet",
|
|
127
|
+
body: [
|
|
128
|
+
"guard let ${1:value} = ${2:optional} else {",
|
|
129
|
+
"\t$0",
|
|
130
|
+
"}"
|
|
131
|
+
],
|
|
132
|
+
description: "guard statement with optional binding"
|
|
133
|
+
},
|
|
134
|
+
"switch": {
|
|
135
|
+
prefix: "switch",
|
|
136
|
+
body: [
|
|
137
|
+
"switch ${1:value} {",
|
|
138
|
+
"case ${2:pattern}:",
|
|
139
|
+
"\t$0",
|
|
140
|
+
"default:",
|
|
141
|
+
"\t",
|
|
142
|
+
"}"
|
|
143
|
+
],
|
|
144
|
+
description: "switch statement"
|
|
145
|
+
},
|
|
146
|
+
"do": {
|
|
147
|
+
prefix: "do",
|
|
148
|
+
body: [
|
|
149
|
+
"do {",
|
|
150
|
+
"\t$0",
|
|
151
|
+
"} catch ${1:error} {",
|
|
152
|
+
"\t$2",
|
|
153
|
+
"}"
|
|
154
|
+
],
|
|
155
|
+
description: "do statement"
|
|
156
|
+
},
|
|
157
|
+
func: func,
|
|
158
|
+
struct: struct,
|
|
159
|
+
"enum": {
|
|
160
|
+
prefix: "enum",
|
|
161
|
+
body: [
|
|
162
|
+
"enum ${1:Name} {",
|
|
163
|
+
"",
|
|
164
|
+
"\tcase $0",
|
|
165
|
+
"}"
|
|
166
|
+
],
|
|
167
|
+
description: "enum declaration"
|
|
168
|
+
},
|
|
169
|
+
"class": {
|
|
170
|
+
prefix: "class",
|
|
171
|
+
body: [
|
|
172
|
+
"class ${1:Name} {",
|
|
173
|
+
"",
|
|
174
|
+
"\t$0",
|
|
175
|
+
"}"
|
|
176
|
+
],
|
|
177
|
+
description: "class declaration"
|
|
178
|
+
},
|
|
179
|
+
protocol: protocol,
|
|
180
|
+
extension: extension
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export { swift as default, extension, func, guard, print, protocol, struct };
|
package/dist/systemverilog.js
CHANGED
|
@@ -23,7 +23,7 @@ var brackets = [
|
|
|
23
23
|
"end"
|
|
24
24
|
],
|
|
25
25
|
[
|
|
26
|
-
"
|
|
26
|
+
"randcase",
|
|
27
27
|
"endcase"
|
|
28
28
|
],
|
|
29
29
|
[
|
|
@@ -34,6 +34,10 @@ var brackets = [
|
|
|
34
34
|
"casez",
|
|
35
35
|
"endcase"
|
|
36
36
|
],
|
|
37
|
+
[
|
|
38
|
+
"case",
|
|
39
|
+
"endcase"
|
|
40
|
+
],
|
|
37
41
|
[
|
|
38
42
|
"checker",
|
|
39
43
|
"endchecker"
|
|
@@ -50,6 +54,10 @@ var brackets = [
|
|
|
50
54
|
"config",
|
|
51
55
|
"endconfig"
|
|
52
56
|
],
|
|
57
|
+
[
|
|
58
|
+
"coverage",
|
|
59
|
+
"endcoverage"
|
|
60
|
+
],
|
|
53
61
|
[
|
|
54
62
|
"covergroup",
|
|
55
63
|
"endgroup"
|
|
@@ -102,10 +110,6 @@ var brackets = [
|
|
|
102
110
|
"property",
|
|
103
111
|
"endproperty"
|
|
104
112
|
],
|
|
105
|
-
[
|
|
106
|
-
"randcase",
|
|
107
|
-
"endcase"
|
|
108
|
-
],
|
|
109
113
|
[
|
|
110
114
|
"specify",
|
|
111
115
|
"endspecify"
|
|
@@ -144,10 +148,40 @@ var autoClosingPairs = [
|
|
|
144
148
|
]
|
|
145
149
|
}
|
|
146
150
|
];
|
|
151
|
+
var surroundingPairs = [
|
|
152
|
+
[
|
|
153
|
+
"{",
|
|
154
|
+
"}"
|
|
155
|
+
],
|
|
156
|
+
[
|
|
157
|
+
"[",
|
|
158
|
+
"]"
|
|
159
|
+
],
|
|
160
|
+
[
|
|
161
|
+
"(",
|
|
162
|
+
")"
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
"'",
|
|
166
|
+
"'"
|
|
167
|
+
],
|
|
168
|
+
[
|
|
169
|
+
"\"",
|
|
170
|
+
"\""
|
|
171
|
+
]
|
|
172
|
+
];
|
|
173
|
+
var folding = {
|
|
174
|
+
markers: {
|
|
175
|
+
start: "^[ \\t\\n]*(?://[ \\t\\n]*#?region|`(?:ifdef|ifndef|elsif|else)\\b|\\b(?:(?:macro)?module|class)\\b)",
|
|
176
|
+
end: "^[ \\t\\n]*(?://[ \\t\\n]*#?endregion|`(?:elsif|else|endif)\\b|\\b(?:endmodule|endclass)\\b)"
|
|
177
|
+
}
|
|
178
|
+
};
|
|
147
179
|
var systemverilog = {
|
|
148
180
|
comments: comments,
|
|
149
181
|
brackets: brackets,
|
|
150
|
-
autoClosingPairs: autoClosingPairs
|
|
182
|
+
autoClosingPairs: autoClosingPairs,
|
|
183
|
+
surroundingPairs: surroundingPairs,
|
|
184
|
+
folding: folding
|
|
151
185
|
};
|
|
152
186
|
|
|
153
|
-
export { autoClosingPairs, brackets, comments, systemverilog as default };
|
|
187
|
+
export { autoClosingPairs, brackets, comments, systemverilog as default, folding, surroundingPairs };
|