@codingame/monaco-editor-wrapper 1.7.0 → 1.9.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.
Files changed (60) hide show
  1. package/dist/Groovy2.js +28 -0
  2. package/dist/features/htmlContribution.d.ts +3 -0
  3. package/dist/features/htmlContribution.js +104 -0
  4. package/dist/features/mutualizedExtensionConfigurations.d.ts +1 -0
  5. package/dist/features/mutualizedExtensionConfigurations.js +4857 -0
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +1210 -0
  8. package/dist/languages/extensions/configurationLoader.d.ts +20 -2
  9. package/dist/languages/index.d.ts +2 -1
  10. package/dist/languages/textMate/index.d.ts +1 -1
  11. package/dist/main.js +33 -1218
  12. package/dist/markdown-basics-markdown.js +18 -0
  13. package/dist/services/CustomFoldingRulesLanguageConfigurationService.d.ts +4 -0
  14. package/dist/verilog-systemverilog.js +140 -327
  15. package/dist/verilog2.js +65 -56
  16. package/dist/vscode-R-rmd.js +2 -2
  17. package/package.json +1 -1
  18. package/stats.html +1 -1
  19. package/dist/COBOL Copybook2.js +0 -2017
  20. package/dist/COBOL2.js +0 -2017
  21. package/dist/SQL.plist.js +0 -482
  22. package/dist/bsv2.js +0 -49
  23. package/dist/c2.js +0 -18
  24. package/dist/coffeescript2.js +0 -18
  25. package/dist/configuration/hack.d.ts +0 -2
  26. package/dist/cpp2.js +0 -18
  27. package/dist/csharp2.js +0 -508
  28. package/dist/cssContribution.js +0 -10
  29. package/dist/diet3.js +0 -92
  30. package/dist/extensionConfigurations.js +0 -9475
  31. package/dist/fsharp2.js +0 -18
  32. package/dist/groovy2.js +0 -229
  33. package/dist/html (eex).js +0 -31
  34. package/dist/htmlContribution.js +0 -10
  35. package/dist/javascript2.js +0 -196
  36. package/dist/javascriptreact2.js +0 -196
  37. package/dist/jsonContribution.js +0 -78
  38. package/dist/kotlin2.js +0 -117
  39. package/dist/kotlinscript2.js +0 -117
  40. package/dist/languages/monarch/list.d.ts +0 -7
  41. package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
  42. package/dist/markdown-basics.js +0 -103
  43. package/dist/markdown2.js +0 -103
  44. package/dist/pgsql-sql.js +0 -21
  45. package/dist/pgsql.js +0 -21
  46. package/dist/php2.js +0 -265
  47. package/dist/powershell2.js +0 -18
  48. package/dist/r.tmLanguage.js +0 -572
  49. package/dist/reason2.js +0 -100
  50. package/dist/services/functional.d.ts +0 -1
  51. package/dist/services/lyfecycle.d.ts +0 -13
  52. package/dist/sql2.js +0 -21
  53. package/dist/swift2.js +0 -183
  54. package/dist/systemverilog2.js +0 -208
  55. package/dist/tcl2.js +0 -151
  56. package/dist/typescript-basics.js +0 -312
  57. package/dist/typescript2.js +0 -312
  58. package/dist/typescriptContribution.js +0 -36
  59. package/dist/typescriptreact2.js +0 -312
  60. package/dist/vb2.js +0 -88
