monaco-editor11 1.1.8 → 1.2.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 (131) hide show
  1. package/dist/abap-BmV14C8H.js +1 -0
  2. package/dist/apex-vQDebnNk.js +1 -0
  3. package/dist/azcli-C4hxwus7.js +1 -0
  4. package/dist/bat-DYHIOgJW.js +1 -0
  5. package/dist/bicep-BJDZ3U7c.js +2 -0
  6. package/dist/cameligo-l0J6eaPU.js +1 -0
  7. package/dist/clojure-BUv_1vEn.js +1 -0
  8. package/dist/coffee-Cw3141X6.js +1 -0
  9. package/dist/cpp-CHPWmTTa.js +1 -0
  10. package/dist/csharp-0ISFInBU.js +1 -0
  11. package/dist/csp-Dcy9EUAZ.js +1 -0
  12. package/dist/css-UDjyEDNM.js +3 -0
  13. package/dist/css.worker-wrapper.d.ts +0 -0
  14. package/dist/css.worker.js +66 -0
  15. package/dist/cssMode-CZvh5Cxi.js +1 -0
  16. package/dist/{cssMode-BQ5BKBAY.mjs → cssMode-D5wFpBcJ.mjs} +3 -3
  17. package/dist/cypher-BoSKj8sy.js +1 -0
  18. package/dist/dart-75fOVMIC.js +1 -0
  19. package/dist/dockerfile-CeTDdZJB.js +1 -0
  20. package/dist/ecl-BZ8GfbIS.js +1 -0
  21. package/dist/editor.worker-wrapper.d.ts +0 -0
  22. package/dist/editor.worker.js +1 -0
  23. package/dist/editorWorkerHost-CXSl__Sw.mjs +11917 -0
  24. package/dist/editorWorkerHost-J3OLr02l.js +33 -0
  25. package/dist/elixir-HwUoMs-6.js +1 -0
  26. package/dist/flow9-Co-egZvn.js +1 -0
  27. package/dist/{freemarker2-6GYcye2r.mjs → freemarker2-0KWO0y3D.mjs} +1 -1
  28. package/dist/freemarker2-CWgJ4a-p.js +3 -0
  29. package/dist/fsharp-By4FMj_K.js +1 -0
  30. package/dist/go-D0-3Iavh.js +1 -0
  31. package/dist/graphql-arXy5b1U.js +1 -0
  32. package/dist/handlebars-B3DRUYqI.js +1 -0
  33. package/dist/{handlebars-5_7gZ3QS.mjs → handlebars-CtTh3MzK.mjs} +1 -1
  34. package/dist/hcl-DQpT3BXv.js +1 -0
  35. package/dist/{html-2thNXsIu.mjs → html-Bfagd5f8.mjs} +1 -1
  36. package/dist/html-Cq6ODg2A.js +1 -0
  37. package/dist/htmlMode-BCWHN8H1.js +1 -0
  38. package/dist/{htmlMode-Dmqis0oY.mjs → htmlMode-Ca4o_48E.mjs} +3 -3
  39. package/dist/index-BnVmN2qp.js +875 -0
  40. package/dist/index-CcXLAo11.js +1 -0
  41. package/dist/index-D7fx9aNv.mjs +498 -0
  42. package/dist/{index-CiIcpngo.mjs → index-DnKFAZ-F.mjs} +24450 -35934
  43. package/dist/index.d.ts +3 -1
  44. package/dist/index.js +1 -0
  45. package/dist/ini-CHrdBSR6.js +1 -0
  46. package/dist/initialize-7Tsg9DJ6.mjs +44 -0
  47. package/dist/initialize-8Cpp42Fp.js +1 -0
  48. package/dist/java-DkNlCtA8.js +1 -0
  49. package/dist/javascript-C_YSapv9.js +1 -0
  50. package/dist/{javascript-DGu9heQ1.mjs → javascript-D2KmymLa.mjs} +1 -1
  51. package/dist/json.worker-wrapper.d.ts +0 -0
  52. package/dist/json.worker.js +17 -0
  53. package/dist/jsonMode-DaXUMuRa.js +1 -0
  54. package/dist/jsonMode-Dnqj4FWW.mjs +306 -0
  55. package/dist/julia-D2YHJdZy.js +1 -0
  56. package/dist/kotlin-BSyr2f_w.js +1 -0
  57. package/dist/less-C8csD237.js +2 -0
  58. package/dist/lexon-Dg5XMXM-.js +1 -0
  59. package/dist/{liquid-B6d5eZ0w.mjs → liquid-CQtA4TA-.mjs} +1 -1
  60. package/dist/liquid-Dc6vO2KK.js +1 -0
  61. package/dist/lspLanguageFeatures-CeustN1U.js +2 -0
  62. package/dist/lspLanguageFeatures-DUzyYYsS.mjs +534 -0
  63. package/dist/lua-BOoO7Ej7.js +1 -0
  64. package/dist/m3-Bny7JARg.js +1 -0
  65. package/dist/main-B2xgQ6G2.mjs +687 -0
  66. package/dist/main-C27EQSK2.mjs +947 -0
  67. package/dist/main-DXJICgQq.js +3 -0
  68. package/dist/main-Dt1Bdcpc.js +15 -0
  69. package/dist/markdown-cseWCS9n.js +1 -0
  70. package/dist/mdx-C2nK3qTe.js +1 -0
  71. package/dist/{mdx-Dc2EzqW9.mjs → mdx-cjfOdSKt.mjs} +1 -1
  72. package/dist/mips-7JuqcyJ4.js +1 -0
  73. package/dist/msdax-BmYA5eV5.js +1 -0
  74. package/dist/mysql-CHTrPhJ_.js +1 -0
  75. package/dist/objective-c-CUdbM2R7.js +1 -0
  76. package/dist/pascal-CNC6uGuD.js +1 -0
  77. package/dist/pascaligo-BEZzSZnI.js +1 -0
  78. package/dist/perl-JOl0jAD9.js +1 -0
  79. package/dist/pgsql-BlC3cJBr.js +1 -0
  80. package/dist/php-6ijfJ2jK.js +1 -0
  81. package/dist/pla-DB8tU9Tm.js +1 -0
  82. package/dist/postiats-BMJJQsUH.js +1 -0
  83. package/dist/powerquery-CoLfQ6__.js +1 -0
  84. package/dist/powershell-BA5owzqH.js +1 -0
  85. package/dist/protobuf-DUMRTG9C.js +2 -0
  86. package/dist/pug-D3HDBCR9.js +1 -0
  87. package/dist/python-BaSW5leI.js +1 -0
  88. package/dist/{python-BN7PRYMW.mjs → python-DA6ByLCZ.mjs} +1 -1
  89. package/dist/qsharp-DN7Y6XhL.js +1 -0
  90. package/dist/r-Bc6rlFXl.js +1 -0
  91. package/dist/{razor-amsYwW3e.mjs → razor-3z9XYGZf.mjs} +1 -1
  92. package/dist/razor-nQE2Djhf.js +1 -0
  93. package/dist/redis-BVBmvApp.js +1 -0
  94. package/dist/redshift-BdEMv0YI.js +1 -0
  95. package/dist/restructuredtext-Cwgkbiv3.js +1 -0
  96. package/dist/ruby-BPqQ0TOE.js +1 -0
  97. package/dist/rust-DGojqpAN.js +1 -0
  98. package/dist/sb-B572kJZe.js +1 -0
  99. package/dist/scala-CDQ1h1Nd.js +1 -0
  100. package/dist/scheme-CgaAfqMQ.js +1 -0
  101. package/dist/scss-DZHIl239.js +3 -0
  102. package/dist/shell-D5kOdfAA.js +1 -0
  103. package/dist/solidity-D6vCwnFo.js +1 -0
  104. package/dist/sophia-BJdevZpo.js +1 -0
  105. package/dist/sparql-v4dsLpAQ.js +1 -0
  106. package/dist/sql-RAt0uxGh.js +1 -0
  107. package/dist/st-CjwpLApO.js +1 -0
  108. package/dist/swift-BcIVfYEa.js +3 -0
  109. package/dist/systemverilog-CX2A8v2w.js +1 -0
  110. package/dist/tcl-CCvdS1Ng.js +1 -0
  111. package/dist/ts.worker-wrapper.d.ts +0 -0
  112. package/dist/ts.worker.js +67706 -0
  113. package/dist/tsMode-CieVaThB.js +11 -0
  114. package/dist/{tsMode-CfGJAg8A.mjs → tsMode-pbVGEqHg.mjs} +1 -1
  115. package/dist/twig-KWJe-gee.js +1 -0
  116. package/dist/{typescript-BkqvjzTg.mjs → typescript-CL7lZGgL.mjs} +1 -1
  117. package/dist/typescript-D-fgoGBJ.js +1 -0
  118. package/dist/typespec-gb5rMy4D.js +1 -0
  119. package/dist/vb-D2rfixXK.js +1 -0
  120. package/dist/wgsl-Dpy8Oyoq.js +298 -0
  121. package/dist/worker-wrapper.d.ts +0 -0
  122. package/dist/{xml-BE08lKLg.mjs → xml-Dm8zU0Zq.mjs} +1 -1
  123. package/dist/xml-luJ1w-__.js +1 -0
  124. package/dist/{yaml-DaPfb7D4.mjs → yaml-DDKFPb37.mjs} +1 -1
  125. package/dist/yaml-DZkx0RTO.js +1 -0
  126. package/package.json +2 -2
  127. package/dist/assets/editor.worker-iXcRX1Tq.js +0 -26
  128. package/dist/jsonMode-BHf-60PU.mjs +0 -577
  129. package/dist/lspLanguageFeatures-CQ-4g5T6.mjs +0 -1458
  130. package/dist/monaco-editor11.es.js +0 -23
  131. package/dist/monaco-editor11.umd.js +0 -1234
