@kong-ui-public/monaco-editor 0.1.2-pr.2609.2ce4f4787.0 → 0.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.
- package/dist/{abap-D0Neqhq6.js → abap-CrvW7_qN.js} +1 -7
- package/dist/{apex-B5LhxkeG.js → apex-BAOI8p1v.js} +4 -9
- package/dist/assets/css.worker-Cb0JI69t.js +93 -0
- package/dist/assets/editor.worker-DzMH9hFo.js +26 -0
- package/dist/assets/html.worker-BNFZMwEc.js +470 -0
- package/dist/assets/json.worker-BCybXpia.js +58 -0
- package/dist/assets/ts.worker-DAVh1bw1.js +67731 -0
- package/dist/{azcli-BrBH0QTU.js → azcli-BlCk_UqW.js} +1 -7
- package/dist/{bat-BfzAov64.js → bat-DPoEelVx.js} +1 -7
- package/dist/{bicep-C3bCSWel.js → bicep-Cp1F394l.js} +7 -13
- package/dist/{cameligo-sFL5plcd.js → cameligo-CWqtSlQs.js} +1 -7
- package/dist/{clojure-CfeExRz0.js → clojure-CKBp32Gf.js} +1 -7
- package/dist/{coffee-Xws5K0WL.js → coffee-CDo6vc-J.js} +3 -9
- package/dist/{cpp-CqOUEpxN.js → cpp-DokufPgf.js} +1 -7
- package/dist/{csharp-DVLiBOZb.js → csharp-BQi3szM0.js} +1 -7
- package/dist/{csp-DVFp9bw5.js → csp-BSGtCCZ-.js} +1 -7
- package/dist/{css-DwARn2R6.js → css-DEPFDJfb.js} +1 -7
- package/dist/cssMode-CoIMiITW.js +141 -0
- package/dist/{cypher-uY0Mffat.js → cypher-DAb1vOxS.js} +1 -7
- package/dist/{dart-D27H-mX_.js → dart-C8p4jewR.js} +1 -7
- package/dist/{dockerfile-CmV85WZK.js → dockerfile-DP0iLFPN.js} +1 -7
- package/dist/{ecl--fKn7yzB.js → ecl-BDQHA6fi.js} +1 -7
- package/dist/{elixir-DUhH17ON.js → elixir-D4II6kDM.js} +1 -7
- package/dist/{flow9-B3Dx2LLe.js → flow9-StcnL-VB.js} +1 -7
- package/dist/{freemarker2-DrnILGvf.js → freemarker2-BicaFOyj.js} +42 -55
- package/dist/{fsharp-SyqBfUAR.js → fsharp-DdUVp3EN.js} +1 -7
- package/dist/{go-BbMR2tdT.js → go-D1-I258M.js} +1 -7
- package/dist/{graphql-DDJE6tIl.js → graphql-DWkL3f8U.js} +1 -7
- package/dist/{handlebars-D2vGkdp7.js → handlebars-DDeLWwwt.js} +10 -23
- package/dist/{hcl-YBvpaUqf.js → hcl-D_0MNifv.js} +1 -7
- package/dist/{html-D3HI-WFO.js → html-BcKPVefE.js} +10 -23
- package/dist/htmlMode-BSsYu3sx.js +152 -0
- package/dist/{editor.main-BVWEsGeM.js → index-CS38iXeV.js} +115116 -98283
- package/dist/{ini-Ct73dBtM.js → ini-C4I2-MT7.js} +1 -7
- package/dist/{java-C_jlkwoG.js → java-OBvaP_SS.js} +1 -7
- package/dist/{javascript-DLZMP-Wa.js → javascript-DFhT72G7.js} +2 -8
- package/dist/jsonMode-BtUkp6V9.js +569 -0
- package/dist/{julia-D8WE5U1e.js → julia-BmDH8Kkf.js} +1 -7
- package/dist/{kotlin-Zy9aq5yB.js → kotlin-Dhu5AGOD.js} +7 -14
- package/dist/{less-sZ0iHtE8.js → less-CzmjXREq.js} +1 -7
- package/dist/{lexon-CsdNL29A.js → lexon-CV2c4pN9.js} +1 -7
- package/dist/{liquid-CnqLoV0A.js → liquid-BnR5lV1C.js} +10 -23
- package/dist/lspLanguageFeatures-B9LRR-g_.js +1458 -0
- package/dist/{lua-C2YJo0zw.js → lua-CFY5U8qF.js} +1 -7
- package/dist/{m3-CPLP40SG.js → m3-BL_AnZVh.js} +1 -7
- package/dist/{markdown-B1mf5e0R.js → markdown-CWKQPXCv.js} +1 -7
- package/dist/{mdx-C6hXTTY6.js → mdx-DKAGILxT.js} +15 -28
- package/dist/{mips-DA33BZX1.js → mips-ButYmJ5E.js} +1 -7
- package/dist/monaco-editor.es.js +3 -228
- package/dist/monaco-editor.umd.js +515 -1194
- package/dist/{msdax-CCYFIQsP.js → msdax-C3cnXqDh.js} +1 -7
- package/dist/{mysql-hjmIjL-D.js → mysql-YlSHaf6G.js} +1 -7
- package/dist/{objective-c-RRCpEmqC.js → objective-c-Dwnlproe.js} +1 -7
- package/dist/{pascal-CeV8XfxB.js → pascal-UzGbSWEN.js} +1 -7
- package/dist/{pascaligo-IEEGVJAJ.js → pascaligo-CslTgu68.js} +1 -7
- package/dist/{perl-B5-QbHq_.js → perl-oj6r_mgw.js} +1 -7
- package/dist/{pgsql-s6kqEJmi.js → pgsql-DSBO0Mev.js} +1 -7
- package/dist/{php-CWWqzOo8.js → php-YzCD--7j.js} +1 -7
- package/dist/{pla-FSvb_YP_.js → pla-CmylB8vQ.js} +1 -7
- package/dist/{postiats-DQdscQXO.js → postiats-CLFW5gNY.js} +1 -7
- package/dist/{powerquery-CtA5JA1I.js → powerquery-CmOWUvlh.js} +1 -7
- package/dist/{powershell-DglEq96N.js → powershell-fHQcmBLK.js} +1 -7
- package/dist/{protobuf-BSepub3e.js → protobuf-p5BArb-9.js} +1 -7
- package/dist/{pug-B1847F4G.js → pug-gVdUDvqf.js} +1 -7
- package/dist/{python-CGI_fE8F.js → python-DKzFUQKC.js} +6 -19
- package/dist/{qsharp-D4i0Nqg9.js → qsharp-DnrWSUlt.js} +1 -7
- package/dist/{r-cdRigKxa.js → r-Cv309K2z.js} +1 -7
- package/dist/{razor-DNVpjohl.js → razor-PaU3XDMf.js} +10 -23
- package/dist/{redis-D9MFxvE8.js → redis-DTcS4wMj.js} +1 -7
- package/dist/{redshift-CmCnsvL-.js → redshift-hLxZVESM.js} +1 -7
- package/dist/{restructuredtext-CWy8J51t.js → restructuredtext-C898lK4f.js} +1 -7
- package/dist/{ruby-WP-c36m5.js → ruby-CgKtnJIQ.js} +1 -7
- package/dist/{rust-Q9FLdYpu.js → rust-bj8oxVnh.js} +1 -7
- package/dist/{sb-C54-JBGT.js → sb-DWynz26l.js} +1 -7
- package/dist/{scala-CzbFImc5.js → scala-BL5z1UEd.js} +1 -7
- package/dist/{scheme-BhfDmYN3.js → scheme-DUJsH6VU.js} +1 -7
- package/dist/{scss-CEmiBXpS.js → scss-CxjmhvaL.js} +1 -7
- package/dist/{shell-Bmc1VhG0.js → shell-D14Zs1dF.js} +1 -7
- package/dist/{solidity-C9Q2I8Hh.js → solidity-WyRm-BGK.js} +1 -7
- package/dist/{sophia-jWa1UyKz.js → sophia-CKk-_Oa5.js} +1 -7
- package/dist/{sparql-CM7jctbc.js → sparql-DHtmINMZ.js} +1 -7
- package/dist/{sql-WzihTkbg.js → sql-Dqaj5JHC.js} +1 -7
- package/dist/{st-6y7_3aup.js → st-Bj2IIaop.js} +1 -7
- package/dist/style.css +1 -1
- package/dist/{swift-k-0zxG_D.js → swift-DwxP72iM.js} +4 -10
- package/dist/{systemverilog-Pnr5_rIP.js → systemverilog-D7wJfuql.js} +1 -7
- package/dist/{tcl-fNPXval8.js → tcl-0ApMt-eC.js} +1 -7
- package/dist/tsMode-DvEUQx0s.js +946 -0
- package/dist/{twig-L2MkztkV.js → twig-DxwbdmvQ.js} +1 -7
- package/dist/types/composables/useMonacoEditor.d.ts +2 -2
- package/dist/types/composables/useMonacoEditor.d.ts.map +1 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +1 -77
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +1 -1
- package/dist/{typescript-C2FvJtQm.js → typescript-CTTN_Zo7.js} +9 -22
- package/dist/{typespec-Cqqo-3Pt.js → typespec-Fd-JwSuS.js} +5 -11
- package/dist/{vb-B5YC2xN9.js → vb-CxuyYE1I.js} +1 -7
- package/dist/{wgsl-B-_uRex7.js → wgsl-DoEGc31J.js} +2 -8
- package/dist/{xml-e_XsfZP6.js → xml-DTUwxRkW.js} +7 -20
- package/dist/{yaml-DOzdDlyx.js → yaml-DFeVkZUP.js} +6 -19
- package/package.json +8 -8
- package/dist/cssMode-BRHW0OjB.js +0 -1577
- package/dist/htmlMode-CNpiDTvN.js +0 -1587
- package/dist/jsonMode-CEQtUpLb.js +0 -2002
- package/dist/tsMode-CRUDJ1Gx.js +0 -895
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "#"
|
|
10
4
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "REM"
|
|
10
4
|
},
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", r = n(`${t}${o}*`), i = [
|
|
1
|
+
const n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", i = n(`${t}${o}*`), r = [
|
|
8
2
|
"targetScope",
|
|
9
3
|
"resource",
|
|
10
4
|
"module",
|
|
@@ -15,7 +9,7 @@ var n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", r = n(`${t}${o
|
|
|
15
9
|
"in",
|
|
16
10
|
"if",
|
|
17
11
|
"existing"
|
|
18
|
-
],
|
|
12
|
+
], s = ["true", "false", "null"], c = "[ \\t\\r\\n]", a = "[0-9]+", g = {
|
|
19
13
|
comments: {
|
|
20
14
|
lineComment: "//",
|
|
21
15
|
blockComment: ["/*", "*/"]
|
|
@@ -54,8 +48,8 @@ var n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", r = n(`${t}${o
|
|
|
54
48
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
55
49
|
],
|
|
56
50
|
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
57
|
-
keywords:
|
|
58
|
-
namedLiterals:
|
|
51
|
+
keywords: r,
|
|
52
|
+
namedLiterals: s,
|
|
59
53
|
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
|
60
54
|
tokenizer: {
|
|
61
55
|
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
@@ -81,16 +75,16 @@ var n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", r = n(`${t}${o
|
|
|
81
75
|
{ regex: "[\\/*]", action: { token: "comment" } }
|
|
82
76
|
],
|
|
83
77
|
whitespace: [
|
|
84
|
-
{ regex:
|
|
78
|
+
{ regex: c },
|
|
85
79
|
{ regex: "\\/\\*", action: { token: "comment", next: "@comment" } },
|
|
86
80
|
{ regex: "\\/\\/.*$", action: { token: "comment" } }
|
|
87
81
|
],
|
|
88
82
|
expression: [
|
|
89
83
|
{ regex: "'''", action: { token: "string.quote", next: "@stringVerbatim" } },
|
|
90
84
|
{ regex: "'", action: { token: "string.quote", next: "@stringLiteral" } },
|
|
91
|
-
{ regex:
|
|
85
|
+
{ regex: a, action: { token: "number" } },
|
|
92
86
|
{
|
|
93
|
-
regex:
|
|
87
|
+
regex: i,
|
|
94
88
|
action: {
|
|
95
89
|
cases: {
|
|
96
90
|
"@keywords": { token: "keyword" },
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["(*", "*)"]
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: ";;"
|
|
10
4
|
},
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
9
3
|
comments: {
|
|
10
4
|
blockComment: ["###", "###"],
|
|
@@ -35,7 +29,7 @@ var e = {
|
|
|
35
29
|
end: new RegExp("^\\s*#endregion\\b")
|
|
36
30
|
}
|
|
37
31
|
}
|
|
38
|
-
},
|
|
32
|
+
}, t = {
|
|
39
33
|
defaultToken: "",
|
|
40
34
|
ignoreCase: !0,
|
|
41
35
|
tokenPostfix: ".coffee",
|
|
@@ -234,5 +228,5 @@ var e = {
|
|
|
234
228
|
};
|
|
235
229
|
export {
|
|
236
230
|
e as conf,
|
|
237
|
-
|
|
231
|
+
t as language
|
|
238
232
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["/*", "*/"]
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
9
3
|
comments: {
|
|
10
4
|
lineComment: "//",
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var t = {
|
|
1
|
+
const t = {
|
|
8
2
|
brackets: [],
|
|
9
3
|
autoClosingPairs: [],
|
|
10
4
|
surroundingPairs: []
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
|
9
3
|
comments: {
|
|
10
4
|
blockComment: ["/*", "*/"]
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { c as h, l as s } from "./index-CS38iXeV.js";
|
|
2
|
+
import { C as c, H as u, D as p, a as m, R as f, b as _, c as w, d as k, F as v, e as D, S as P, f as R, g as I } from "./lspLanguageFeatures-B9LRR-g_.js";
|
|
3
|
+
import { h as b, i as H, j as y, t as U, k as T } from "./lspLanguageFeatures-B9LRR-g_.js";
|
|
4
|
+
const C = 2 * 60 * 1e3;
|
|
5
|
+
class A {
|
|
6
|
+
constructor(o) {
|
|
7
|
+
this._defaults = o, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
8
|
+
}
|
|
9
|
+
_stopWorker() {
|
|
10
|
+
this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
|
|
11
|
+
}
|
|
12
|
+
dispose() {
|
|
13
|
+
clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
|
|
14
|
+
}
|
|
15
|
+
_checkIfIdle() {
|
|
16
|
+
if (!this._worker)
|
|
17
|
+
return;
|
|
18
|
+
Date.now() - this._lastUsedTime > C && this._stopWorker();
|
|
19
|
+
}
|
|
20
|
+
_getClient() {
|
|
21
|
+
return this._lastUsedTime = Date.now(), this._client || (this._worker = h({
|
|
22
|
+
// module that exports the create() method and returns a `CSSWorker` instance
|
|
23
|
+
moduleId: "vs/language/css/cssWorker",
|
|
24
|
+
createWorker: () => new Worker(new URL(
|
|
25
|
+
/* @vite-ignore */
|
|
26
|
+
"/assets/css.worker-Cb0JI69t.js",
|
|
27
|
+
import.meta.url
|
|
28
|
+
), { type: "module" }),
|
|
29
|
+
label: this._defaults.languageId,
|
|
30
|
+
// passed in to the create() method
|
|
31
|
+
createData: {
|
|
32
|
+
options: this._defaults.options,
|
|
33
|
+
languageId: this._defaults.languageId
|
|
34
|
+
}
|
|
35
|
+
}), this._client = this._worker.getProxy()), this._client;
|
|
36
|
+
}
|
|
37
|
+
getLanguageServiceWorker(...o) {
|
|
38
|
+
let e;
|
|
39
|
+
return this._getClient().then((a) => {
|
|
40
|
+
e = a;
|
|
41
|
+
}).then((a) => {
|
|
42
|
+
if (this._worker)
|
|
43
|
+
return this._worker.withSyncedResources(o);
|
|
44
|
+
}).then((a) => e);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function F(n) {
|
|
48
|
+
const o = [], e = [], a = new A(n);
|
|
49
|
+
o.push(a);
|
|
50
|
+
const r = (...t) => a.getLanguageServiceWorker(...t);
|
|
51
|
+
function l() {
|
|
52
|
+
const { languageId: t, modeConfiguration: i } = n;
|
|
53
|
+
g(e), i.completionItems && e.push(
|
|
54
|
+
s.registerCompletionItemProvider(
|
|
55
|
+
t,
|
|
56
|
+
new c(r, ["/", "-", ":"])
|
|
57
|
+
)
|
|
58
|
+
), i.hovers && e.push(
|
|
59
|
+
s.registerHoverProvider(t, new u(r))
|
|
60
|
+
), i.documentHighlights && e.push(
|
|
61
|
+
s.registerDocumentHighlightProvider(
|
|
62
|
+
t,
|
|
63
|
+
new p(r)
|
|
64
|
+
)
|
|
65
|
+
), i.definitions && e.push(
|
|
66
|
+
s.registerDefinitionProvider(
|
|
67
|
+
t,
|
|
68
|
+
new m(r)
|
|
69
|
+
)
|
|
70
|
+
), i.references && e.push(
|
|
71
|
+
s.registerReferenceProvider(
|
|
72
|
+
t,
|
|
73
|
+
new f(r)
|
|
74
|
+
)
|
|
75
|
+
), i.documentSymbols && e.push(
|
|
76
|
+
s.registerDocumentSymbolProvider(
|
|
77
|
+
t,
|
|
78
|
+
new _(r)
|
|
79
|
+
)
|
|
80
|
+
), i.rename && e.push(
|
|
81
|
+
s.registerRenameProvider(t, new w(r))
|
|
82
|
+
), i.colors && e.push(
|
|
83
|
+
s.registerColorProvider(
|
|
84
|
+
t,
|
|
85
|
+
new k(r)
|
|
86
|
+
)
|
|
87
|
+
), i.foldingRanges && e.push(
|
|
88
|
+
s.registerFoldingRangeProvider(
|
|
89
|
+
t,
|
|
90
|
+
new v(r)
|
|
91
|
+
)
|
|
92
|
+
), i.diagnostics && e.push(
|
|
93
|
+
new D(t, r, n.onDidChange)
|
|
94
|
+
), i.selectionRanges && e.push(
|
|
95
|
+
s.registerSelectionRangeProvider(
|
|
96
|
+
t,
|
|
97
|
+
new P(r)
|
|
98
|
+
)
|
|
99
|
+
), i.documentFormattingEdits && e.push(
|
|
100
|
+
s.registerDocumentFormattingEditProvider(
|
|
101
|
+
t,
|
|
102
|
+
new R(r)
|
|
103
|
+
)
|
|
104
|
+
), i.documentRangeFormattingEdits && e.push(
|
|
105
|
+
s.registerDocumentRangeFormattingEditProvider(
|
|
106
|
+
t,
|
|
107
|
+
new I(r)
|
|
108
|
+
)
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
return l(), o.push(d(e)), d(o);
|
|
112
|
+
}
|
|
113
|
+
function d(n) {
|
|
114
|
+
return { dispose: () => g(n) };
|
|
115
|
+
}
|
|
116
|
+
function g(n) {
|
|
117
|
+
for (; n.length; )
|
|
118
|
+
n.pop().dispose();
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
c as CompletionAdapter,
|
|
122
|
+
m as DefinitionAdapter,
|
|
123
|
+
D as DiagnosticsAdapter,
|
|
124
|
+
k as DocumentColorAdapter,
|
|
125
|
+
R as DocumentFormattingEditProvider,
|
|
126
|
+
p as DocumentHighlightAdapter,
|
|
127
|
+
b as DocumentLinkAdapter,
|
|
128
|
+
I as DocumentRangeFormattingEditProvider,
|
|
129
|
+
_ as DocumentSymbolAdapter,
|
|
130
|
+
v as FoldingRangeAdapter,
|
|
131
|
+
u as HoverAdapter,
|
|
132
|
+
f as ReferenceAdapter,
|
|
133
|
+
w as RenameAdapter,
|
|
134
|
+
P as SelectionRangeAdapter,
|
|
135
|
+
A as WorkerManager,
|
|
136
|
+
H as fromPosition,
|
|
137
|
+
y as fromRange,
|
|
138
|
+
F as setupMode,
|
|
139
|
+
U as toRange,
|
|
140
|
+
T as toTextEdit
|
|
141
|
+
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["/*", "*/"]
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["/*", "*/"]
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
brackets: [
|
|
9
3
|
["{", "}"],
|
|
10
4
|
["[", "]"],
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["/*", "*/"]
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "#"
|
|
10
4
|
},
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
blockComment: ["/*", "*/"],
|
|
10
4
|
lineComment: "//"
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
5
|
-
* Released under the MIT license
|
|
6
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
|
-
*-----------------------------------------------------------------------------*/
|
|
8
|
-
var F = Object.defineProperty, b = Object.getOwnPropertyDescriptor, x = Object.getOwnPropertyNames, $ = Object.prototype.hasOwnProperty, v = (t, n, _, e) => {
|
|
9
|
-
if (n && typeof n == "object" || typeof n == "function")
|
|
10
|
-
for (let o of x(n))
|
|
11
|
-
!$.call(t, o) && o !== _ && F(t, o, { get: () => n[o], enumerable: !(e = b(n, o)) || e.enumerable });
|
|
12
|
-
return t;
|
|
13
|
-
}, E = (t, n, _) => (v(t, n, "default"), _), r = {};
|
|
14
|
-
E(r, f);
|
|
15
|
-
var d = [
|
|
1
|
+
import { l as c } from "./index-CS38iXeV.js";
|
|
2
|
+
const s = [
|
|
16
3
|
"assign",
|
|
17
4
|
"flush",
|
|
18
5
|
"ftl",
|
|
@@ -31,7 +18,7 @@ var d = [
|
|
|
31
18
|
"lt",
|
|
32
19
|
"rt",
|
|
33
20
|
"fallback"
|
|
34
|
-
],
|
|
21
|
+
], d = [
|
|
35
22
|
"attempt",
|
|
36
23
|
"autoesc",
|
|
37
24
|
"autoEsc",
|
|
@@ -57,11 +44,11 @@ var d = [
|
|
|
57
44
|
close: ">",
|
|
58
45
|
id: "angle",
|
|
59
46
|
open: "<"
|
|
60
|
-
},
|
|
47
|
+
}, r = {
|
|
61
48
|
close: "\\]",
|
|
62
49
|
id: "bracket",
|
|
63
50
|
open: "\\["
|
|
64
|
-
},
|
|
51
|
+
}, F = {
|
|
65
52
|
close: "[>\\]]",
|
|
66
53
|
id: "auto",
|
|
67
54
|
open: "[<\\[]"
|
|
@@ -107,26 +94,26 @@ function l(t) {
|
|
|
107
94
|
folding: {
|
|
108
95
|
markers: {
|
|
109
96
|
start: new RegExp(
|
|
110
|
-
`${t.open}#(?:${
|
|
97
|
+
`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`
|
|
111
98
|
),
|
|
112
|
-
end: new RegExp(`${t.open}/#(?:${
|
|
99
|
+
end: new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)
|
|
113
100
|
}
|
|
114
101
|
},
|
|
115
102
|
onEnterRules: [
|
|
116
103
|
{
|
|
117
104
|
beforeText: new RegExp(
|
|
118
|
-
`${t.open}#(?!(?:${
|
|
105
|
+
`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`
|
|
119
106
|
),
|
|
120
107
|
afterText: new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),
|
|
121
108
|
action: {
|
|
122
|
-
indentAction:
|
|
109
|
+
indentAction: c.IndentAction.IndentOutdent
|
|
123
110
|
}
|
|
124
111
|
},
|
|
125
112
|
{
|
|
126
113
|
beforeText: new RegExp(
|
|
127
|
-
`${t.open}#(?!(?:${
|
|
114
|
+
`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`
|
|
128
115
|
),
|
|
129
|
-
action: { indentAction:
|
|
116
|
+
action: { indentAction: c.IndentAction.Indent }
|
|
130
117
|
}
|
|
131
118
|
]
|
|
132
119
|
};
|
|
@@ -160,33 +147,33 @@ function g() {
|
|
|
160
147
|
],
|
|
161
148
|
folding: {
|
|
162
149
|
markers: {
|
|
163
|
-
start: new RegExp(`[<\\[]#(?:${
|
|
164
|
-
end: new RegExp(`[<\\[]/#(?:${
|
|
150
|
+
start: new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),
|
|
151
|
+
end: new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)
|
|
165
152
|
}
|
|
166
153
|
},
|
|
167
154
|
onEnterRules: [
|
|
168
155
|
{
|
|
169
156
|
beforeText: new RegExp(
|
|
170
|
-
`[<\\[]#(?!(?:${
|
|
157
|
+
`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`
|
|
171
158
|
),
|
|
172
159
|
afterText: new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),
|
|
173
160
|
action: {
|
|
174
|
-
indentAction:
|
|
161
|
+
indentAction: c.IndentAction.IndentOutdent
|
|
175
162
|
}
|
|
176
163
|
},
|
|
177
164
|
{
|
|
178
165
|
beforeText: new RegExp(
|
|
179
|
-
`[<\\[]#(?!(?:${
|
|
166
|
+
`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`
|
|
180
167
|
),
|
|
181
|
-
action: { indentAction:
|
|
168
|
+
action: { indentAction: c.IndentAction.Indent }
|
|
182
169
|
}
|
|
183
170
|
]
|
|
184
171
|
};
|
|
185
172
|
}
|
|
186
|
-
function
|
|
187
|
-
const
|
|
188
|
-
const m =
|
|
189
|
-
return new RegExp(m,
|
|
173
|
+
function _(t, n) {
|
|
174
|
+
const i = `_${t.id}_${n.id}`, e = (u) => u.replace(/__id__/g, i), o = (u) => {
|
|
175
|
+
const m = u.source.replace(/__id__/g, i);
|
|
176
|
+
return new RegExp(m, u.flags);
|
|
190
177
|
};
|
|
191
178
|
return {
|
|
192
179
|
// Settings
|
|
@@ -939,12 +926,12 @@ function i(t, n) {
|
|
|
939
926
|
};
|
|
940
927
|
}
|
|
941
928
|
function A(t) {
|
|
942
|
-
const n =
|
|
929
|
+
const n = _(a, t), i = _(r, t), e = _(F, t);
|
|
943
930
|
return {
|
|
944
931
|
// Angle and bracket syntax mode
|
|
945
932
|
// We switch to one of these once we have determined the mode
|
|
946
933
|
...n,
|
|
947
|
-
...
|
|
934
|
+
...i,
|
|
948
935
|
...e,
|
|
949
936
|
// Settings
|
|
950
937
|
unicode: !0,
|
|
@@ -961,35 +948,35 @@ function A(t) {
|
|
|
961
948
|
],
|
|
962
949
|
tokenizer: {
|
|
963
950
|
...n.tokenizer,
|
|
964
|
-
...
|
|
951
|
+
...i.tokenizer,
|
|
965
952
|
...e.tokenizer
|
|
966
953
|
}
|
|
967
954
|
};
|
|
968
955
|
}
|
|
969
|
-
|
|
956
|
+
const b = {
|
|
970
957
|
conf: l(a),
|
|
971
|
-
language:
|
|
972
|
-
},
|
|
973
|
-
conf: l(
|
|
974
|
-
language:
|
|
975
|
-
},
|
|
958
|
+
language: _(a, k)
|
|
959
|
+
}, x = {
|
|
960
|
+
conf: l(r),
|
|
961
|
+
language: _(r, k)
|
|
962
|
+
}, $ = {
|
|
976
963
|
conf: l(a),
|
|
977
|
-
language:
|
|
978
|
-
},
|
|
979
|
-
conf: l(
|
|
980
|
-
language:
|
|
981
|
-
},
|
|
964
|
+
language: _(a, p)
|
|
965
|
+
}, E = {
|
|
966
|
+
conf: l(r),
|
|
967
|
+
language: _(r, p)
|
|
968
|
+
}, B = {
|
|
982
969
|
conf: g(),
|
|
983
970
|
language: A(k)
|
|
984
|
-
},
|
|
971
|
+
}, D = {
|
|
985
972
|
conf: g(),
|
|
986
973
|
language: A(p)
|
|
987
974
|
};
|
|
988
975
|
export {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
976
|
+
$ as TagAngleInterpolationBracket,
|
|
977
|
+
b as TagAngleInterpolationDollar,
|
|
978
|
+
D as TagAutoInterpolationBracket,
|
|
979
|
+
B as TagAutoInterpolationDollar,
|
|
980
|
+
E as TagBracketInterpolationBracket,
|
|
981
|
+
x as TagBracketInterpolationDollar
|
|
995
982
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["(*", "*)"]
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["/*", "*/"]
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
1
|
+
const e = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "#"
|
|
10
4
|
},
|