package/dist/reason2.js DELETED
@@ -1,100 +0,0 @@
1
- var lambda = {
2
- prefix: "fun",
3
- body: [
4
- "(${1:pattern}) => ${2:${1:pattern}}"
5
- ]
6
- };
7
- var module = {
8
- prefix: "module",
9
- body: [
10
- "module ${1:M} = ${2:{}};$0"
11
- ]
12
- };
13
- var type = {
14
- prefix: "type",
15
- body: [
16
- "type ${1:name} ${2:'${3:arg} }=",
17
- "\t| ${4:Con${2: '${3:arg}}}",
18
- "\t;"
19
- ]
20
- };
21
- var reason = {
22
- "function": {
23
- prefix: "let",
24
- body: [
25
- "let ${1:f} = (${2:pattern}) => ${3:${2:pattern}};$0"
26
- ]
27
- },
28
- "function (block)": {
29
- prefix: "let",
30
- body: [
31
- "let ${1:f} = (${2:pattern}) => {",
32
- "\t${3:${2:pattern}}$0",
33
- "};"
34
- ]
35
- },
36
- lambda: lambda,
37
- "lambda (switch)": {
38
- prefix: "fun",
39
- body: [
40
- "fun",
41
- "\t| ${1:pattern} => ${2:${1:pattern}}",
42
- "\t;"
43
- ]
44
- },
45
- "let": {
46
- prefix: "let",
47
- body: [
48
- "let ${1:pattern} = ${2:()};$0"
49
- ]
50
- },
51
- "let (block)": {
52
- prefix: "let",
53
- body: [
54
- "let ${1:pattern} = {",
55
- "\t$0",
56
- "};"
57
- ]
58
- },
59
- module: module,
60
- "module (block)": {
61
- prefix: "module",
62
- body: [
63
- "module ${1:M} = {",
64
- "\t$0",
65
- "};"
66
- ]
67
- },
68
- "module function": {
69
- prefix: "module",
70
- body: [
71
- "module ${1:M} = (${2:X}: $3{:{}}) => ${4:${2:X}};$0"
72
- ]
73
- },
74
- "module function (block)": {
75
- prefix: "module",
76
- body: [
77
- "module ${1:M} = (${2:X}: $3{:{}}) => {",
78
- "\t${4:include ${2:X}}",
79
- "\t$0",
80
- "};"
81
- ]
82
- },
83
- "switch": {
84
- prefix: "switch",
85
- body: [
86
- "switch ${1:scrutinee} {",
87
- "| ${2:pattern} => ${3:${2:pattern}}",
88
- "};"
89
- ]
90
- },
91
- "type (alias or abstract)": {
92
- prefix: "type",
93
- body: [
94
- "type ${1:name} ${2:${3:'${4:arg} }= ${5:'${4:arg}}};$0"
95
- ]
96
- },
97
- type: type
98
- };
99
-
100
- export { reason as default, lambda, module, type };
@@ -1 +0,0 @@
1
- export declare function once<T extends Function>(this: unknown, fn: T): T;
@@ -1,13 +0,0 @@
1
- import { IDisposable, IReference } from 'monaco-editor';
2
- export declare abstract class ReferenceCollection<T> {
3
- private readonly references;
4
- acquire(key: string, ...args: any[]): IReference<T>;
5
- protected abstract createReferencedObject(key: string, ...args: any[]): T;
6
- protected abstract destroyReferencedObject(key: string, object: T): void;
7
- }
8
- export declare class AsyncReferenceCollection<T> {
9
- private referenceCollection;
10
- constructor(referenceCollection: ReferenceCollection<Promise<T>>);
11
- acquire(key: string, ...args: any[]): Promise<IReference<T>>;
12
- }
13
- export declare function toDisposable(fn: () => void): IDisposable;
package/dist/sql2.js DELETED
@@ -1,21 +0,0 @@
1
- var sql = {
2
- "Create a new Database": {
3
- prefix: "pgCreateDatabase",
4
- body: [
5
- "-- Create a new database called '${1:DatabaseName}'",
6
- "CREATE DATABASE ${1:DatabaseName}"
7
- ],
8
- description: "Create a new PostgreSQL Database"
9
- },
10
- "List databases": {
11
- prefix: "pgListDatabases",
12
- body: [
13
- "-- Get a list of databases",
14
- "SELECT datname FROM pg_database",
15
- "WHERE datistemplate = false"
16
- ],
17
- description: "List PostgreSQL databases"
18
- }
19
- };
20
-
21
- export { sql as default };
package/dist/swift2.js DELETED
@@ -1,183 +0,0 @@
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 };
@@ -1,208 +0,0 @@
1
- var bit = {
2
- prefix: "bit",
3
- body: "bit ${1:bit_name} = ${2:value};"
4
- };
5
- var int = {
6
- prefix: "int",
7
- body: "int ${1:int_name} = ${2:value};"
8
- };
9
- var shortint = {
10
- prefix: "shortint",
11
- body: "shortint ${1:name} = ${2:value};"
12
- };
13
- var longint = {
14
- prefix: "longint",
15
- body: "longint ${1:name} = ${2:value};"
16
- };
17
- var byte = {
18
- prefix: "byte",
19
- body: "byte ${1:byte:_name} = ${2:value};"
20
- };
21
- var logic = {
22
- prefix: "logic",
23
- body: "logic ${1:logic_name} = ${2:value};"
24
- };
25
- var packed = {
26
- prefix: "packed",
27
- body: "packed"
28
- };
29
- var task = {
30
- prefix: "task",
31
- body: [
32
- "task ${1:automatic} ${2:taskName}(${3:arguments});",
33
- "\t$0",
34
- "endtask //$1"
35
- ],
36
- description: "task name; ... endtask"
37
- };
38
- var modport = {
39
- prefix: "modport",
40
- body: [
41
- "modport ${1:identifier} (",
42
- "input ${2:input_ports},",
43
- "output ${3:output_ports}",
44
- ");"
45
- ],
46
- description: "modport name (input ports_in, output ports_out); "
47
- };
48
- var display = {
49
- prefix: "display",
50
- body: [
51
- "\\$display(\"$1\"$2);$0"
52
- ],
53
- description: "$display(\"...\", params...)"
54
- };
55
- var queue = {
56
- prefix: "queue",
57
- body: "${1:data_type} ${2:queue_name}[\\$];",
58
- description: "insert queue."
59
- };
60
- var mailbox = {
61
- prefix: "mailbox",
62
- body: [
63
- "mailbox mbx",
64
- "${1:mbx = new();}"
65
- ],
66
- description: "insert mailbox instance"
67
- };
68
- var assert = {
69
- prefix: "assert",
70
- body: [
71
- "assert (${1:condition}) $2",
72
- "else ${3:error_process}"
73
- ],
74
- description: "insert assert() ... else ..."
75
- };
76
- var systemverilog = {
77
- "always_ff block": {
78
- prefix: "always_ff",
79
- body: [
80
- "always_ff @( ${1:clock} ) begin : ${2:blockName}",
81
- "\t$0",
82
- "end"
83
- ],
84
- description: "Insert an always_ff block"
85
- },
86
- "always_comb block": {
87
- prefix: "always_comb",
88
- body: [
89
- "always_comb begin : ${1:blockName}",
90
- "\t$0",
91
- "end"
92
- ],
93
- description: "Insert an always_comb block"
94
- },
95
- "always_latch block": {
96
- prefix: "always_latch",
97
- body: [
98
- "always_latch begin : ${1:blockName}",
99
- "\t$0",
100
- "end"
101
- ],
102
- description: "Insert an always_latch block"
103
- },
104
- bit: bit,
105
- int: int,
106
- shortint: shortint,
107
- longint: longint,
108
- byte: byte,
109
- logic: logic,
110
- packed: packed,
111
- "this": {
112
- prefix: "this",
113
- body: "this"
114
- },
115
- "typedef struct packed": {
116
- prefix: "typedef struct packed",
117
- body: [
118
- "typedef struct packed {",
119
- "\t$0",
120
- "} ${1:struct_name};"
121
- ],
122
- description: "typedef struct packed { ... } name"
123
- },
124
- "class": {
125
- prefix: "class",
126
- body: [
127
- "class ${1:className};",
128
- "\tfunction new();",
129
- "\t\t$0",
130
- "\tendfunction //new()",
131
- "endclass //$1"
132
- ],
133
- description: "class name; ... endclass"
134
- },
135
- "class extends": {
136
- prefix: "class extends",
137
- body: [
138
- "class ${1:className} extends ${2:superClass};",
139
- "\tfunction new();",
140
- "\t\t$0",
141
- "\tendfunction //new()",
142
- "endclass //$1 extends $2"
143
- ],
144
- description: "class name extends super; ... endclass"
145
- },
146
- task: task,
147
- "package": {
148
- prefix: "package",
149
- body: [
150
- "package ${1:package_name}",
151
- "\t$2",
152
- "endpackage"
153
- ],
154
- description: "package name; ... endpackage"
155
- },
156
- "import": {
157
- prefix: "import",
158
- body: "import ${1:name}::${2:scope};",
159
- description: "import name::scope"
160
- },
161
- "interface": {
162
- prefix: "interface",
163
- body: [
164
- "interface ${1:interfacename};",
165
- "\t$0",
166
- "endinterface //$1"
167
- ],
168
- description: "interface name; ... endinterface"
169
- },
170
- modport: modport,
171
- display: display,
172
- "typedef enum": {
173
- prefix: "typedef enum",
174
- body: [
175
- "typedef enum ${1:data_type} { $0 } ${2:name};"
176
- ],
177
- description: "typedef enum (data_type) { ... } name"
178
- },
179
- "enum": {
180
- prefix: [
181
- "en",
182
- "enum"
183
- ],
184
- body: [
185
- "enum ${1:data_type} { $0 } ${2:name}"
186
- ],
187
- description: "enum (data_type) { ... } name"
188
- },
189
- queue: queue,
190
- mailbox: mailbox,
191
- "associative array": {
192
- prefix: "AA",
193
- body: "${1:data_type} ${2:name}[${3:index_type}];$0",
194
- description: "insert Associative array(AA)."
195
- },
196
- assert: assert,
197
- "fork-join": {
198
- prefix: "fork join",
199
- body: [
200
- "fork",
201
- "\t$0",
202
- "join"
203
- ],
204
- description: "fork ... join"
205
- }
206
- };
207
-
208
- export { assert, bit, byte, systemverilog as default, display, int, logic, longint, mailbox, modport, packed, queue, shortint, task };
package/dist/tcl2.js DELETED
@@ -1,151 +0,0 @@
1
- var foreach = {
2
- prefix: "foreach",
3
- body: [
4
- "foreach ${1:var} ${2:list} {",
5
- "\t$0",
6
- "}"
7
- ],
8
- description: "Foreach Loop"
9
- };
10
- var elseif = {
11
- prefix: "elseif",
12
- body: [
13
- "elseif {${1:var}} {",
14
- "\t$0",
15
- "}"
16
- ],
17
- description: "ElseIf Condition"
18
- };
19
- var proc = {
20
- prefix: "proc",
21
- body: [
22
- "proc ${1:name} {${2:args}} {",
23
- "\t$0",
24
- "}"
25
- ],
26
- description: "Proc Block"
27
- };
28
- var tk_chooseDirectory = {
29
- prefix: "tk_chooseDirectory",
30
- body: [
31
- "tk_chooseDirectory ${-initialdir dirname -mustexist boolean -title titleString}"
32
- ],
33
- description: "Choose Directory"
34
- };
35
- var tk_getOpenFile = {
36
- prefix: "tk_getOpenFile",
37
- body: [
38
- "tk_getOpenFile -filetypes {",
39
- "\t\t{{Text Files} {.txt} }",
40
- "\t\t{{All Files} * }",
41
- "\t}"
42
- ],
43
- description: "Open File Dialog"
44
- };
45
- var tk_getSaveFile = {
46
- prefix: "tk_getSaveFile",
47
- body: [
48
- "tk_getSaveFile -filetypes {",
49
- "\t\t{{Text Files} {.txt} }",
50
- "\t\t{{All Files} * }",
51
- "\t}"
52
- ],
53
- description: "Save File Dialog"
54
- };
55
- var tk_messageBox = {
56
- prefix: "tk_messageBox",
57
- body: [
58
- "tk_messageBox ${-message msg}"
59
- ],
60
- description: "Message Box"
61
- };
62
- var tcl = {
63
- "for": {
64
- prefix: "for",
65
- body: [
66
- "for {set ${1:index} ${2:0}} {\\$${1:index} < ${3:length}} {incr ${1:index}} {",
67
- "\t$0",
68
- "}"
69
- ],
70
- description: "For Loop"
71
- },
72
- foreach: foreach,
73
- "if": {
74
- prefix: "if",
75
- body: [
76
- "if {${1:var}} {",
77
- "\t$0",
78
- "}"
79
- ],
80
- description: "If Condition"
81
- },
82
- elseif: elseif,
83
- "else": {
84
- prefix: "else",
85
- body: [
86
- "else {",
87
- "\t$0",
88
- "}"
89
- ],
90
- description: "Else Block"
91
- },
92
- proc: proc,
93
- "while": {
94
- prefix: "while",
95
- body: [
96
- "while {${1:var}} {",
97
- "\t$0",
98
- "}"
99
- ],
100
- description: "While Loop"
101
- },
102
- "catch": {
103
- prefix: "catch",
104
- body: [
105
- "catch {${1:body}} ${2:var}"
106
- ],
107
- description: "Catch Block"
108
- },
109
- "try": {
110
- prefix: "try",
111
- body: [
112
- "try {",
113
- "\t$1",
114
- "} finally {",
115
- "\t$0",
116
- "}"
117
- ],
118
- description: "Try Block"
119
- },
120
- "switch": {
121
- prefix: "switch",
122
- body: [
123
- "switch ${1:var} {",
124
- "\t${2:case} {$3}",
125
- "\tdefault {$0}",
126
- "}"
127
- ],
128
- description: "Switch Block"
129
- },
130
- "oo::class create": {
131
- prefix: "oo::class create",
132
- body: [
133
- "oo::class create ${1:name} {",
134
- "\t${2:superclass s}",
135
- "\tconstructor {} {",
136
- "\t\t$3",
137
- "\t}",
138
- "\tmethod ${4:m} {} {",
139
- "\t\t$0",
140
- "\t}",
141
- "}"
142
- ],
143
- description: "Class Create"
144
- },
145
- tk_chooseDirectory: tk_chooseDirectory,
146
- tk_getOpenFile: tk_getOpenFile,
147
- tk_getSaveFile: tk_getSaveFile,
148
- tk_messageBox: tk_messageBox
149
- };
150
-
151
- export { tcl as default, elseif, foreach, proc, tk_chooseDirectory, tk_getOpenFile, tk_getSaveFile, tk_messageBox };