@@ -0,0 +1,534 @@
1
+ import { I as M, b as c, e as S, S as d, F as v, D as w } from "./main-C27EQSK2.mjs";
2
+ import { R as x, l as g, e as h, U as b, M as k } from "./index-DnKFAZ-F.mjs";
3
+ class O {
4
+ constructor(e, i, s) {
5
+ this._languageId = e, this._worker = i, this._disposables = [], this._listener = /* @__PURE__ */ Object.create(null);
6
+ const o = (n) => {
7
+ let a = n.getLanguageId();
8
+ if (a !== this._languageId)
9
+ return;
10
+ let m;
11
+ this._listener[n.uri.toString()] = n.onDidChangeContent(() => {
12
+ window.clearTimeout(m), m = window.setTimeout(() => this._doValidate(n.uri, a), 500);
13
+ }), this._doValidate(n.uri, a);
14
+ }, r = (n) => {
15
+ h.setModelMarkers(n, this._languageId, []);
16
+ let a = n.uri.toString(), m = this._listener[a];
17
+ m && (m.dispose(), delete this._listener[a]);
18
+ };
19
+ this._disposables.push(h.onDidCreateModel(o)), this._disposables.push(h.onWillDisposeModel(r)), this._disposables.push(
20
+ h.onDidChangeModelLanguage((n) => {
21
+ r(n.model), o(n.model);
22
+ })
23
+ ), this._disposables.push(
24
+ s((n) => {
25
+ h.getModels().forEach((a) => {
26
+ a.getLanguageId() === this._languageId && (r(a), o(a));
27
+ });
28
+ })
29
+ ), this._disposables.push({
30
+ dispose: () => {
31
+ h.getModels().forEach(r);
32
+ for (let n in this._listener)
33
+ this._listener[n].dispose();
34
+ }
35
+ }), h.getModels().forEach(o);
36
+ }
37
+ dispose() {
38
+ this._disposables.forEach((e) => e && e.dispose()), this._disposables.length = 0;
39
+ }
40
+ _doValidate(e, i) {
41
+ this._worker(e).then((s) => s.doValidation(e.toString())).then((s) => {
42
+ const o = s.map((n) => A(e, n));
43
+ let r = h.getModel(e);
44
+ r && r.getLanguageId() === i && h.setModelMarkers(r, i, o);
45
+ }).then(void 0, (s) => {
46
+ console.error(s);
47
+ });
48
+ }
49
+ }
50
+ function K(t) {
51
+ switch (t) {
52
+ case w.Error:
53
+ return k.Error;
54
+ case w.Warning:
55
+ return k.Warning;
56
+ case w.Information:
57
+ return k.Info;
58
+ case w.Hint:
59
+ return k.Hint;
60
+ default:
61
+ return k.Info;
62
+ }
63
+ }
64
+ function A(t, e) {
65
+ let i = typeof e.code == "number" ? String(e.code) : e.code;
66
+ return {
67
+ severity: K(e.severity),
68
+ startLineNumber: e.range.start.line + 1,
69
+ startColumn: e.range.start.character + 1,
70
+ endLineNumber: e.range.end.line + 1,
71
+ endColumn: e.range.end.character + 1,
72
+ message: e.message,
73
+ code: i,
74
+ source: e.source
75
+ };
76
+ }
77
+ class $ {
78
+ constructor(e, i) {
79
+ this._worker = e, this._triggerCharacters = i;
80
+ }
81
+ get triggerCharacters() {
82
+ return this._triggerCharacters;
83
+ }
84
+ provideCompletionItems(e, i, s, o) {
85
+ const r = e.uri;
86
+ return this._worker(r).then((n) => n.doComplete(r.toString(), p(i))).then((n) => {
87
+ if (!n)
88
+ return;
89
+ const a = e.getWordUntilPosition(i), m = new x(
90
+ i.lineNumber,
91
+ a.startColumn,
92
+ i.lineNumber,
93
+ a.endColumn
94
+ ), T = n.items.map((u) => {
95
+ const f = {
96
+ label: u.label,
97
+ insertText: u.insertText || u.label,
98
+ sortText: u.sortText,
99
+ filterText: u.filterText,
100
+ documentation: u.documentation,
101
+ detail: u.detail,
102
+ command: N(u.command),
103
+ range: m,
104
+ kind: L(u.kind)
105
+ };
106
+ return u.textEdit && (H(u.textEdit) ? f.range = {
107
+ insert: l(u.textEdit.insert),
108
+ replace: l(u.textEdit.replace)
109
+ } : f.range = l(u.textEdit.range), f.insertText = u.textEdit.newText), u.additionalTextEdits && (f.additionalTextEdits = u.additionalTextEdits.map(_)), u.insertTextFormat === M.Snippet && (f.insertTextRules = g.CompletionItemInsertTextRule.InsertAsSnippet), f;
110
+ });
111
+ return {
112
+ isIncomplete: n.isIncomplete,
113
+ suggestions: T
114
+ };
115
+ });
116
+ }
117
+ }
118
+ function p(t) {
119
+ if (t)
120
+ return { character: t.column - 1, line: t.lineNumber - 1 };
121
+ }
122
+ function D(t) {
123
+ if (t)
124
+ return {
125
+ start: {
126
+ line: t.startLineNumber - 1,
127
+ character: t.startColumn - 1
128
+ },
129
+ end: { line: t.endLineNumber - 1, character: t.endColumn - 1 }
130
+ };
131
+ }
132
+ function l(t) {
133
+ if (t)
134
+ return new x(
135
+ t.start.line + 1,
136
+ t.start.character + 1,
137
+ t.end.line + 1,
138
+ t.end.character + 1
139
+ );
140
+ }
141
+ function H(t) {
142
+ return typeof t.insert < "u" && typeof t.replace < "u";
143
+ }
144
+ function L(t) {
145
+ const e = g.CompletionItemKind;
146
+ switch (t) {
147
+ case c.Text:
148
+ return e.Text;
149
+ case c.Method:
150
+ return e.Method;
151
+ case c.Function:
152
+ return e.Function;
153
+ case c.Constructor:
154
+ return e.Constructor;
155
+ case c.Field:
156
+ return e.Field;
157
+ case c.Variable:
158
+ return e.Variable;
159
+ case c.Class:
160
+ return e.Class;
161
+ case c.Interface:
162
+ return e.Interface;
163
+ case c.Module:
164
+ return e.Module;
165
+ case c.Property:
166
+ return e.Property;
167
+ case c.Unit:
168
+ return e.Unit;
169
+ case c.Value:
170
+ return e.Value;
171
+ case c.Enum:
172
+ return e.Enum;
173
+ case c.Keyword:
174
+ return e.Keyword;
175
+ case c.Snippet:
176
+ return e.Snippet;
177
+ case c.Color:
178
+ return e.Color;
179
+ case c.File:
180
+ return e.File;
181
+ case c.Reference:
182
+ return e.Reference;
183
+ }
184
+ return e.Property;
185
+ }
186
+ function _(t) {
187
+ if (t)
188
+ return {
189
+ range: l(t.range),
190
+ text: t.newText
191
+ };
192
+ }
193
+ function N(t) {
194
+ return t && t.command === "editor.action.triggerSuggest" ? { id: t.command, title: t.title, arguments: t.arguments } : void 0;
195
+ }
196
+ class q {
197
+ constructor(e) {
198
+ this._worker = e;
199
+ }
200
+ provideHover(e, i, s) {
201
+ let o = e.uri;
202
+ return this._worker(o).then((r) => r.doHover(o.toString(), p(i))).then((r) => {
203
+ if (r)
204
+ return {
205
+ range: l(r.range),
206
+ contents: V(r.contents)
207
+ };
208
+ });
209
+ }
210
+ }
211
+ function P(t) {
212
+ return t && typeof t == "object" && typeof t.kind == "string";
213
+ }
214
+ function C(t) {
215
+ return typeof t == "string" ? {
216
+ value: t
217
+ } : P(t) ? t.kind === "plaintext" ? {
218
+ value: t.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&")
219
+ } : {
220
+ value: t.value
221
+ } : { value: "```" + t.language + `
222
+ ` + t.value + "\n```\n" };
223
+ }
224
+ function V(t) {
225
+ if (t)
226
+ return Array.isArray(t) ? t.map(C) : [C(t)];
227
+ }
228
+ class G {
229
+ constructor(e) {
230
+ this._worker = e;
231
+ }
232
+ provideDocumentHighlights(e, i, s) {
233
+ const o = e.uri;
234
+ return this._worker(o).then((r) => r.findDocumentHighlights(o.toString(), p(i))).then((r) => {
235
+ if (r)
236
+ return r.map((n) => ({
237
+ range: l(n.range),
238
+ kind: W(n.kind)
239
+ }));
240
+ });
241
+ }
242
+ }
243
+ function W(t) {
244
+ switch (t) {
245
+ case S.Read:
246
+ return g.DocumentHighlightKind.Read;
247
+ case S.Write:
248
+ return g.DocumentHighlightKind.Write;
249
+ case S.Text:
250
+ return g.DocumentHighlightKind.Text;
251
+ }
252
+ return g.DocumentHighlightKind.Text;
253
+ }
254
+ class J {
255
+ constructor(e) {
256
+ this._worker = e;
257
+ }
258
+ provideDefinition(e, i, s) {
259
+ const o = e.uri;
260
+ return this._worker(o).then((r) => r.findDefinition(o.toString(), p(i))).then((r) => {
261
+ if (r)
262
+ return [R(r)];
263
+ });
264
+ }
265
+ }
266
+ function R(t) {
267
+ return {
268
+ uri: b.parse(t.uri),
269
+ range: l(t.range)
270
+ };
271
+ }
272
+ class Q {
273
+ constructor(e) {
274
+ this._worker = e;
275
+ }
276
+ provideReferences(e, i, s, o) {
277
+ const r = e.uri;
278
+ return this._worker(r).then((n) => n.findReferences(r.toString(), p(i))).then((n) => {
279
+ if (n)
280
+ return n.map(R);
281
+ });
282
+ }
283
+ }
284
+ class X {
285
+ constructor(e) {
286
+ this._worker = e;
287
+ }
288
+ provideRenameEdits(e, i, s, o) {
289
+ const r = e.uri;
290
+ return this._worker(r).then((n) => n.doRename(r.toString(), p(i), s)).then((n) => U(n));
291
+ }
292
+ }
293
+ function U(t) {
294
+ if (!t || !t.changes)
295
+ return;
296
+ let e = [];
297
+ for (let i in t.changes) {
298
+ const s = b.parse(i);
299
+ for (let o of t.changes[i])
300
+ e.push({
301
+ resource: s,
302
+ versionId: void 0,
303
+ textEdit: {
304
+ range: l(o.range),
305
+ text: o.newText
306
+ }
307
+ });
308
+ }
309
+ return {
310
+ edits: e
311
+ };
312
+ }
313
+ class Y {
314
+ constructor(e) {
315
+ this._worker = e;
316
+ }
317
+ provideDocumentSymbols(e, i) {
318
+ const s = e.uri;
319
+ return this._worker(s).then((o) => o.findDocumentSymbols(s.toString())).then((o) => {
320
+ if (o)
321
+ return o.map((r) => j(r) ? E(r) : {
322
+ name: r.name,
323
+ detail: "",
324
+ containerName: r.containerName,
325
+ kind: F(r.kind),
326
+ range: l(r.location.range),
327
+ selectionRange: l(r.location.range),
328
+ tags: []
329
+ });
330
+ });
331
+ }
332
+ }
333
+ function j(t) {
334
+ return "children" in t;
335
+ }
336
+ function E(t) {
337
+ return {
338
+ name: t.name,
339
+ detail: t.detail ?? "",
340
+ kind: F(t.kind),
341
+ range: l(t.range),
342
+ selectionRange: l(t.selectionRange),
343
+ tags: t.tags ?? [],
344
+ children: (t.children ?? []).map((e) => E(e))
345
+ };
346
+ }
347
+ function F(t) {
348
+ let e = g.SymbolKind;
349
+ switch (t) {
350
+ case d.File:
351
+ return e.File;
352
+ case d.Module:
353
+ return e.Module;
354
+ case d.Namespace:
355
+ return e.Namespace;
356
+ case d.Package:
357
+ return e.Package;
358
+ case d.Class:
359
+ return e.Class;
360
+ case d.Method:
361
+ return e.Method;
362
+ case d.Property:
363
+ return e.Property;
364
+ case d.Field:
365
+ return e.Field;
366
+ case d.Constructor:
367
+ return e.Constructor;
368
+ case d.Enum:
369
+ return e.Enum;
370
+ case d.Interface:
371
+ return e.Interface;
372
+ case d.Function:
373
+ return e.Function;
374
+ case d.Variable:
375
+ return e.Variable;
376
+ case d.Constant:
377
+ return e.Constant;
378
+ case d.String:
379
+ return e.String;
380
+ case d.Number:
381
+ return e.Number;
382
+ case d.Boolean:
383
+ return e.Boolean;
384
+ case d.Array:
385
+ return e.Array;
386
+ }
387
+ return e.Function;
388
+ }
389
+ class Z {
390
+ constructor(e) {
391
+ this._worker = e;
392
+ }
393
+ provideLinks(e, i) {
394
+ const s = e.uri;
395
+ return this._worker(s).then((o) => o.findDocumentLinks(s.toString())).then((o) => {
396
+ if (o)
397
+ return {
398
+ links: o.map((r) => ({
399
+ range: l(r.range),
400
+ url: r.target
401
+ }))
402
+ };
403
+ });
404
+ }
405
+ }
406
+ class ee {
407
+ constructor(e) {
408
+ this._worker = e;
409
+ }
410
+ provideDocumentFormattingEdits(e, i, s) {
411
+ const o = e.uri;
412
+ return this._worker(o).then((r) => r.format(o.toString(), null, I(i)).then((n) => {
413
+ if (!(!n || n.length === 0))
414
+ return n.map(_);
415
+ }));
416
+ }
417
+ }
418
+ class te {
419
+ constructor(e) {
420
+ this._worker = e, this.canFormatMultipleRanges = !1;
421
+ }
422
+ provideDocumentRangeFormattingEdits(e, i, s, o) {
423
+ const r = e.uri;
424
+ return this._worker(r).then((n) => n.format(r.toString(), D(i), I(s)).then((a) => {
425
+ if (!(!a || a.length === 0))
426
+ return a.map(_);
427
+ }));
428
+ }
429
+ }
430
+ function I(t) {
431
+ return {
432
+ tabSize: t.tabSize,
433
+ insertSpaces: t.insertSpaces
434
+ };
435
+ }
436
+ class re {
437
+ constructor(e) {
438
+ this._worker = e;
439
+ }
440
+ provideDocumentColors(e, i) {
441
+ const s = e.uri;
442
+ return this._worker(s).then((o) => o.findDocumentColors(s.toString())).then((o) => {
443
+ if (o)
444
+ return o.map((r) => ({
445
+ color: r.color,
446
+ range: l(r.range)
447
+ }));
448
+ });
449
+ }
450
+ provideColorPresentations(e, i, s) {
451
+ const o = e.uri;
452
+ return this._worker(o).then(
453
+ (r) => r.getColorPresentations(o.toString(), i.color, D(i.range))
454
+ ).then((r) => {
455
+ if (r)
456
+ return r.map((n) => {
457
+ let a = {
458
+ label: n.label
459
+ };
460
+ return n.textEdit && (a.textEdit = _(n.textEdit)), n.additionalTextEdits && (a.additionalTextEdits = n.additionalTextEdits.map(_)), a;
461
+ });
462
+ });
463
+ }
464
+ }
465
+ class ne {
466
+ constructor(e) {
467
+ this._worker = e;
468
+ }
469
+ provideFoldingRanges(e, i, s) {
470
+ const o = e.uri;
471
+ return this._worker(o).then((r) => r.getFoldingRanges(o.toString(), i)).then((r) => {
472
+ if (r)
473
+ return r.map((n) => {
474
+ const a = {
475
+ start: n.startLine + 1,
476
+ end: n.endLine + 1
477
+ };
478
+ return typeof n.kind < "u" && (a.kind = y(n.kind)), a;
479
+ });
480
+ });
481
+ }
482
+ }
483
+ function y(t) {
484
+ switch (t) {
485
+ case v.Comment:
486
+ return g.FoldingRangeKind.Comment;
487
+ case v.Imports:
488
+ return g.FoldingRangeKind.Imports;
489
+ case v.Region:
490
+ return g.FoldingRangeKind.Region;
491
+ }
492
+ }
493
+ class oe {
494
+ constructor(e) {
495
+ this._worker = e;
496
+ }
497
+ provideSelectionRanges(e, i, s) {
498
+ const o = e.uri;
499
+ return this._worker(o).then(
500
+ (r) => r.getSelectionRanges(
501
+ o.toString(),
502
+ i.map(p)
503
+ )
504
+ ).then((r) => {
505
+ if (r)
506
+ return r.map((n) => {
507
+ const a = [];
508
+ for (; n; )
509
+ a.push({ range: l(n.range) }), n = n.parent;
510
+ return a;
511
+ });
512
+ });
513
+ }
514
+ }
515
+ export {
516
+ $ as C,
517
+ G as D,
518
+ ne as F,
519
+ q as H,
520
+ Q as R,
521
+ oe as S,
522
+ J as a,
523
+ Y as b,
524
+ X as c,
525
+ re as d,
526
+ O as e,
527
+ ee as f,
528
+ te as g,
529
+ Z as h,
530
+ p as i,
531
+ D as j,
532
+ _ as k,
533
+ l as t
534
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};exports.conf=e;exports.language=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},t={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}};exports.conf=e;exports.language=t;