@ansible/ansible-ui-framework 2.4.2597 → 2.4.2598
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +45612 -148
- package/index.umd.cjs +261 -2173
- package/package.json +7 -6
- package/publish/index.d.ts +337 -148
- package/style.css +1 -1
- package/abap-BgxiW-yv.js +0 -1404
- package/apex-Ci_BavZh.js +0 -332
- package/azcli-dfO4wGjy.js +0 -74
- package/bat-DD810Xk_.js +0 -106
- package/bicep-8OENIIxl.js +0 -108
- package/cameligo-NqPxsDwa.js +0 -180
- package/clojure-DuHkQIc1.js +0 -767
- package/coffee-B3cpF2mL.js +0 -238
- package/cpp-BJvlC8pp.js +0 -395
- package/csharp-B-mepg9G.js +0 -332
- package/csp-CZDIWMVF.js +0 -59
- package/css-CLWUu9O1.js +0 -193
- package/cssMode-BW_EgCuT.js +0 -1577
- package/cypher-DaPSdc0H.js +0 -269
- package/dart-Do9iT_o8.js +0 -287
- package/dockerfile-CbJBIDss.js +0 -136
- package/ecl-BqVPFR32.js +0 -462
- package/elixir-D1QTcrNJ.js +0 -575
- package/flow9-8noNFj4g.js +0 -148
- package/freemarker2-CZroC-2x.js +0 -995
- package/fsharp-C8jetu08.js +0 -223
- package/go-CwkaVtEf.js +0 -224
- package/graphql-CN0L02lB.js +0 -157
- package/handlebars-DdZaSSq2.js +0 -425
- package/hcl-B8DTUjkt.js +0 -189
- package/html-BStYWvMR.js +0 -314
- package/htmlMode-BZ30jslh.js +0 -1587
- package/index-_bG9dmst.js +0 -157805
- package/ini-BAHk9dez.js +0 -77
- package/java-BqU7F-WC.js +0 -238
- package/javascript-R1fkmvzs.js +0 -76
- package/jsonMode-B3D-ZZhn.js +0 -2002
- package/julia-7wzAFYJ_.js +0 -517
- package/kotlin-Ds6t9yxb.js +0 -259
- package/less-BsKXqSGe.js +0 -168
- package/lexon-CxjeM0Fy.js +0 -163
- package/liquid-COCYG7jZ.js +0 -246
- package/lua-CZeocWyu.js +0 -168
- package/m3-DrAa334y.js +0 -216
- package/markdown-BKScSdMX.js +0 -235
- package/mdx-CnriKNQ4.js +0 -171
- package/mips-C2kxK_Lk.js +0 -204
- package/msdax-CV-iM8Y9.js +0 -381
- package/mysql-0UKhlzQO.js +0 -884
- package/objective-c-CbKhSCGr.js +0 -189
- package/pascal-CP-K8RTj.js +0 -257
- package/pascaligo-DNS345Ec.js +0 -170
- package/perl-CU_O2Ux7.js +0 -632
- package/pgsql-CvE830Au.js +0 -857
- package/php-BvwPLbR6.js +0 -506
- package/pla-DJ8gwRb5.js +0 -143
- package/postiats-CGZof9No.js +0 -913
- package/powerquery-C7bI8brw.js +0 -896
- package/powershell-CmptSHHa.js +0 -245
- package/protobuf-CNFSy7mI.js +0 -426
- package/publish/abap-BgxiW-yv.d.ts +0 -63
- package/publish/apex-Ci_BavZh.d.ts +0 -65
- package/publish/azcli-dfO4wGjy.d.ts +0 -47
- package/publish/bat-DD810Xk_.d.ts +0 -57
- package/publish/bicep-8OENIIxl.d.ts +0 -146
- package/publish/cameligo-NqPxsDwa.d.ts +0 -55
- package/publish/clojure-DuHkQIc1.d.ts +0 -50
- package/publish/coffee-B3cpF2mL.d.ts +0 -102
- package/publish/cpp-BJvlC8pp.d.ts +0 -83
- package/publish/csharp-B-mepg9G.d.ts +0 -113
- package/publish/csp-CZDIWMVF.d.ts +0 -17
- package/publish/css-CLWUu9O1.d.ts +0 -144
- package/publish/cssMode-BW_EgCuT.d.ts +0 -130
- package/publish/cypher-DaPSdc0H.d.ts +0 -65
- package/publish/dart-Do9iT_o8.d.ts +0 -83
- package/publish/dockerfile-CbJBIDss.d.ts +0 -73
- package/publish/ecl-BqVPFR32.d.ts +0 -60
- package/publish/elixir-D1QTcrNJ.d.ts +0 -307
- package/publish/flow9-8noNFj4g.d.ts +0 -45
- package/publish/freemarker2-CZroC-2x.d.ts +0 -1543
- package/publish/fsharp-C8jetu08.d.ts +0 -61
- package/publish/go-CwkaVtEf.d.ts +0 -51
- package/publish/graphql-CN0L02lB.d.ts +0 -75
- package/publish/handlebars-DdZaSSq2.d.ts +0 -176
- package/publish/hcl-B8DTUjkt.d.ts +0 -77
- package/publish/html-BStYWvMR.d.ts +0 -129
- package/publish/htmlMode-BZ30jslh.d.ts +0 -131
- package/publish/index-_bG9dmst.d.ts +0 -2914
- package/publish/ini-BAHk9dez.d.ts +0 -35
- package/publish/java-BqU7F-WC.d.ts +0 -57
- package/publish/javascript-R1fkmvzs.d.ts +0 -111
- package/publish/jsonMode-B3D-ZZhn.d.ts +0 -131
- package/publish/julia-7wzAFYJ_.d.ts +0 -92
- package/publish/kotlin-Ds6t9yxb.d.ts +0 -57
- package/publish/less-BsKXqSGe.d.ts +0 -88
- package/publish/lexon-CxjeM0Fy.d.ts +0 -81
- package/publish/liquid-COCYG7jZ.d.ts +0 -73
- package/publish/lua-CZeocWyu.d.ts +0 -66
- package/publish/m3-DrAa334y.d.ts +0 -63
- package/publish/markdown-BKScSdMX.d.ts +0 -129
- package/publish/mdx-CnriKNQ4.d.ts +0 -139
- package/publish/mips-C2kxK_Lk.d.ts +0 -79
- package/publish/msdax-CV-iM8Y9.d.ts +0 -68
- package/publish/mysql-0UKhlzQO.d.ts +0 -76
- package/publish/objective-c-CbKhSCGr.d.ts +0 -46
- package/publish/pascal-CP-K8RTj.d.ts +0 -62
- package/publish/pascaligo-DNS345Ec.d.ts +0 -55
- package/publish/perl-CU_O2Ux7.d.ts +0 -116
- package/publish/pgsql-CvE830Au.d.ts +0 -80
- package/publish/php-BvwPLbR6.d.ts +0 -193
- package/publish/pla-DJ8gwRb5.d.ts +0 -71
- package/publish/postiats-CGZof9No.d.ts +0 -212
- package/publish/powerquery-C7bI8brw.d.ts +0 -63
- package/publish/powershell-CmptSHHa.d.ts +0 -119
- package/publish/protobuf-CNFSy7mI.d.ts +0 -364
- package/publish/pug-CzItlbqs.d.ts +0 -170
- package/publish/python-8vPuu566.d.ts +0 -65
- package/publish/qsharp-C1B8howk.d.ts +0 -75
- package/publish/r-BTwZKg_d.d.ts +0 -77
- package/publish/razor-CtOmeuwi.d.ts +0 -194
- package/publish/redis-BUv7CvJd.d.ts +0 -63
- package/publish/redshift-jrBDFghq.d.ts +0 -80
- package/publish/restructuredtext-BxbR-VyS.d.ts +0 -69
- package/publish/ruby-B0TfnHZH.d.ts +0 -239
- package/publish/rust-D_saCUFK.d.ts +0 -94
- package/publish/sb-DcgiWk7t.d.ts +0 -54
- package/publish/scala-BfLWIEFR.d.ts +0 -135
- package/publish/scheme-CZaOrAgo.d.ts +0 -46
- package/publish/scss-Du10_18v.d.ts +0 -220
- package/publish/shell-D1p7ZuXl.d.ts +0 -53
- package/publish/solidity-DzIDOgno.d.ts +0 -50
- package/publish/sophia-BU-qT3RS.d.ts +0 -50
- package/publish/sparql-DVtIp1VH.d.ts +0 -47
- package/publish/sql-1GwNodTS.d.ts +0 -86
- package/publish/st-DPXgTepQ.d.ts +0 -87
- package/publish/swift-ZhwunzBf.d.ts +0 -80
- package/publish/systemverilog-CVvtzxud.d.ts +0 -109
- package/publish/tcl-CYCJd6bV.d.ts +0 -87
- package/publish/tsMode-BSdN2klD.d.ts +0 -436
- package/publish/twig-JIfYOL6u.d.ts +0 -135
- package/publish/typescript-DWjYWuYm.d.ts +0 -110
- package/publish/typespec-BH4BOGFR.d.ts +0 -146
- package/publish/vb-6Rp6KK9h.d.ts +0 -60
- package/publish/wgsl-kJTvkQmx.d.ts +0 -72
- package/publish/xml-BqVRyB3K.d.ts +0 -72
- package/publish/yaml-DEH8xqyy.d.ts +0 -87
- package/pug-CzItlbqs.js +0 -408
- package/python-8vPuu566.js +0 -307
- package/qsharp-C1B8howk.js +0 -307
- package/r-BTwZKg_d.js +0 -249
- package/razor-CtOmeuwi.js +0 -556
- package/redis-BUv7CvJd.js +0 -308
- package/redshift-jrBDFghq.js +0 -815
- package/restructuredtext-BxbR-VyS.js +0 -180
- package/ruby-B0TfnHZH.js +0 -517
- package/rust-D_saCUFK.js +0 -349
- package/sb-DcgiWk7t.js +0 -121
- package/scala-BfLWIEFR.js +0 -376
- package/scheme-CZaOrAgo.js +0 -114
- package/scss-Du10_18v.js +0 -268
- package/shell-D1p7ZuXl.js +0 -227
- package/solidity-DzIDOgno.js +0 -1373
- package/sophia-BU-qT3RS.js +0 -205
- package/sparql-DVtIp1VH.js +0 -207
- package/sql-1GwNodTS.js +0 -859
- package/st-DPXgTepQ.js +0 -422
- package/swift-ZhwunzBf.js +0 -318
- package/systemverilog-CVvtzxud.js +0 -582
- package/tcl-CYCJd6bV.js +0 -238
- package/tsMode-BSdN2klD.js +0 -895
- package/twig-JIfYOL6u.js +0 -398
- package/typescript-DWjYWuYm.js +0 -349
- package/typespec-BH4BOGFR.js +0 -123
- package/vb-6Rp6KK9h.js +0 -378
- package/wgsl-kJTvkQmx.js +0 -445
- package/xml-BqVRyB3K.js +0 -101
- package/yaml-DEH8xqyy.js +0 -212
package/jsonMode-B3D-ZZhn.js
DELETED
@@ -1,2002 +0,0 @@
|
|
1
|
-
import { m as Et } from "./index-_bG9dmst.js";
|
2
|
-
/*!-----------------------------------------------------------------------------
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
5
|
-
* Released under the MIT license
|
6
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
7
|
-
*-----------------------------------------------------------------------------*/
|
8
|
-
var Lt = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Nt = Object.getOwnPropertyNames, Rt = Object.prototype.hasOwnProperty, Mt = (e, r, i, n) => {
|
9
|
-
if (r && typeof r == "object" || typeof r == "function")
|
10
|
-
for (let t of Nt(r))
|
11
|
-
!Rt.call(e, t) && t !== i && Lt(e, t, { get: () => r[t], enumerable: !(n = Ot(r, t)) || n.enumerable });
|
12
|
-
return e;
|
13
|
-
}, Dt = (e, r, i) => (Mt(e, r, "default"), i), f = {};
|
14
|
-
Dt(f, Et);
|
15
|
-
var Ft = 2 * 60 * 1e3, Ut = class {
|
16
|
-
constructor(e) {
|
17
|
-
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
18
|
-
}
|
19
|
-
_stopWorker() {
|
20
|
-
this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
|
21
|
-
}
|
22
|
-
dispose() {
|
23
|
-
clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
|
24
|
-
}
|
25
|
-
_checkIfIdle() {
|
26
|
-
if (!this._worker)
|
27
|
-
return;
|
28
|
-
Date.now() - this._lastUsedTime > Ft && this._stopWorker();
|
29
|
-
}
|
30
|
-
_getClient() {
|
31
|
-
return this._lastUsedTime = Date.now(), this._client || (this._worker = f.editor.createWebWorker({
|
32
|
-
// module that exports the create() method and returns a `JSONWorker` instance
|
33
|
-
moduleId: "vs/language/json/jsonWorker",
|
34
|
-
label: this._defaults.languageId,
|
35
|
-
// passed in to the create() method
|
36
|
-
createData: {
|
37
|
-
languageSettings: this._defaults.diagnosticsOptions,
|
38
|
-
languageId: this._defaults.languageId,
|
39
|
-
enableSchemaRequest: this._defaults.diagnosticsOptions.enableSchemaRequest
|
40
|
-
}
|
41
|
-
}), this._client = this._worker.getProxy()), this._client;
|
42
|
-
}
|
43
|
-
getLanguageServiceWorker(...e) {
|
44
|
-
let r;
|
45
|
-
return this._getClient().then((i) => {
|
46
|
-
r = i;
|
47
|
-
}).then((i) => {
|
48
|
-
if (this._worker)
|
49
|
-
return this._worker.withSyncedResources(e);
|
50
|
-
}).then((i) => r);
|
51
|
-
}
|
52
|
-
}, le;
|
53
|
-
(function(e) {
|
54
|
-
function r(i) {
|
55
|
-
return typeof i == "string";
|
56
|
-
}
|
57
|
-
e.is = r;
|
58
|
-
})(le || (le = {}));
|
59
|
-
var Q;
|
60
|
-
(function(e) {
|
61
|
-
function r(i) {
|
62
|
-
return typeof i == "string";
|
63
|
-
}
|
64
|
-
e.is = r;
|
65
|
-
})(Q || (Q = {}));
|
66
|
-
var fe;
|
67
|
-
(function(e) {
|
68
|
-
e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
|
69
|
-
function r(i) {
|
70
|
-
return typeof i == "number" && e.MIN_VALUE <= i && i <= e.MAX_VALUE;
|
71
|
-
}
|
72
|
-
e.is = r;
|
73
|
-
})(fe || (fe = {}));
|
74
|
-
var W;
|
75
|
-
(function(e) {
|
76
|
-
e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
|
77
|
-
function r(i) {
|
78
|
-
return typeof i == "number" && e.MIN_VALUE <= i && i <= e.MAX_VALUE;
|
79
|
-
}
|
80
|
-
e.is = r;
|
81
|
-
})(W || (W = {}));
|
82
|
-
var O;
|
83
|
-
(function(e) {
|
84
|
-
function r(n, t) {
|
85
|
-
return n === Number.MAX_VALUE && (n = W.MAX_VALUE), t === Number.MAX_VALUE && (t = W.MAX_VALUE), { line: n, character: t };
|
86
|
-
}
|
87
|
-
e.create = r;
|
88
|
-
function i(n) {
|
89
|
-
let t = n;
|
90
|
-
return a.objectLiteral(t) && a.uinteger(t.line) && a.uinteger(t.character);
|
91
|
-
}
|
92
|
-
e.is = i;
|
93
|
-
})(O || (O = {}));
|
94
|
-
var m;
|
95
|
-
(function(e) {
|
96
|
-
function r(n, t, o, s) {
|
97
|
-
if (a.uinteger(n) && a.uinteger(t) && a.uinteger(o) && a.uinteger(s))
|
98
|
-
return { start: O.create(n, t), end: O.create(o, s) };
|
99
|
-
if (O.is(n) && O.is(t))
|
100
|
-
return { start: n, end: t };
|
101
|
-
throw new Error(`Range#create called with invalid arguments[${n}, ${t}, ${o}, ${s}]`);
|
102
|
-
}
|
103
|
-
e.create = r;
|
104
|
-
function i(n) {
|
105
|
-
let t = n;
|
106
|
-
return a.objectLiteral(t) && O.is(t.start) && O.is(t.end);
|
107
|
-
}
|
108
|
-
e.is = i;
|
109
|
-
})(m || (m = {}));
|
110
|
-
var H;
|
111
|
-
(function(e) {
|
112
|
-
function r(n, t) {
|
113
|
-
return { uri: n, range: t };
|
114
|
-
}
|
115
|
-
e.create = r;
|
116
|
-
function i(n) {
|
117
|
-
let t = n;
|
118
|
-
return a.objectLiteral(t) && m.is(t.range) && (a.string(t.uri) || a.undefined(t.uri));
|
119
|
-
}
|
120
|
-
e.is = i;
|
121
|
-
})(H || (H = {}));
|
122
|
-
var de;
|
123
|
-
(function(e) {
|
124
|
-
function r(n, t, o, s) {
|
125
|
-
return { targetUri: n, targetRange: t, targetSelectionRange: o, originSelectionRange: s };
|
126
|
-
}
|
127
|
-
e.create = r;
|
128
|
-
function i(n) {
|
129
|
-
let t = n;
|
130
|
-
return a.objectLiteral(t) && m.is(t.targetRange) && a.string(t.targetUri) && m.is(t.targetSelectionRange) && (m.is(t.originSelectionRange) || a.undefined(t.originSelectionRange));
|
131
|
-
}
|
132
|
-
e.is = i;
|
133
|
-
})(de || (de = {}));
|
134
|
-
var Y;
|
135
|
-
(function(e) {
|
136
|
-
function r(n, t, o, s) {
|
137
|
-
return {
|
138
|
-
red: n,
|
139
|
-
green: t,
|
140
|
-
blue: o,
|
141
|
-
alpha: s
|
142
|
-
};
|
143
|
-
}
|
144
|
-
e.create = r;
|
145
|
-
function i(n) {
|
146
|
-
const t = n;
|
147
|
-
return a.objectLiteral(t) && a.numberRange(t.red, 0, 1) && a.numberRange(t.green, 0, 1) && a.numberRange(t.blue, 0, 1) && a.numberRange(t.alpha, 0, 1);
|
148
|
-
}
|
149
|
-
e.is = i;
|
150
|
-
})(Y || (Y = {}));
|
151
|
-
var ge;
|
152
|
-
(function(e) {
|
153
|
-
function r(n, t) {
|
154
|
-
return {
|
155
|
-
range: n,
|
156
|
-
color: t
|
157
|
-
};
|
158
|
-
}
|
159
|
-
e.create = r;
|
160
|
-
function i(n) {
|
161
|
-
const t = n;
|
162
|
-
return a.objectLiteral(t) && m.is(t.range) && Y.is(t.color);
|
163
|
-
}
|
164
|
-
e.is = i;
|
165
|
-
})(ge || (ge = {}));
|
166
|
-
var pe;
|
167
|
-
(function(e) {
|
168
|
-
function r(n, t, o) {
|
169
|
-
return {
|
170
|
-
label: n,
|
171
|
-
textEdit: t,
|
172
|
-
additionalTextEdits: o
|
173
|
-
};
|
174
|
-
}
|
175
|
-
e.create = r;
|
176
|
-
function i(n) {
|
177
|
-
const t = n;
|
178
|
-
return a.objectLiteral(t) && a.string(t.label) && (a.undefined(t.textEdit) || T.is(t)) && (a.undefined(t.additionalTextEdits) || a.typedArray(t.additionalTextEdits, T.is));
|
179
|
-
}
|
180
|
-
e.is = i;
|
181
|
-
})(pe || (pe = {}));
|
182
|
-
var P;
|
183
|
-
(function(e) {
|
184
|
-
e.Comment = "comment", e.Imports = "imports", e.Region = "region";
|
185
|
-
})(P || (P = {}));
|
186
|
-
var ve;
|
187
|
-
(function(e) {
|
188
|
-
function r(n, t, o, s, u, g) {
|
189
|
-
const c = {
|
190
|
-
startLine: n,
|
191
|
-
endLine: t
|
192
|
-
};
|
193
|
-
return a.defined(o) && (c.startCharacter = o), a.defined(s) && (c.endCharacter = s), a.defined(u) && (c.kind = u), a.defined(g) && (c.collapsedText = g), c;
|
194
|
-
}
|
195
|
-
e.create = r;
|
196
|
-
function i(n) {
|
197
|
-
const t = n;
|
198
|
-
return a.objectLiteral(t) && a.uinteger(t.startLine) && a.uinteger(t.startLine) && (a.undefined(t.startCharacter) || a.uinteger(t.startCharacter)) && (a.undefined(t.endCharacter) || a.uinteger(t.endCharacter)) && (a.undefined(t.kind) || a.string(t.kind));
|
199
|
-
}
|
200
|
-
e.is = i;
|
201
|
-
})(ve || (ve = {}));
|
202
|
-
var G;
|
203
|
-
(function(e) {
|
204
|
-
function r(n, t) {
|
205
|
-
return {
|
206
|
-
location: n,
|
207
|
-
message: t
|
208
|
-
};
|
209
|
-
}
|
210
|
-
e.create = r;
|
211
|
-
function i(n) {
|
212
|
-
let t = n;
|
213
|
-
return a.defined(t) && H.is(t.location) && a.string(t.message);
|
214
|
-
}
|
215
|
-
e.is = i;
|
216
|
-
})(G || (G = {}));
|
217
|
-
var F;
|
218
|
-
(function(e) {
|
219
|
-
e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
|
220
|
-
})(F || (F = {}));
|
221
|
-
var me;
|
222
|
-
(function(e) {
|
223
|
-
e.Unnecessary = 1, e.Deprecated = 2;
|
224
|
-
})(me || (me = {}));
|
225
|
-
var he;
|
226
|
-
(function(e) {
|
227
|
-
function r(i) {
|
228
|
-
const n = i;
|
229
|
-
return a.objectLiteral(n) && a.string(n.href);
|
230
|
-
}
|
231
|
-
e.is = r;
|
232
|
-
})(he || (he = {}));
|
233
|
-
var z;
|
234
|
-
(function(e) {
|
235
|
-
function r(n, t, o, s, u, g) {
|
236
|
-
let c = { range: n, message: t };
|
237
|
-
return a.defined(o) && (c.severity = o), a.defined(s) && (c.code = s), a.defined(u) && (c.source = u), a.defined(g) && (c.relatedInformation = g), c;
|
238
|
-
}
|
239
|
-
e.create = r;
|
240
|
-
function i(n) {
|
241
|
-
var t;
|
242
|
-
let o = n;
|
243
|
-
return a.defined(o) && m.is(o.range) && a.string(o.message) && (a.number(o.severity) || a.undefined(o.severity)) && (a.integer(o.code) || a.string(o.code) || a.undefined(o.code)) && (a.undefined(o.codeDescription) || a.string((t = o.codeDescription) === null || t === void 0 ? void 0 : t.href)) && (a.string(o.source) || a.undefined(o.source)) && (a.undefined(o.relatedInformation) || a.typedArray(o.relatedInformation, G.is));
|
244
|
-
}
|
245
|
-
e.is = i;
|
246
|
-
})(z || (z = {}));
|
247
|
-
var U;
|
248
|
-
(function(e) {
|
249
|
-
function r(n, t, ...o) {
|
250
|
-
let s = { title: n, command: t };
|
251
|
-
return a.defined(o) && o.length > 0 && (s.arguments = o), s;
|
252
|
-
}
|
253
|
-
e.create = r;
|
254
|
-
function i(n) {
|
255
|
-
let t = n;
|
256
|
-
return a.defined(t) && a.string(t.title) && a.string(t.command);
|
257
|
-
}
|
258
|
-
e.is = i;
|
259
|
-
})(U || (U = {}));
|
260
|
-
var T;
|
261
|
-
(function(e) {
|
262
|
-
function r(o, s) {
|
263
|
-
return { range: o, newText: s };
|
264
|
-
}
|
265
|
-
e.replace = r;
|
266
|
-
function i(o, s) {
|
267
|
-
return { range: { start: o, end: o }, newText: s };
|
268
|
-
}
|
269
|
-
e.insert = i;
|
270
|
-
function n(o) {
|
271
|
-
return { range: o, newText: "" };
|
272
|
-
}
|
273
|
-
e.del = n;
|
274
|
-
function t(o) {
|
275
|
-
const s = o;
|
276
|
-
return a.objectLiteral(s) && a.string(s.newText) && m.is(s.range);
|
277
|
-
}
|
278
|
-
e.is = t;
|
279
|
-
})(T || (T = {}));
|
280
|
-
var Z;
|
281
|
-
(function(e) {
|
282
|
-
function r(n, t, o) {
|
283
|
-
const s = { label: n };
|
284
|
-
return t !== void 0 && (s.needsConfirmation = t), o !== void 0 && (s.description = o), s;
|
285
|
-
}
|
286
|
-
e.create = r;
|
287
|
-
function i(n) {
|
288
|
-
const t = n;
|
289
|
-
return a.objectLiteral(t) && a.string(t.label) && (a.boolean(t.needsConfirmation) || t.needsConfirmation === void 0) && (a.string(t.description) || t.description === void 0);
|
290
|
-
}
|
291
|
-
e.is = i;
|
292
|
-
})(Z || (Z = {}));
|
293
|
-
var j;
|
294
|
-
(function(e) {
|
295
|
-
function r(i) {
|
296
|
-
const n = i;
|
297
|
-
return a.string(n);
|
298
|
-
}
|
299
|
-
e.is = r;
|
300
|
-
})(j || (j = {}));
|
301
|
-
var _e;
|
302
|
-
(function(e) {
|
303
|
-
function r(o, s, u) {
|
304
|
-
return { range: o, newText: s, annotationId: u };
|
305
|
-
}
|
306
|
-
e.replace = r;
|
307
|
-
function i(o, s, u) {
|
308
|
-
return { range: { start: o, end: o }, newText: s, annotationId: u };
|
309
|
-
}
|
310
|
-
e.insert = i;
|
311
|
-
function n(o, s) {
|
312
|
-
return { range: o, newText: "", annotationId: s };
|
313
|
-
}
|
314
|
-
e.del = n;
|
315
|
-
function t(o) {
|
316
|
-
const s = o;
|
317
|
-
return T.is(s) && (Z.is(s.annotationId) || j.is(s.annotationId));
|
318
|
-
}
|
319
|
-
e.is = t;
|
320
|
-
})(_e || (_e = {}));
|
321
|
-
var K;
|
322
|
-
(function(e) {
|
323
|
-
function r(n, t) {
|
324
|
-
return { textDocument: n, edits: t };
|
325
|
-
}
|
326
|
-
e.create = r;
|
327
|
-
function i(n) {
|
328
|
-
let t = n;
|
329
|
-
return a.defined(t) && re.is(t.textDocument) && Array.isArray(t.edits);
|
330
|
-
}
|
331
|
-
e.is = i;
|
332
|
-
})(K || (K = {}));
|
333
|
-
var C;
|
334
|
-
(function(e) {
|
335
|
-
function r(n, t, o) {
|
336
|
-
let s = {
|
337
|
-
kind: "create",
|
338
|
-
uri: n
|
339
|
-
};
|
340
|
-
return t !== void 0 && (t.overwrite !== void 0 || t.ignoreIfExists !== void 0) && (s.options = t), o !== void 0 && (s.annotationId = o), s;
|
341
|
-
}
|
342
|
-
e.create = r;
|
343
|
-
function i(n) {
|
344
|
-
let t = n;
|
345
|
-
return t && t.kind === "create" && a.string(t.uri) && (t.options === void 0 || (t.options.overwrite === void 0 || a.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || a.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || j.is(t.annotationId));
|
346
|
-
}
|
347
|
-
e.is = i;
|
348
|
-
})(C || (C = {}));
|
349
|
-
var ee;
|
350
|
-
(function(e) {
|
351
|
-
function r(n, t, o, s) {
|
352
|
-
let u = {
|
353
|
-
kind: "rename",
|
354
|
-
oldUri: n,
|
355
|
-
newUri: t
|
356
|
-
};
|
357
|
-
return o !== void 0 && (o.overwrite !== void 0 || o.ignoreIfExists !== void 0) && (u.options = o), s !== void 0 && (u.annotationId = s), u;
|
358
|
-
}
|
359
|
-
e.create = r;
|
360
|
-
function i(n) {
|
361
|
-
let t = n;
|
362
|
-
return t && t.kind === "rename" && a.string(t.oldUri) && a.string(t.newUri) && (t.options === void 0 || (t.options.overwrite === void 0 || a.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || a.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || j.is(t.annotationId));
|
363
|
-
}
|
364
|
-
e.is = i;
|
365
|
-
})(ee || (ee = {}));
|
366
|
-
var te;
|
367
|
-
(function(e) {
|
368
|
-
function r(n, t, o) {
|
369
|
-
let s = {
|
370
|
-
kind: "delete",
|
371
|
-
uri: n
|
372
|
-
};
|
373
|
-
return t !== void 0 && (t.recursive !== void 0 || t.ignoreIfNotExists !== void 0) && (s.options = t), o !== void 0 && (s.annotationId = o), s;
|
374
|
-
}
|
375
|
-
e.create = r;
|
376
|
-
function i(n) {
|
377
|
-
let t = n;
|
378
|
-
return t && t.kind === "delete" && a.string(t.uri) && (t.options === void 0 || (t.options.recursive === void 0 || a.boolean(t.options.recursive)) && (t.options.ignoreIfNotExists === void 0 || a.boolean(t.options.ignoreIfNotExists))) && (t.annotationId === void 0 || j.is(t.annotationId));
|
379
|
-
}
|
380
|
-
e.is = i;
|
381
|
-
})(te || (te = {}));
|
382
|
-
var ne;
|
383
|
-
(function(e) {
|
384
|
-
function r(i) {
|
385
|
-
let n = i;
|
386
|
-
return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((t) => a.string(t.kind) ? C.is(t) || ee.is(t) || te.is(t) : K.is(t)));
|
387
|
-
}
|
388
|
-
e.is = r;
|
389
|
-
})(ne || (ne = {}));
|
390
|
-
var ke;
|
391
|
-
(function(e) {
|
392
|
-
function r(n) {
|
393
|
-
return { uri: n };
|
394
|
-
}
|
395
|
-
e.create = r;
|
396
|
-
function i(n) {
|
397
|
-
let t = n;
|
398
|
-
return a.defined(t) && a.string(t.uri);
|
399
|
-
}
|
400
|
-
e.is = i;
|
401
|
-
})(ke || (ke = {}));
|
402
|
-
var be;
|
403
|
-
(function(e) {
|
404
|
-
function r(n, t) {
|
405
|
-
return { uri: n, version: t };
|
406
|
-
}
|
407
|
-
e.create = r;
|
408
|
-
function i(n) {
|
409
|
-
let t = n;
|
410
|
-
return a.defined(t) && a.string(t.uri) && a.integer(t.version);
|
411
|
-
}
|
412
|
-
e.is = i;
|
413
|
-
})(be || (be = {}));
|
414
|
-
var re;
|
415
|
-
(function(e) {
|
416
|
-
function r(n, t) {
|
417
|
-
return { uri: n, version: t };
|
418
|
-
}
|
419
|
-
e.create = r;
|
420
|
-
function i(n) {
|
421
|
-
let t = n;
|
422
|
-
return a.defined(t) && a.string(t.uri) && (t.version === null || a.integer(t.version));
|
423
|
-
}
|
424
|
-
e.is = i;
|
425
|
-
})(re || (re = {}));
|
426
|
-
var we;
|
427
|
-
(function(e) {
|
428
|
-
function r(n, t, o, s) {
|
429
|
-
return { uri: n, languageId: t, version: o, text: s };
|
430
|
-
}
|
431
|
-
e.create = r;
|
432
|
-
function i(n) {
|
433
|
-
let t = n;
|
434
|
-
return a.defined(t) && a.string(t.uri) && a.string(t.languageId) && a.integer(t.version) && a.string(t.text);
|
435
|
-
}
|
436
|
-
e.is = i;
|
437
|
-
})(we || (we = {}));
|
438
|
-
var ie;
|
439
|
-
(function(e) {
|
440
|
-
e.PlainText = "plaintext", e.Markdown = "markdown";
|
441
|
-
function r(i) {
|
442
|
-
const n = i;
|
443
|
-
return n === e.PlainText || n === e.Markdown;
|
444
|
-
}
|
445
|
-
e.is = r;
|
446
|
-
})(ie || (ie = {}));
|
447
|
-
var S;
|
448
|
-
(function(e) {
|
449
|
-
function r(i) {
|
450
|
-
const n = i;
|
451
|
-
return a.objectLiteral(i) && ie.is(n.kind) && a.string(n.value);
|
452
|
-
}
|
453
|
-
e.is = r;
|
454
|
-
})(S || (S = {}));
|
455
|
-
var h;
|
456
|
-
(function(e) {
|
457
|
-
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
|
458
|
-
})(h || (h = {}));
|
459
|
-
var oe;
|
460
|
-
(function(e) {
|
461
|
-
e.PlainText = 1, e.Snippet = 2;
|
462
|
-
})(oe || (oe = {}));
|
463
|
-
var Ae;
|
464
|
-
(function(e) {
|
465
|
-
e.Deprecated = 1;
|
466
|
-
})(Ae || (Ae = {}));
|
467
|
-
var Ie;
|
468
|
-
(function(e) {
|
469
|
-
function r(n, t, o) {
|
470
|
-
return { newText: n, insert: t, replace: o };
|
471
|
-
}
|
472
|
-
e.create = r;
|
473
|
-
function i(n) {
|
474
|
-
const t = n;
|
475
|
-
return t && a.string(t.newText) && m.is(t.insert) && m.is(t.replace);
|
476
|
-
}
|
477
|
-
e.is = i;
|
478
|
-
})(Ie || (Ie = {}));
|
479
|
-
var Ee;
|
480
|
-
(function(e) {
|
481
|
-
e.asIs = 1, e.adjustIndentation = 2;
|
482
|
-
})(Ee || (Ee = {}));
|
483
|
-
var Le;
|
484
|
-
(function(e) {
|
485
|
-
function r(i) {
|
486
|
-
const n = i;
|
487
|
-
return n && (a.string(n.detail) || n.detail === void 0) && (a.string(n.description) || n.description === void 0);
|
488
|
-
}
|
489
|
-
e.is = r;
|
490
|
-
})(Le || (Le = {}));
|
491
|
-
var Oe;
|
492
|
-
(function(e) {
|
493
|
-
function r(i) {
|
494
|
-
return { label: i };
|
495
|
-
}
|
496
|
-
e.create = r;
|
497
|
-
})(Oe || (Oe = {}));
|
498
|
-
var Ne;
|
499
|
-
(function(e) {
|
500
|
-
function r(i, n) {
|
501
|
-
return { items: i || [], isIncomplete: !!n };
|
502
|
-
}
|
503
|
-
e.create = r;
|
504
|
-
})(Ne || (Ne = {}));
|
505
|
-
var X;
|
506
|
-
(function(e) {
|
507
|
-
function r(n) {
|
508
|
-
return n.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
509
|
-
}
|
510
|
-
e.fromPlainText = r;
|
511
|
-
function i(n) {
|
512
|
-
const t = n;
|
513
|
-
return a.string(t) || a.objectLiteral(t) && a.string(t.language) && a.string(t.value);
|
514
|
-
}
|
515
|
-
e.is = i;
|
516
|
-
})(X || (X = {}));
|
517
|
-
var Re;
|
518
|
-
(function(e) {
|
519
|
-
function r(i) {
|
520
|
-
let n = i;
|
521
|
-
return !!n && a.objectLiteral(n) && (S.is(n.contents) || X.is(n.contents) || a.typedArray(n.contents, X.is)) && (i.range === void 0 || m.is(i.range));
|
522
|
-
}
|
523
|
-
e.is = r;
|
524
|
-
})(Re || (Re = {}));
|
525
|
-
var Me;
|
526
|
-
(function(e) {
|
527
|
-
function r(i, n) {
|
528
|
-
return n ? { label: i, documentation: n } : { label: i };
|
529
|
-
}
|
530
|
-
e.create = r;
|
531
|
-
})(Me || (Me = {}));
|
532
|
-
var De;
|
533
|
-
(function(e) {
|
534
|
-
function r(i, n, ...t) {
|
535
|
-
let o = { label: i };
|
536
|
-
return a.defined(n) && (o.documentation = n), a.defined(t) ? o.parameters = t : o.parameters = [], o;
|
537
|
-
}
|
538
|
-
e.create = r;
|
539
|
-
})(De || (De = {}));
|
540
|
-
var V;
|
541
|
-
(function(e) {
|
542
|
-
e.Text = 1, e.Read = 2, e.Write = 3;
|
543
|
-
})(V || (V = {}));
|
544
|
-
var Fe;
|
545
|
-
(function(e) {
|
546
|
-
function r(i, n) {
|
547
|
-
let t = { range: i };
|
548
|
-
return a.number(n) && (t.kind = n), t;
|
549
|
-
}
|
550
|
-
e.create = r;
|
551
|
-
})(Fe || (Fe = {}));
|
552
|
-
var _;
|
553
|
-
(function(e) {
|
554
|
-
e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26;
|
555
|
-
})(_ || (_ = {}));
|
556
|
-
var Ue;
|
557
|
-
(function(e) {
|
558
|
-
e.Deprecated = 1;
|
559
|
-
})(Ue || (Ue = {}));
|
560
|
-
var Te;
|
561
|
-
(function(e) {
|
562
|
-
function r(i, n, t, o, s) {
|
563
|
-
let u = {
|
564
|
-
name: i,
|
565
|
-
kind: n,
|
566
|
-
location: { uri: o, range: t }
|
567
|
-
};
|
568
|
-
return s && (u.containerName = s), u;
|
569
|
-
}
|
570
|
-
e.create = r;
|
571
|
-
})(Te || (Te = {}));
|
572
|
-
var je;
|
573
|
-
(function(e) {
|
574
|
-
function r(i, n, t, o) {
|
575
|
-
return o !== void 0 ? { name: i, kind: n, location: { uri: t, range: o } } : { name: i, kind: n, location: { uri: t } };
|
576
|
-
}
|
577
|
-
e.create = r;
|
578
|
-
})(je || (je = {}));
|
579
|
-
var xe;
|
580
|
-
(function(e) {
|
581
|
-
function r(n, t, o, s, u, g) {
|
582
|
-
let c = {
|
583
|
-
name: n,
|
584
|
-
detail: t,
|
585
|
-
kind: o,
|
586
|
-
range: s,
|
587
|
-
selectionRange: u
|
588
|
-
};
|
589
|
-
return g !== void 0 && (c.children = g), c;
|
590
|
-
}
|
591
|
-
e.create = r;
|
592
|
-
function i(n) {
|
593
|
-
let t = n;
|
594
|
-
return t && a.string(t.name) && a.number(t.kind) && m.is(t.range) && m.is(t.selectionRange) && (t.detail === void 0 || a.string(t.detail)) && (t.deprecated === void 0 || a.boolean(t.deprecated)) && (t.children === void 0 || Array.isArray(t.children)) && (t.tags === void 0 || Array.isArray(t.tags));
|
595
|
-
}
|
596
|
-
e.is = i;
|
597
|
-
})(xe || (xe = {}));
|
598
|
-
var ye;
|
599
|
-
(function(e) {
|
600
|
-
e.Empty = "", e.QuickFix = "quickfix", e.Refactor = "refactor", e.RefactorExtract = "refactor.extract", e.RefactorInline = "refactor.inline", e.RefactorRewrite = "refactor.rewrite", e.Source = "source", e.SourceOrganizeImports = "source.organizeImports", e.SourceFixAll = "source.fixAll";
|
601
|
-
})(ye || (ye = {}));
|
602
|
-
var q;
|
603
|
-
(function(e) {
|
604
|
-
e.Invoked = 1, e.Automatic = 2;
|
605
|
-
})(q || (q = {}));
|
606
|
-
var Pe;
|
607
|
-
(function(e) {
|
608
|
-
function r(n, t, o) {
|
609
|
-
let s = { diagnostics: n };
|
610
|
-
return t != null && (s.only = t), o != null && (s.triggerKind = o), s;
|
611
|
-
}
|
612
|
-
e.create = r;
|
613
|
-
function i(n) {
|
614
|
-
let t = n;
|
615
|
-
return a.defined(t) && a.typedArray(t.diagnostics, z.is) && (t.only === void 0 || a.typedArray(t.only, a.string)) && (t.triggerKind === void 0 || t.triggerKind === q.Invoked || t.triggerKind === q.Automatic);
|
616
|
-
}
|
617
|
-
e.is = i;
|
618
|
-
})(Pe || (Pe = {}));
|
619
|
-
var Ve;
|
620
|
-
(function(e) {
|
621
|
-
function r(n, t, o) {
|
622
|
-
let s = { title: n }, u = !0;
|
623
|
-
return typeof t == "string" ? (u = !1, s.kind = t) : U.is(t) ? s.command = t : s.edit = t, u && o !== void 0 && (s.kind = o), s;
|
624
|
-
}
|
625
|
-
e.create = r;
|
626
|
-
function i(n) {
|
627
|
-
let t = n;
|
628
|
-
return t && a.string(t.title) && (t.diagnostics === void 0 || a.typedArray(t.diagnostics, z.is)) && (t.kind === void 0 || a.string(t.kind)) && (t.edit !== void 0 || t.command !== void 0) && (t.command === void 0 || U.is(t.command)) && (t.isPreferred === void 0 || a.boolean(t.isPreferred)) && (t.edit === void 0 || ne.is(t.edit));
|
629
|
-
}
|
630
|
-
e.is = i;
|
631
|
-
})(Ve || (Ve = {}));
|
632
|
-
var Se;
|
633
|
-
(function(e) {
|
634
|
-
function r(n, t) {
|
635
|
-
let o = { range: n };
|
636
|
-
return a.defined(t) && (o.data = t), o;
|
637
|
-
}
|
638
|
-
e.create = r;
|
639
|
-
function i(n) {
|
640
|
-
let t = n;
|
641
|
-
return a.defined(t) && m.is(t.range) && (a.undefined(t.command) || U.is(t.command));
|
642
|
-
}
|
643
|
-
e.is = i;
|
644
|
-
})(Se || (Se = {}));
|
645
|
-
var Be;
|
646
|
-
(function(e) {
|
647
|
-
function r(n, t) {
|
648
|
-
return { tabSize: n, insertSpaces: t };
|
649
|
-
}
|
650
|
-
e.create = r;
|
651
|
-
function i(n) {
|
652
|
-
let t = n;
|
653
|
-
return a.defined(t) && a.uinteger(t.tabSize) && a.boolean(t.insertSpaces);
|
654
|
-
}
|
655
|
-
e.is = i;
|
656
|
-
})(Be || (Be = {}));
|
657
|
-
var We;
|
658
|
-
(function(e) {
|
659
|
-
function r(n, t, o) {
|
660
|
-
return { range: n, target: t, data: o };
|
661
|
-
}
|
662
|
-
e.create = r;
|
663
|
-
function i(n) {
|
664
|
-
let t = n;
|
665
|
-
return a.defined(t) && m.is(t.range) && (a.undefined(t.target) || a.string(t.target));
|
666
|
-
}
|
667
|
-
e.is = i;
|
668
|
-
})(We || (We = {}));
|
669
|
-
var He;
|
670
|
-
(function(e) {
|
671
|
-
function r(n, t) {
|
672
|
-
return { range: n, parent: t };
|
673
|
-
}
|
674
|
-
e.create = r;
|
675
|
-
function i(n) {
|
676
|
-
let t = n;
|
677
|
-
return a.objectLiteral(t) && m.is(t.range) && (t.parent === void 0 || e.is(t.parent));
|
678
|
-
}
|
679
|
-
e.is = i;
|
680
|
-
})(He || (He = {}));
|
681
|
-
var ze;
|
682
|
-
(function(e) {
|
683
|
-
e.namespace = "namespace", e.type = "type", e.class = "class", e.enum = "enum", e.interface = "interface", e.struct = "struct", e.typeParameter = "typeParameter", e.parameter = "parameter", e.variable = "variable", e.property = "property", e.enumMember = "enumMember", e.event = "event", e.function = "function", e.method = "method", e.macro = "macro", e.keyword = "keyword", e.modifier = "modifier", e.comment = "comment", e.string = "string", e.number = "number", e.regexp = "regexp", e.operator = "operator", e.decorator = "decorator";
|
684
|
-
})(ze || (ze = {}));
|
685
|
-
var Xe;
|
686
|
-
(function(e) {
|
687
|
-
e.declaration = "declaration", e.definition = "definition", e.readonly = "readonly", e.static = "static", e.deprecated = "deprecated", e.abstract = "abstract", e.async = "async", e.modification = "modification", e.documentation = "documentation", e.defaultLibrary = "defaultLibrary";
|
688
|
-
})(Xe || (Xe = {}));
|
689
|
-
var qe;
|
690
|
-
(function(e) {
|
691
|
-
function r(i) {
|
692
|
-
const n = i;
|
693
|
-
return a.objectLiteral(n) && (n.resultId === void 0 || typeof n.resultId == "string") && Array.isArray(n.data) && (n.data.length === 0 || typeof n.data[0] == "number");
|
694
|
-
}
|
695
|
-
e.is = r;
|
696
|
-
})(qe || (qe = {}));
|
697
|
-
var Je;
|
698
|
-
(function(e) {
|
699
|
-
function r(n, t) {
|
700
|
-
return { range: n, text: t };
|
701
|
-
}
|
702
|
-
e.create = r;
|
703
|
-
function i(n) {
|
704
|
-
const t = n;
|
705
|
-
return t != null && m.is(t.range) && a.string(t.text);
|
706
|
-
}
|
707
|
-
e.is = i;
|
708
|
-
})(Je || (Je = {}));
|
709
|
-
var $e;
|
710
|
-
(function(e) {
|
711
|
-
function r(n, t, o) {
|
712
|
-
return { range: n, variableName: t, caseSensitiveLookup: o };
|
713
|
-
}
|
714
|
-
e.create = r;
|
715
|
-
function i(n) {
|
716
|
-
const t = n;
|
717
|
-
return t != null && m.is(t.range) && a.boolean(t.caseSensitiveLookup) && (a.string(t.variableName) || t.variableName === void 0);
|
718
|
-
}
|
719
|
-
e.is = i;
|
720
|
-
})($e || ($e = {}));
|
721
|
-
var Qe;
|
722
|
-
(function(e) {
|
723
|
-
function r(n, t) {
|
724
|
-
return { range: n, expression: t };
|
725
|
-
}
|
726
|
-
e.create = r;
|
727
|
-
function i(n) {
|
728
|
-
const t = n;
|
729
|
-
return t != null && m.is(t.range) && (a.string(t.expression) || t.expression === void 0);
|
730
|
-
}
|
731
|
-
e.is = i;
|
732
|
-
})(Qe || (Qe = {}));
|
733
|
-
var Ye;
|
734
|
-
(function(e) {
|
735
|
-
function r(n, t) {
|
736
|
-
return { frameId: n, stoppedLocation: t };
|
737
|
-
}
|
738
|
-
e.create = r;
|
739
|
-
function i(n) {
|
740
|
-
const t = n;
|
741
|
-
return a.defined(t) && m.is(n.stoppedLocation);
|
742
|
-
}
|
743
|
-
e.is = i;
|
744
|
-
})(Ye || (Ye = {}));
|
745
|
-
var se;
|
746
|
-
(function(e) {
|
747
|
-
e.Type = 1, e.Parameter = 2;
|
748
|
-
function r(i) {
|
749
|
-
return i === 1 || i === 2;
|
750
|
-
}
|
751
|
-
e.is = r;
|
752
|
-
})(se || (se = {}));
|
753
|
-
var ae;
|
754
|
-
(function(e) {
|
755
|
-
function r(n) {
|
756
|
-
return { value: n };
|
757
|
-
}
|
758
|
-
e.create = r;
|
759
|
-
function i(n) {
|
760
|
-
const t = n;
|
761
|
-
return a.objectLiteral(t) && (t.tooltip === void 0 || a.string(t.tooltip) || S.is(t.tooltip)) && (t.location === void 0 || H.is(t.location)) && (t.command === void 0 || U.is(t.command));
|
762
|
-
}
|
763
|
-
e.is = i;
|
764
|
-
})(ae || (ae = {}));
|
765
|
-
var Ge;
|
766
|
-
(function(e) {
|
767
|
-
function r(n, t, o) {
|
768
|
-
const s = { position: n, label: t };
|
769
|
-
return o !== void 0 && (s.kind = o), s;
|
770
|
-
}
|
771
|
-
e.create = r;
|
772
|
-
function i(n) {
|
773
|
-
const t = n;
|
774
|
-
return a.objectLiteral(t) && O.is(t.position) && (a.string(t.label) || a.typedArray(t.label, ae.is)) && (t.kind === void 0 || se.is(t.kind)) && t.textEdits === void 0 || a.typedArray(t.textEdits, T.is) && (t.tooltip === void 0 || a.string(t.tooltip) || S.is(t.tooltip)) && (t.paddingLeft === void 0 || a.boolean(t.paddingLeft)) && (t.paddingRight === void 0 || a.boolean(t.paddingRight));
|
775
|
-
}
|
776
|
-
e.is = i;
|
777
|
-
})(Ge || (Ge = {}));
|
778
|
-
var Ze;
|
779
|
-
(function(e) {
|
780
|
-
function r(i) {
|
781
|
-
return { kind: "snippet", value: i };
|
782
|
-
}
|
783
|
-
e.createSnippet = r;
|
784
|
-
})(Ze || (Ze = {}));
|
785
|
-
var Ke;
|
786
|
-
(function(e) {
|
787
|
-
function r(i, n, t, o) {
|
788
|
-
return { insertText: i, filterText: n, range: t, command: o };
|
789
|
-
}
|
790
|
-
e.create = r;
|
791
|
-
})(Ke || (Ke = {}));
|
792
|
-
var Ce;
|
793
|
-
(function(e) {
|
794
|
-
function r(i) {
|
795
|
-
return { items: i };
|
796
|
-
}
|
797
|
-
e.create = r;
|
798
|
-
})(Ce || (Ce = {}));
|
799
|
-
var et;
|
800
|
-
(function(e) {
|
801
|
-
e.Invoked = 0, e.Automatic = 1;
|
802
|
-
})(et || (et = {}));
|
803
|
-
var tt;
|
804
|
-
(function(e) {
|
805
|
-
function r(i, n) {
|
806
|
-
return { range: i, text: n };
|
807
|
-
}
|
808
|
-
e.create = r;
|
809
|
-
})(tt || (tt = {}));
|
810
|
-
var nt;
|
811
|
-
(function(e) {
|
812
|
-
function r(i, n) {
|
813
|
-
return { triggerKind: i, selectedCompletionInfo: n };
|
814
|
-
}
|
815
|
-
e.create = r;
|
816
|
-
})(nt || (nt = {}));
|
817
|
-
var rt;
|
818
|
-
(function(e) {
|
819
|
-
function r(i) {
|
820
|
-
const n = i;
|
821
|
-
return a.objectLiteral(n) && Q.is(n.uri) && a.string(n.name);
|
822
|
-
}
|
823
|
-
e.is = r;
|
824
|
-
})(rt || (rt = {}));
|
825
|
-
var it;
|
826
|
-
(function(e) {
|
827
|
-
function r(o, s, u, g) {
|
828
|
-
return new Tt(o, s, u, g);
|
829
|
-
}
|
830
|
-
e.create = r;
|
831
|
-
function i(o) {
|
832
|
-
let s = o;
|
833
|
-
return !!(a.defined(s) && a.string(s.uri) && (a.undefined(s.languageId) || a.string(s.languageId)) && a.uinteger(s.lineCount) && a.func(s.getText) && a.func(s.positionAt) && a.func(s.offsetAt));
|
834
|
-
}
|
835
|
-
e.is = i;
|
836
|
-
function n(o, s) {
|
837
|
-
let u = o.getText(), g = t(s, (v, d) => {
|
838
|
-
let k = v.range.start.line - d.range.start.line;
|
839
|
-
return k === 0 ? v.range.start.character - d.range.start.character : k;
|
840
|
-
}), c = u.length;
|
841
|
-
for (let v = g.length - 1; v >= 0; v--) {
|
842
|
-
let d = g[v], k = o.offsetAt(d.range.start), p = o.offsetAt(d.range.end);
|
843
|
-
if (p <= c)
|
844
|
-
u = u.substring(0, k) + d.newText + u.substring(p, u.length);
|
845
|
-
else
|
846
|
-
throw new Error("Overlapping edit");
|
847
|
-
c = k;
|
848
|
-
}
|
849
|
-
return u;
|
850
|
-
}
|
851
|
-
e.applyEdits = n;
|
852
|
-
function t(o, s) {
|
853
|
-
if (o.length <= 1)
|
854
|
-
return o;
|
855
|
-
const u = o.length / 2 | 0, g = o.slice(0, u), c = o.slice(u);
|
856
|
-
t(g, s), t(c, s);
|
857
|
-
let v = 0, d = 0, k = 0;
|
858
|
-
for (; v < g.length && d < c.length; )
|
859
|
-
s(g[v], c[d]) <= 0 ? o[k++] = g[v++] : o[k++] = c[d++];
|
860
|
-
for (; v < g.length; )
|
861
|
-
o[k++] = g[v++];
|
862
|
-
for (; d < c.length; )
|
863
|
-
o[k++] = c[d++];
|
864
|
-
return o;
|
865
|
-
}
|
866
|
-
})(it || (it = {}));
|
867
|
-
var Tt = class {
|
868
|
-
constructor(e, r, i, n) {
|
869
|
-
this._uri = e, this._languageId = r, this._version = i, this._content = n, this._lineOffsets = void 0;
|
870
|
-
}
|
871
|
-
get uri() {
|
872
|
-
return this._uri;
|
873
|
-
}
|
874
|
-
get languageId() {
|
875
|
-
return this._languageId;
|
876
|
-
}
|
877
|
-
get version() {
|
878
|
-
return this._version;
|
879
|
-
}
|
880
|
-
getText(e) {
|
881
|
-
if (e) {
|
882
|
-
let r = this.offsetAt(e.start), i = this.offsetAt(e.end);
|
883
|
-
return this._content.substring(r, i);
|
884
|
-
}
|
885
|
-
return this._content;
|
886
|
-
}
|
887
|
-
update(e, r) {
|
888
|
-
this._content = e.text, this._version = r, this._lineOffsets = void 0;
|
889
|
-
}
|
890
|
-
getLineOffsets() {
|
891
|
-
if (this._lineOffsets === void 0) {
|
892
|
-
let e = [], r = this._content, i = !0;
|
893
|
-
for (let n = 0; n < r.length; n++) {
|
894
|
-
i && (e.push(n), i = !1);
|
895
|
-
let t = r.charAt(n);
|
896
|
-
i = t === "\r" || t === `
|
897
|
-
`, t === "\r" && n + 1 < r.length && r.charAt(n + 1) === `
|
898
|
-
` && n++;
|
899
|
-
}
|
900
|
-
i && r.length > 0 && e.push(r.length), this._lineOffsets = e;
|
901
|
-
}
|
902
|
-
return this._lineOffsets;
|
903
|
-
}
|
904
|
-
positionAt(e) {
|
905
|
-
e = Math.max(Math.min(e, this._content.length), 0);
|
906
|
-
let r = this.getLineOffsets(), i = 0, n = r.length;
|
907
|
-
if (n === 0)
|
908
|
-
return O.create(0, e);
|
909
|
-
for (; i < n; ) {
|
910
|
-
let o = Math.floor((i + n) / 2);
|
911
|
-
r[o] > e ? n = o : i = o + 1;
|
912
|
-
}
|
913
|
-
let t = i - 1;
|
914
|
-
return O.create(t, e - r[t]);
|
915
|
-
}
|
916
|
-
offsetAt(e) {
|
917
|
-
let r = this.getLineOffsets();
|
918
|
-
if (e.line >= r.length)
|
919
|
-
return this._content.length;
|
920
|
-
if (e.line < 0)
|
921
|
-
return 0;
|
922
|
-
let i = r[e.line], n = e.line + 1 < r.length ? r[e.line + 1] : this._content.length;
|
923
|
-
return Math.max(Math.min(i + e.character, n), i);
|
924
|
-
}
|
925
|
-
get lineCount() {
|
926
|
-
return this.getLineOffsets().length;
|
927
|
-
}
|
928
|
-
}, a;
|
929
|
-
(function(e) {
|
930
|
-
const r = Object.prototype.toString;
|
931
|
-
function i(p) {
|
932
|
-
return typeof p < "u";
|
933
|
-
}
|
934
|
-
e.defined = i;
|
935
|
-
function n(p) {
|
936
|
-
return typeof p > "u";
|
937
|
-
}
|
938
|
-
e.undefined = n;
|
939
|
-
function t(p) {
|
940
|
-
return p === !0 || p === !1;
|
941
|
-
}
|
942
|
-
e.boolean = t;
|
943
|
-
function o(p) {
|
944
|
-
return r.call(p) === "[object String]";
|
945
|
-
}
|
946
|
-
e.string = o;
|
947
|
-
function s(p) {
|
948
|
-
return r.call(p) === "[object Number]";
|
949
|
-
}
|
950
|
-
e.number = s;
|
951
|
-
function u(p, N, J) {
|
952
|
-
return r.call(p) === "[object Number]" && N <= p && p <= J;
|
953
|
-
}
|
954
|
-
e.numberRange = u;
|
955
|
-
function g(p) {
|
956
|
-
return r.call(p) === "[object Number]" && -2147483648 <= p && p <= 2147483647;
|
957
|
-
}
|
958
|
-
e.integer = g;
|
959
|
-
function c(p) {
|
960
|
-
return r.call(p) === "[object Number]" && 0 <= p && p <= 2147483647;
|
961
|
-
}
|
962
|
-
e.uinteger = c;
|
963
|
-
function v(p) {
|
964
|
-
return r.call(p) === "[object Function]";
|
965
|
-
}
|
966
|
-
e.func = v;
|
967
|
-
function d(p) {
|
968
|
-
return p !== null && typeof p == "object";
|
969
|
-
}
|
970
|
-
e.objectLiteral = d;
|
971
|
-
function k(p, N) {
|
972
|
-
return Array.isArray(p) && p.every(N);
|
973
|
-
}
|
974
|
-
e.typedArray = k;
|
975
|
-
})(a || (a = {}));
|
976
|
-
var jt = class {
|
977
|
-
constructor(e, r, i) {
|
978
|
-
this._languageId = e, this._worker = r, this._disposables = [], this._listener = /* @__PURE__ */ Object.create(null);
|
979
|
-
const n = (o) => {
|
980
|
-
let s = o.getLanguageId();
|
981
|
-
if (s !== this._languageId)
|
982
|
-
return;
|
983
|
-
let u;
|
984
|
-
this._listener[o.uri.toString()] = o.onDidChangeContent(() => {
|
985
|
-
window.clearTimeout(u), u = window.setTimeout(() => this._doValidate(o.uri, s), 500);
|
986
|
-
}), this._doValidate(o.uri, s);
|
987
|
-
}, t = (o) => {
|
988
|
-
f.editor.setModelMarkers(o, this._languageId, []);
|
989
|
-
let s = o.uri.toString(), u = this._listener[s];
|
990
|
-
u && (u.dispose(), delete this._listener[s]);
|
991
|
-
};
|
992
|
-
this._disposables.push(f.editor.onDidCreateModel(n)), this._disposables.push(f.editor.onWillDisposeModel(t)), this._disposables.push(
|
993
|
-
f.editor.onDidChangeModelLanguage((o) => {
|
994
|
-
t(o.model), n(o.model);
|
995
|
-
})
|
996
|
-
), this._disposables.push(
|
997
|
-
i((o) => {
|
998
|
-
f.editor.getModels().forEach((s) => {
|
999
|
-
s.getLanguageId() === this._languageId && (t(s), n(s));
|
1000
|
-
});
|
1001
|
-
})
|
1002
|
-
), this._disposables.push({
|
1003
|
-
dispose: () => {
|
1004
|
-
f.editor.getModels().forEach(t);
|
1005
|
-
for (let o in this._listener)
|
1006
|
-
this._listener[o].dispose();
|
1007
|
-
}
|
1008
|
-
}), f.editor.getModels().forEach(n);
|
1009
|
-
}
|
1010
|
-
dispose() {
|
1011
|
-
this._disposables.forEach((e) => e && e.dispose()), this._disposables.length = 0;
|
1012
|
-
}
|
1013
|
-
_doValidate(e, r) {
|
1014
|
-
this._worker(e).then((i) => i.doValidation(e.toString())).then((i) => {
|
1015
|
-
const n = i.map((o) => yt(e, o));
|
1016
|
-
let t = f.editor.getModel(e);
|
1017
|
-
t && t.getLanguageId() === r && f.editor.setModelMarkers(t, r, n);
|
1018
|
-
}).then(void 0, (i) => {
|
1019
|
-
console.error(i);
|
1020
|
-
});
|
1021
|
-
}
|
1022
|
-
};
|
1023
|
-
function xt(e) {
|
1024
|
-
switch (e) {
|
1025
|
-
case F.Error:
|
1026
|
-
return f.MarkerSeverity.Error;
|
1027
|
-
case F.Warning:
|
1028
|
-
return f.MarkerSeverity.Warning;
|
1029
|
-
case F.Information:
|
1030
|
-
return f.MarkerSeverity.Info;
|
1031
|
-
case F.Hint:
|
1032
|
-
return f.MarkerSeverity.Hint;
|
1033
|
-
default:
|
1034
|
-
return f.MarkerSeverity.Info;
|
1035
|
-
}
|
1036
|
-
}
|
1037
|
-
function yt(e, r) {
|
1038
|
-
let i = typeof r.code == "number" ? String(r.code) : r.code;
|
1039
|
-
return {
|
1040
|
-
severity: xt(r.severity),
|
1041
|
-
startLineNumber: r.range.start.line + 1,
|
1042
|
-
startColumn: r.range.start.character + 1,
|
1043
|
-
endLineNumber: r.range.end.line + 1,
|
1044
|
-
endColumn: r.range.end.character + 1,
|
1045
|
-
message: r.message,
|
1046
|
-
code: i,
|
1047
|
-
source: r.source
|
1048
|
-
};
|
1049
|
-
}
|
1050
|
-
var Pt = class {
|
1051
|
-
constructor(e, r) {
|
1052
|
-
this._worker = e, this._triggerCharacters = r;
|
1053
|
-
}
|
1054
|
-
get triggerCharacters() {
|
1055
|
-
return this._triggerCharacters;
|
1056
|
-
}
|
1057
|
-
provideCompletionItems(e, r, i, n) {
|
1058
|
-
const t = e.uri;
|
1059
|
-
return this._worker(t).then((o) => o.doComplete(t.toString(), R(r))).then((o) => {
|
1060
|
-
if (!o)
|
1061
|
-
return;
|
1062
|
-
const s = e.getWordUntilPosition(r), u = new f.Range(
|
1063
|
-
r.lineNumber,
|
1064
|
-
s.startColumn,
|
1065
|
-
r.lineNumber,
|
1066
|
-
s.endColumn
|
1067
|
-
), g = o.items.map((c) => {
|
1068
|
-
const v = {
|
1069
|
-
label: c.label,
|
1070
|
-
insertText: c.insertText || c.label,
|
1071
|
-
sortText: c.sortText,
|
1072
|
-
filterText: c.filterText,
|
1073
|
-
documentation: c.documentation,
|
1074
|
-
detail: c.detail,
|
1075
|
-
command: Bt(c.command),
|
1076
|
-
range: u,
|
1077
|
-
kind: St(c.kind)
|
1078
|
-
};
|
1079
|
-
return c.textEdit && (Vt(c.textEdit) ? v.range = {
|
1080
|
-
insert: w(c.textEdit.insert),
|
1081
|
-
replace: w(c.textEdit.replace)
|
1082
|
-
} : v.range = w(c.textEdit.range), v.insertText = c.textEdit.newText), c.additionalTextEdits && (v.additionalTextEdits = c.additionalTextEdits.map(B)), c.insertTextFormat === oe.Snippet && (v.insertTextRules = f.languages.CompletionItemInsertTextRule.InsertAsSnippet), v;
|
1083
|
-
});
|
1084
|
-
return {
|
1085
|
-
isIncomplete: o.isIncomplete,
|
1086
|
-
suggestions: g
|
1087
|
-
};
|
1088
|
-
});
|
1089
|
-
}
|
1090
|
-
};
|
1091
|
-
function R(e) {
|
1092
|
-
if (e)
|
1093
|
-
return { character: e.column - 1, line: e.lineNumber - 1 };
|
1094
|
-
}
|
1095
|
-
function pt(e) {
|
1096
|
-
if (e)
|
1097
|
-
return {
|
1098
|
-
start: {
|
1099
|
-
line: e.startLineNumber - 1,
|
1100
|
-
character: e.startColumn - 1
|
1101
|
-
},
|
1102
|
-
end: { line: e.endLineNumber - 1, character: e.endColumn - 1 }
|
1103
|
-
};
|
1104
|
-
}
|
1105
|
-
function w(e) {
|
1106
|
-
if (e)
|
1107
|
-
return new f.Range(
|
1108
|
-
e.start.line + 1,
|
1109
|
-
e.start.character + 1,
|
1110
|
-
e.end.line + 1,
|
1111
|
-
e.end.character + 1
|
1112
|
-
);
|
1113
|
-
}
|
1114
|
-
function Vt(e) {
|
1115
|
-
return typeof e.insert < "u" && typeof e.replace < "u";
|
1116
|
-
}
|
1117
|
-
function St(e) {
|
1118
|
-
const r = f.languages.CompletionItemKind;
|
1119
|
-
switch (e) {
|
1120
|
-
case h.Text:
|
1121
|
-
return r.Text;
|
1122
|
-
case h.Method:
|
1123
|
-
return r.Method;
|
1124
|
-
case h.Function:
|
1125
|
-
return r.Function;
|
1126
|
-
case h.Constructor:
|
1127
|
-
return r.Constructor;
|
1128
|
-
case h.Field:
|
1129
|
-
return r.Field;
|
1130
|
-
case h.Variable:
|
1131
|
-
return r.Variable;
|
1132
|
-
case h.Class:
|
1133
|
-
return r.Class;
|
1134
|
-
case h.Interface:
|
1135
|
-
return r.Interface;
|
1136
|
-
case h.Module:
|
1137
|
-
return r.Module;
|
1138
|
-
case h.Property:
|
1139
|
-
return r.Property;
|
1140
|
-
case h.Unit:
|
1141
|
-
return r.Unit;
|
1142
|
-
case h.Value:
|
1143
|
-
return r.Value;
|
1144
|
-
case h.Enum:
|
1145
|
-
return r.Enum;
|
1146
|
-
case h.Keyword:
|
1147
|
-
return r.Keyword;
|
1148
|
-
case h.Snippet:
|
1149
|
-
return r.Snippet;
|
1150
|
-
case h.Color:
|
1151
|
-
return r.Color;
|
1152
|
-
case h.File:
|
1153
|
-
return r.File;
|
1154
|
-
case h.Reference:
|
1155
|
-
return r.Reference;
|
1156
|
-
}
|
1157
|
-
return r.Property;
|
1158
|
-
}
|
1159
|
-
function B(e) {
|
1160
|
-
if (e)
|
1161
|
-
return {
|
1162
|
-
range: w(e.range),
|
1163
|
-
text: e.newText
|
1164
|
-
};
|
1165
|
-
}
|
1166
|
-
function Bt(e) {
|
1167
|
-
return e && e.command === "editor.action.triggerSuggest" ? { id: e.command, title: e.title, arguments: e.arguments } : void 0;
|
1168
|
-
}
|
1169
|
-
var Wt = class {
|
1170
|
-
constructor(e) {
|
1171
|
-
this._worker = e;
|
1172
|
-
}
|
1173
|
-
provideHover(e, r, i) {
|
1174
|
-
let n = e.uri;
|
1175
|
-
return this._worker(n).then((t) => t.doHover(n.toString(), R(r))).then((t) => {
|
1176
|
-
if (t)
|
1177
|
-
return {
|
1178
|
-
range: w(t.range),
|
1179
|
-
contents: zt(t.contents)
|
1180
|
-
};
|
1181
|
-
});
|
1182
|
-
}
|
1183
|
-
};
|
1184
|
-
function Ht(e) {
|
1185
|
-
return e && typeof e == "object" && typeof e.kind == "string";
|
1186
|
-
}
|
1187
|
-
function ot(e) {
|
1188
|
-
return typeof e == "string" ? {
|
1189
|
-
value: e
|
1190
|
-
} : Ht(e) ? e.kind === "plaintext" ? {
|
1191
|
-
value: e.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&")
|
1192
|
-
} : {
|
1193
|
-
value: e.value
|
1194
|
-
} : { value: "```" + e.language + `
|
1195
|
-
` + e.value + "\n```\n" };
|
1196
|
-
}
|
1197
|
-
function zt(e) {
|
1198
|
-
if (e)
|
1199
|
-
return Array.isArray(e) ? e.map(ot) : [ot(e)];
|
1200
|
-
}
|
1201
|
-
var hn = class {
|
1202
|
-
constructor(e) {
|
1203
|
-
this._worker = e;
|
1204
|
-
}
|
1205
|
-
provideDocumentHighlights(e, r, i) {
|
1206
|
-
const n = e.uri;
|
1207
|
-
return this._worker(n).then((t) => t.findDocumentHighlights(n.toString(), R(r))).then((t) => {
|
1208
|
-
if (t)
|
1209
|
-
return t.map((o) => ({
|
1210
|
-
range: w(o.range),
|
1211
|
-
kind: Xt(o.kind)
|
1212
|
-
}));
|
1213
|
-
});
|
1214
|
-
}
|
1215
|
-
};
|
1216
|
-
function Xt(e) {
|
1217
|
-
switch (e) {
|
1218
|
-
case V.Read:
|
1219
|
-
return f.languages.DocumentHighlightKind.Read;
|
1220
|
-
case V.Write:
|
1221
|
-
return f.languages.DocumentHighlightKind.Write;
|
1222
|
-
case V.Text:
|
1223
|
-
return f.languages.DocumentHighlightKind.Text;
|
1224
|
-
}
|
1225
|
-
return f.languages.DocumentHighlightKind.Text;
|
1226
|
-
}
|
1227
|
-
var _n = class {
|
1228
|
-
constructor(e) {
|
1229
|
-
this._worker = e;
|
1230
|
-
}
|
1231
|
-
provideDefinition(e, r, i) {
|
1232
|
-
const n = e.uri;
|
1233
|
-
return this._worker(n).then((t) => t.findDefinition(n.toString(), R(r))).then((t) => {
|
1234
|
-
if (t)
|
1235
|
-
return [vt(t)];
|
1236
|
-
});
|
1237
|
-
}
|
1238
|
-
};
|
1239
|
-
function vt(e) {
|
1240
|
-
return {
|
1241
|
-
uri: f.Uri.parse(e.uri),
|
1242
|
-
range: w(e.range)
|
1243
|
-
};
|
1244
|
-
}
|
1245
|
-
var kn = class {
|
1246
|
-
constructor(e) {
|
1247
|
-
this._worker = e;
|
1248
|
-
}
|
1249
|
-
provideReferences(e, r, i, n) {
|
1250
|
-
const t = e.uri;
|
1251
|
-
return this._worker(t).then((o) => o.findReferences(t.toString(), R(r))).then((o) => {
|
1252
|
-
if (o)
|
1253
|
-
return o.map(vt);
|
1254
|
-
});
|
1255
|
-
}
|
1256
|
-
}, bn = class {
|
1257
|
-
constructor(e) {
|
1258
|
-
this._worker = e;
|
1259
|
-
}
|
1260
|
-
provideRenameEdits(e, r, i, n) {
|
1261
|
-
const t = e.uri;
|
1262
|
-
return this._worker(t).then((o) => o.doRename(t.toString(), R(r), i)).then((o) => qt(o));
|
1263
|
-
}
|
1264
|
-
};
|
1265
|
-
function qt(e) {
|
1266
|
-
if (!e || !e.changes)
|
1267
|
-
return;
|
1268
|
-
let r = [];
|
1269
|
-
for (let i in e.changes) {
|
1270
|
-
const n = f.Uri.parse(i);
|
1271
|
-
for (let t of e.changes[i])
|
1272
|
-
r.push({
|
1273
|
-
resource: n,
|
1274
|
-
versionId: void 0,
|
1275
|
-
textEdit: {
|
1276
|
-
range: w(t.range),
|
1277
|
-
text: t.newText
|
1278
|
-
}
|
1279
|
-
});
|
1280
|
-
}
|
1281
|
-
return {
|
1282
|
-
edits: r
|
1283
|
-
};
|
1284
|
-
}
|
1285
|
-
var Jt = class {
|
1286
|
-
constructor(e) {
|
1287
|
-
this._worker = e;
|
1288
|
-
}
|
1289
|
-
provideDocumentSymbols(e, r) {
|
1290
|
-
const i = e.uri;
|
1291
|
-
return this._worker(i).then((n) => n.findDocumentSymbols(i.toString())).then((n) => {
|
1292
|
-
if (n)
|
1293
|
-
return n.map((t) => $t(t) ? mt(t) : {
|
1294
|
-
name: t.name,
|
1295
|
-
detail: "",
|
1296
|
-
containerName: t.containerName,
|
1297
|
-
kind: ht(t.kind),
|
1298
|
-
range: w(t.location.range),
|
1299
|
-
selectionRange: w(t.location.range),
|
1300
|
-
tags: []
|
1301
|
-
});
|
1302
|
-
});
|
1303
|
-
}
|
1304
|
-
};
|
1305
|
-
function $t(e) {
|
1306
|
-
return "children" in e;
|
1307
|
-
}
|
1308
|
-
function mt(e) {
|
1309
|
-
return {
|
1310
|
-
name: e.name,
|
1311
|
-
detail: e.detail ?? "",
|
1312
|
-
kind: ht(e.kind),
|
1313
|
-
range: w(e.range),
|
1314
|
-
selectionRange: w(e.selectionRange),
|
1315
|
-
tags: e.tags ?? [],
|
1316
|
-
children: (e.children ?? []).map((r) => mt(r))
|
1317
|
-
};
|
1318
|
-
}
|
1319
|
-
function ht(e) {
|
1320
|
-
let r = f.languages.SymbolKind;
|
1321
|
-
switch (e) {
|
1322
|
-
case _.File:
|
1323
|
-
return r.File;
|
1324
|
-
case _.Module:
|
1325
|
-
return r.Module;
|
1326
|
-
case _.Namespace:
|
1327
|
-
return r.Namespace;
|
1328
|
-
case _.Package:
|
1329
|
-
return r.Package;
|
1330
|
-
case _.Class:
|
1331
|
-
return r.Class;
|
1332
|
-
case _.Method:
|
1333
|
-
return r.Method;
|
1334
|
-
case _.Property:
|
1335
|
-
return r.Property;
|
1336
|
-
case _.Field:
|
1337
|
-
return r.Field;
|
1338
|
-
case _.Constructor:
|
1339
|
-
return r.Constructor;
|
1340
|
-
case _.Enum:
|
1341
|
-
return r.Enum;
|
1342
|
-
case _.Interface:
|
1343
|
-
return r.Interface;
|
1344
|
-
case _.Function:
|
1345
|
-
return r.Function;
|
1346
|
-
case _.Variable:
|
1347
|
-
return r.Variable;
|
1348
|
-
case _.Constant:
|
1349
|
-
return r.Constant;
|
1350
|
-
case _.String:
|
1351
|
-
return r.String;
|
1352
|
-
case _.Number:
|
1353
|
-
return r.Number;
|
1354
|
-
case _.Boolean:
|
1355
|
-
return r.Boolean;
|
1356
|
-
case _.Array:
|
1357
|
-
return r.Array;
|
1358
|
-
}
|
1359
|
-
return r.Function;
|
1360
|
-
}
|
1361
|
-
var wn = class {
|
1362
|
-
constructor(e) {
|
1363
|
-
this._worker = e;
|
1364
|
-
}
|
1365
|
-
provideLinks(e, r) {
|
1366
|
-
const i = e.uri;
|
1367
|
-
return this._worker(i).then((n) => n.findDocumentLinks(i.toString())).then((n) => {
|
1368
|
-
if (n)
|
1369
|
-
return {
|
1370
|
-
links: n.map((t) => ({
|
1371
|
-
range: w(t.range),
|
1372
|
-
url: t.target
|
1373
|
-
}))
|
1374
|
-
};
|
1375
|
-
});
|
1376
|
-
}
|
1377
|
-
}, Qt = class {
|
1378
|
-
constructor(e) {
|
1379
|
-
this._worker = e;
|
1380
|
-
}
|
1381
|
-
provideDocumentFormattingEdits(e, r, i) {
|
1382
|
-
const n = e.uri;
|
1383
|
-
return this._worker(n).then((t) => t.format(n.toString(), null, _t(r)).then((o) => {
|
1384
|
-
if (!(!o || o.length === 0))
|
1385
|
-
return o.map(B);
|
1386
|
-
}));
|
1387
|
-
}
|
1388
|
-
}, Yt = class {
|
1389
|
-
constructor(e) {
|
1390
|
-
this._worker = e, this.canFormatMultipleRanges = !1;
|
1391
|
-
}
|
1392
|
-
provideDocumentRangeFormattingEdits(e, r, i, n) {
|
1393
|
-
const t = e.uri;
|
1394
|
-
return this._worker(t).then((o) => o.format(t.toString(), pt(r), _t(i)).then((s) => {
|
1395
|
-
if (!(!s || s.length === 0))
|
1396
|
-
return s.map(B);
|
1397
|
-
}));
|
1398
|
-
}
|
1399
|
-
};
|
1400
|
-
function _t(e) {
|
1401
|
-
return {
|
1402
|
-
tabSize: e.tabSize,
|
1403
|
-
insertSpaces: e.insertSpaces
|
1404
|
-
};
|
1405
|
-
}
|
1406
|
-
var Gt = class {
|
1407
|
-
constructor(e) {
|
1408
|
-
this._worker = e;
|
1409
|
-
}
|
1410
|
-
provideDocumentColors(e, r) {
|
1411
|
-
const i = e.uri;
|
1412
|
-
return this._worker(i).then((n) => n.findDocumentColors(i.toString())).then((n) => {
|
1413
|
-
if (n)
|
1414
|
-
return n.map((t) => ({
|
1415
|
-
color: t.color,
|
1416
|
-
range: w(t.range)
|
1417
|
-
}));
|
1418
|
-
});
|
1419
|
-
}
|
1420
|
-
provideColorPresentations(e, r, i) {
|
1421
|
-
const n = e.uri;
|
1422
|
-
return this._worker(n).then(
|
1423
|
-
(t) => t.getColorPresentations(n.toString(), r.color, pt(r.range))
|
1424
|
-
).then((t) => {
|
1425
|
-
if (t)
|
1426
|
-
return t.map((o) => {
|
1427
|
-
let s = {
|
1428
|
-
label: o.label
|
1429
|
-
};
|
1430
|
-
return o.textEdit && (s.textEdit = B(o.textEdit)), o.additionalTextEdits && (s.additionalTextEdits = o.additionalTextEdits.map(B)), s;
|
1431
|
-
});
|
1432
|
-
});
|
1433
|
-
}
|
1434
|
-
}, Zt = class {
|
1435
|
-
constructor(e) {
|
1436
|
-
this._worker = e;
|
1437
|
-
}
|
1438
|
-
provideFoldingRanges(e, r, i) {
|
1439
|
-
const n = e.uri;
|
1440
|
-
return this._worker(n).then((t) => t.getFoldingRanges(n.toString(), r)).then((t) => {
|
1441
|
-
if (t)
|
1442
|
-
return t.map((o) => {
|
1443
|
-
const s = {
|
1444
|
-
start: o.startLine + 1,
|
1445
|
-
end: o.endLine + 1
|
1446
|
-
};
|
1447
|
-
return typeof o.kind < "u" && (s.kind = Kt(o.kind)), s;
|
1448
|
-
});
|
1449
|
-
});
|
1450
|
-
}
|
1451
|
-
};
|
1452
|
-
function Kt(e) {
|
1453
|
-
switch (e) {
|
1454
|
-
case P.Comment:
|
1455
|
-
return f.languages.FoldingRangeKind.Comment;
|
1456
|
-
case P.Imports:
|
1457
|
-
return f.languages.FoldingRangeKind.Imports;
|
1458
|
-
case P.Region:
|
1459
|
-
return f.languages.FoldingRangeKind.Region;
|
1460
|
-
}
|
1461
|
-
}
|
1462
|
-
var Ct = class {
|
1463
|
-
constructor(e) {
|
1464
|
-
this._worker = e;
|
1465
|
-
}
|
1466
|
-
provideSelectionRanges(e, r, i) {
|
1467
|
-
const n = e.uri;
|
1468
|
-
return this._worker(n).then(
|
1469
|
-
(t) => t.getSelectionRanges(
|
1470
|
-
n.toString(),
|
1471
|
-
r.map(R)
|
1472
|
-
)
|
1473
|
-
).then((t) => {
|
1474
|
-
if (t)
|
1475
|
-
return t.map((o) => {
|
1476
|
-
const s = [];
|
1477
|
-
for (; o; )
|
1478
|
-
s.push({ range: w(o.range) }), o = o.parent;
|
1479
|
-
return s;
|
1480
|
-
});
|
1481
|
-
});
|
1482
|
-
}
|
1483
|
-
};
|
1484
|
-
function en(e, r = !1) {
|
1485
|
-
const i = e.length;
|
1486
|
-
let n = 0, t = "", o = 0, s = 16, u = 0, g = 0, c = 0, v = 0, d = 0;
|
1487
|
-
function k(l, A) {
|
1488
|
-
let L = 0, I = 0;
|
1489
|
-
for (; L < l || !A; ) {
|
1490
|
-
let b = e.charCodeAt(n);
|
1491
|
-
if (b >= 48 && b <= 57)
|
1492
|
-
I = I * 16 + b - 48;
|
1493
|
-
else if (b >= 65 && b <= 70)
|
1494
|
-
I = I * 16 + b - 65 + 10;
|
1495
|
-
else if (b >= 97 && b <= 102)
|
1496
|
-
I = I * 16 + b - 97 + 10;
|
1497
|
-
else
|
1498
|
-
break;
|
1499
|
-
n++, L++;
|
1500
|
-
}
|
1501
|
-
return L < l && (I = -1), I;
|
1502
|
-
}
|
1503
|
-
function p(l) {
|
1504
|
-
n = l, t = "", o = 0, s = 16, d = 0;
|
1505
|
-
}
|
1506
|
-
function N() {
|
1507
|
-
let l = n;
|
1508
|
-
if (e.charCodeAt(n) === 48)
|
1509
|
-
n++;
|
1510
|
-
else
|
1511
|
-
for (n++; n < e.length && M(e.charCodeAt(n)); )
|
1512
|
-
n++;
|
1513
|
-
if (n < e.length && e.charCodeAt(n) === 46)
|
1514
|
-
if (n++, n < e.length && M(e.charCodeAt(n)))
|
1515
|
-
for (n++; n < e.length && M(e.charCodeAt(n)); )
|
1516
|
-
n++;
|
1517
|
-
else
|
1518
|
-
return d = 3, e.substring(l, n);
|
1519
|
-
let A = n;
|
1520
|
-
if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101))
|
1521
|
-
if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && M(e.charCodeAt(n))) {
|
1522
|
-
for (n++; n < e.length && M(e.charCodeAt(n)); )
|
1523
|
-
n++;
|
1524
|
-
A = n;
|
1525
|
-
} else
|
1526
|
-
d = 3;
|
1527
|
-
return e.substring(l, A);
|
1528
|
-
}
|
1529
|
-
function J() {
|
1530
|
-
let l = "", A = n;
|
1531
|
-
for (; ; ) {
|
1532
|
-
if (n >= i) {
|
1533
|
-
l += e.substring(A, n), d = 2;
|
1534
|
-
break;
|
1535
|
-
}
|
1536
|
-
const L = e.charCodeAt(n);
|
1537
|
-
if (L === 34) {
|
1538
|
-
l += e.substring(A, n), n++;
|
1539
|
-
break;
|
1540
|
-
}
|
1541
|
-
if (L === 92) {
|
1542
|
-
if (l += e.substring(A, n), n++, n >= i) {
|
1543
|
-
d = 2;
|
1544
|
-
break;
|
1545
|
-
}
|
1546
|
-
switch (e.charCodeAt(n++)) {
|
1547
|
-
case 34:
|
1548
|
-
l += '"';
|
1549
|
-
break;
|
1550
|
-
case 92:
|
1551
|
-
l += "\\";
|
1552
|
-
break;
|
1553
|
-
case 47:
|
1554
|
-
l += "/";
|
1555
|
-
break;
|
1556
|
-
case 98:
|
1557
|
-
l += "\b";
|
1558
|
-
break;
|
1559
|
-
case 102:
|
1560
|
-
l += "\f";
|
1561
|
-
break;
|
1562
|
-
case 110:
|
1563
|
-
l += `
|
1564
|
-
`;
|
1565
|
-
break;
|
1566
|
-
case 114:
|
1567
|
-
l += "\r";
|
1568
|
-
break;
|
1569
|
-
case 116:
|
1570
|
-
l += " ";
|
1571
|
-
break;
|
1572
|
-
case 117:
|
1573
|
-
const b = k(4, !0);
|
1574
|
-
b >= 0 ? l += String.fromCharCode(b) : d = 4;
|
1575
|
-
break;
|
1576
|
-
default:
|
1577
|
-
d = 5;
|
1578
|
-
}
|
1579
|
-
A = n;
|
1580
|
-
continue;
|
1581
|
-
}
|
1582
|
-
if (L >= 0 && L <= 31)
|
1583
|
-
if (x(L)) {
|
1584
|
-
l += e.substring(A, n), d = 2;
|
1585
|
-
break;
|
1586
|
-
} else
|
1587
|
-
d = 6;
|
1588
|
-
n++;
|
1589
|
-
}
|
1590
|
-
return l;
|
1591
|
-
}
|
1592
|
-
function ce() {
|
1593
|
-
if (t = "", d = 0, o = n, g = u, v = c, n >= i)
|
1594
|
-
return o = i, s = 17;
|
1595
|
-
let l = e.charCodeAt(n);
|
1596
|
-
if ($(l)) {
|
1597
|
-
do
|
1598
|
-
n++, t += String.fromCharCode(l), l = e.charCodeAt(n);
|
1599
|
-
while ($(l));
|
1600
|
-
return s = 15;
|
1601
|
-
}
|
1602
|
-
if (x(l))
|
1603
|
-
return n++, t += String.fromCharCode(l), l === 13 && e.charCodeAt(n) === 10 && (n++, t += `
|
1604
|
-
`), u++, c = n, s = 14;
|
1605
|
-
switch (l) {
|
1606
|
-
case 123:
|
1607
|
-
return n++, s = 1;
|
1608
|
-
case 125:
|
1609
|
-
return n++, s = 2;
|
1610
|
-
case 91:
|
1611
|
-
return n++, s = 3;
|
1612
|
-
case 93:
|
1613
|
-
return n++, s = 4;
|
1614
|
-
case 58:
|
1615
|
-
return n++, s = 6;
|
1616
|
-
case 44:
|
1617
|
-
return n++, s = 5;
|
1618
|
-
case 34:
|
1619
|
-
return n++, t = J(), s = 10;
|
1620
|
-
case 47:
|
1621
|
-
const A = n - 1;
|
1622
|
-
if (e.charCodeAt(n + 1) === 47) {
|
1623
|
-
for (n += 2; n < i && !x(e.charCodeAt(n)); )
|
1624
|
-
n++;
|
1625
|
-
return t = e.substring(A, n), s = 12;
|
1626
|
-
}
|
1627
|
-
if (e.charCodeAt(n + 1) === 42) {
|
1628
|
-
n += 2;
|
1629
|
-
const L = i - 1;
|
1630
|
-
let I = !1;
|
1631
|
-
for (; n < L; ) {
|
1632
|
-
const b = e.charCodeAt(n);
|
1633
|
-
if (b === 42 && e.charCodeAt(n + 1) === 47) {
|
1634
|
-
n += 2, I = !0;
|
1635
|
-
break;
|
1636
|
-
}
|
1637
|
-
n++, x(b) && (b === 13 && e.charCodeAt(n) === 10 && n++, u++, c = n);
|
1638
|
-
}
|
1639
|
-
return I || (n++, d = 1), t = e.substring(A, n), s = 13;
|
1640
|
-
}
|
1641
|
-
return t += String.fromCharCode(l), n++, s = 16;
|
1642
|
-
case 45:
|
1643
|
-
if (t += String.fromCharCode(l), n++, n === i || !M(e.charCodeAt(n)))
|
1644
|
-
return s = 16;
|
1645
|
-
case 48:
|
1646
|
-
case 49:
|
1647
|
-
case 50:
|
1648
|
-
case 51:
|
1649
|
-
case 52:
|
1650
|
-
case 53:
|
1651
|
-
case 54:
|
1652
|
-
case 55:
|
1653
|
-
case 56:
|
1654
|
-
case 57:
|
1655
|
-
return t += N(), s = 11;
|
1656
|
-
default:
|
1657
|
-
for (; n < i && At(l); )
|
1658
|
-
n++, l = e.charCodeAt(n);
|
1659
|
-
if (o !== n) {
|
1660
|
-
switch (t = e.substring(o, n), t) {
|
1661
|
-
case "true":
|
1662
|
-
return s = 8;
|
1663
|
-
case "false":
|
1664
|
-
return s = 9;
|
1665
|
-
case "null":
|
1666
|
-
return s = 7;
|
1667
|
-
}
|
1668
|
-
return s = 16;
|
1669
|
-
}
|
1670
|
-
return t += String.fromCharCode(l), n++, s = 16;
|
1671
|
-
}
|
1672
|
-
}
|
1673
|
-
function At(l) {
|
1674
|
-
if ($(l) || x(l))
|
1675
|
-
return !1;
|
1676
|
-
switch (l) {
|
1677
|
-
case 125:
|
1678
|
-
case 93:
|
1679
|
-
case 123:
|
1680
|
-
case 91:
|
1681
|
-
case 34:
|
1682
|
-
case 58:
|
1683
|
-
case 44:
|
1684
|
-
case 47:
|
1685
|
-
return !1;
|
1686
|
-
}
|
1687
|
-
return !0;
|
1688
|
-
}
|
1689
|
-
function It() {
|
1690
|
-
let l;
|
1691
|
-
do
|
1692
|
-
l = ce();
|
1693
|
-
while (l >= 12 && l <= 15);
|
1694
|
-
return l;
|
1695
|
-
}
|
1696
|
-
return {
|
1697
|
-
setPosition: p,
|
1698
|
-
getPosition: () => n,
|
1699
|
-
scan: r ? It : ce,
|
1700
|
-
getToken: () => s,
|
1701
|
-
getTokenValue: () => t,
|
1702
|
-
getTokenOffset: () => o,
|
1703
|
-
getTokenLength: () => n - o,
|
1704
|
-
getTokenStartLine: () => g,
|
1705
|
-
getTokenStartCharacter: () => o - v,
|
1706
|
-
getTokenError: () => d
|
1707
|
-
};
|
1708
|
-
}
|
1709
|
-
function $(e) {
|
1710
|
-
return e === 32 || e === 9;
|
1711
|
-
}
|
1712
|
-
function x(e) {
|
1713
|
-
return e === 10 || e === 13;
|
1714
|
-
}
|
1715
|
-
function M(e) {
|
1716
|
-
return e >= 48 && e <= 57;
|
1717
|
-
}
|
1718
|
-
var st;
|
1719
|
-
(function(e) {
|
1720
|
-
e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
|
1721
|
-
})(st || (st = {}));
|
1722
|
-
new Array(20).fill(0).map((e, r) => " ".repeat(r));
|
1723
|
-
var D = 200;
|
1724
|
-
new Array(D).fill(0).map((e, r) => `
|
1725
|
-
` + " ".repeat(r)), new Array(D).fill(0).map((e, r) => "\r" + " ".repeat(r)), new Array(D).fill(0).map((e, r) => `\r
|
1726
|
-
` + " ".repeat(r)), new Array(D).fill(0).map((e, r) => `
|
1727
|
-
` + " ".repeat(r)), new Array(D).fill(0).map((e, r) => "\r" + " ".repeat(r)), new Array(D).fill(0).map((e, r) => `\r
|
1728
|
-
` + " ".repeat(r));
|
1729
|
-
var at;
|
1730
|
-
(function(e) {
|
1731
|
-
e.DEFAULT = {
|
1732
|
-
allowTrailingComma: !1
|
1733
|
-
};
|
1734
|
-
})(at || (at = {}));
|
1735
|
-
var tn = en, ut;
|
1736
|
-
(function(e) {
|
1737
|
-
e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
|
1738
|
-
})(ut || (ut = {}));
|
1739
|
-
var ct;
|
1740
|
-
(function(e) {
|
1741
|
-
e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
|
1742
|
-
})(ct || (ct = {}));
|
1743
|
-
var lt;
|
1744
|
-
(function(e) {
|
1745
|
-
e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
|
1746
|
-
})(lt || (lt = {}));
|
1747
|
-
function nn(e) {
|
1748
|
-
return {
|
1749
|
-
getInitialState: () => new bt(null, null, !1, null),
|
1750
|
-
tokenize: (r, i) => gn(e, r, i)
|
1751
|
-
};
|
1752
|
-
}
|
1753
|
-
var ft = "delimiter.bracket.json", dt = "delimiter.array.json", rn = "delimiter.colon.json", on = "delimiter.comma.json", sn = "keyword.json", an = "keyword.json", un = "string.value.json", cn = "number.json", ln = "string.key.json", fn = "comment.block.json", dn = "comment.line.json", y = class kt {
|
1754
|
-
constructor(r, i) {
|
1755
|
-
this.parent = r, this.type = i;
|
1756
|
-
}
|
1757
|
-
static pop(r) {
|
1758
|
-
return r ? r.parent : null;
|
1759
|
-
}
|
1760
|
-
static push(r, i) {
|
1761
|
-
return new kt(r, i);
|
1762
|
-
}
|
1763
|
-
static equals(r, i) {
|
1764
|
-
if (!r && !i)
|
1765
|
-
return !0;
|
1766
|
-
if (!r || !i)
|
1767
|
-
return !1;
|
1768
|
-
for (; r && i; ) {
|
1769
|
-
if (r === i)
|
1770
|
-
return !0;
|
1771
|
-
if (r.type !== i.type)
|
1772
|
-
return !1;
|
1773
|
-
r = r.parent, i = i.parent;
|
1774
|
-
}
|
1775
|
-
return !0;
|
1776
|
-
}
|
1777
|
-
}, bt = class ue {
|
1778
|
-
constructor(r, i, n, t) {
|
1779
|
-
this._state = r, this.scanError = i, this.lastWasColon = n, this.parents = t;
|
1780
|
-
}
|
1781
|
-
clone() {
|
1782
|
-
return new ue(this._state, this.scanError, this.lastWasColon, this.parents);
|
1783
|
-
}
|
1784
|
-
equals(r) {
|
1785
|
-
return r === this ? !0 : !r || !(r instanceof ue) ? !1 : this.scanError === r.scanError && this.lastWasColon === r.lastWasColon && y.equals(this.parents, r.parents);
|
1786
|
-
}
|
1787
|
-
getStateData() {
|
1788
|
-
return this._state;
|
1789
|
-
}
|
1790
|
-
setStateData(r) {
|
1791
|
-
this._state = r;
|
1792
|
-
}
|
1793
|
-
};
|
1794
|
-
function gn(e, r, i, n = 0) {
|
1795
|
-
let t = 0, o = !1;
|
1796
|
-
switch (i.scanError) {
|
1797
|
-
case 2:
|
1798
|
-
r = '"' + r, t = 1;
|
1799
|
-
break;
|
1800
|
-
case 1:
|
1801
|
-
r = "/*" + r, t = 2;
|
1802
|
-
break;
|
1803
|
-
}
|
1804
|
-
const s = tn(r);
|
1805
|
-
let u = i.lastWasColon, g = i.parents;
|
1806
|
-
const c = {
|
1807
|
-
tokens: [],
|
1808
|
-
endState: i.clone()
|
1809
|
-
};
|
1810
|
-
for (; ; ) {
|
1811
|
-
let v = n + s.getPosition(), d = "";
|
1812
|
-
const k = s.scan();
|
1813
|
-
if (k === 17)
|
1814
|
-
break;
|
1815
|
-
if (v === n + s.getPosition())
|
1816
|
-
throw new Error(
|
1817
|
-
"Scanner did not advance, next 3 characters are: " + r.substr(s.getPosition(), 3)
|
1818
|
-
);
|
1819
|
-
switch (o && (v -= t), o = t > 0, k) {
|
1820
|
-
case 1:
|
1821
|
-
g = y.push(
|
1822
|
-
g,
|
1823
|
-
0
|
1824
|
-
/* Object */
|
1825
|
-
), d = ft, u = !1;
|
1826
|
-
break;
|
1827
|
-
case 2:
|
1828
|
-
g = y.pop(g), d = ft, u = !1;
|
1829
|
-
break;
|
1830
|
-
case 3:
|
1831
|
-
g = y.push(
|
1832
|
-
g,
|
1833
|
-
1
|
1834
|
-
/* Array */
|
1835
|
-
), d = dt, u = !1;
|
1836
|
-
break;
|
1837
|
-
case 4:
|
1838
|
-
g = y.pop(g), d = dt, u = !1;
|
1839
|
-
break;
|
1840
|
-
case 6:
|
1841
|
-
d = rn, u = !0;
|
1842
|
-
break;
|
1843
|
-
case 5:
|
1844
|
-
d = on, u = !1;
|
1845
|
-
break;
|
1846
|
-
case 8:
|
1847
|
-
case 9:
|
1848
|
-
d = sn, u = !1;
|
1849
|
-
break;
|
1850
|
-
case 7:
|
1851
|
-
d = an, u = !1;
|
1852
|
-
break;
|
1853
|
-
case 10:
|
1854
|
-
const N = (g ? g.type : 0) === 1;
|
1855
|
-
d = u || N ? un : ln, u = !1;
|
1856
|
-
break;
|
1857
|
-
case 11:
|
1858
|
-
d = cn, u = !1;
|
1859
|
-
break;
|
1860
|
-
}
|
1861
|
-
switch (k) {
|
1862
|
-
case 12:
|
1863
|
-
d = dn;
|
1864
|
-
break;
|
1865
|
-
case 13:
|
1866
|
-
d = fn;
|
1867
|
-
break;
|
1868
|
-
}
|
1869
|
-
c.endState = new bt(
|
1870
|
-
i.getStateData(),
|
1871
|
-
s.getTokenError(),
|
1872
|
-
u,
|
1873
|
-
g
|
1874
|
-
), c.tokens.push({
|
1875
|
-
startIndex: v,
|
1876
|
-
scopes: d
|
1877
|
-
});
|
1878
|
-
}
|
1879
|
-
return c;
|
1880
|
-
}
|
1881
|
-
var E;
|
1882
|
-
function An() {
|
1883
|
-
return new Promise((e, r) => {
|
1884
|
-
if (!E)
|
1885
|
-
return r("JSON not registered!");
|
1886
|
-
e(E);
|
1887
|
-
});
|
1888
|
-
}
|
1889
|
-
var pn = class extends jt {
|
1890
|
-
constructor(e, r, i) {
|
1891
|
-
super(e, r, i.onDidChange), this._disposables.push(
|
1892
|
-
f.editor.onWillDisposeModel((n) => {
|
1893
|
-
this._resetSchema(n.uri);
|
1894
|
-
})
|
1895
|
-
), this._disposables.push(
|
1896
|
-
f.editor.onDidChangeModelLanguage((n) => {
|
1897
|
-
this._resetSchema(n.model.uri);
|
1898
|
-
})
|
1899
|
-
);
|
1900
|
-
}
|
1901
|
-
_resetSchema(e) {
|
1902
|
-
this._worker().then((r) => {
|
1903
|
-
r.resetSchema(e.toString());
|
1904
|
-
});
|
1905
|
-
}
|
1906
|
-
};
|
1907
|
-
function In(e) {
|
1908
|
-
const r = [], i = [], n = new Ut(e);
|
1909
|
-
r.push(n), E = (...s) => n.getLanguageServiceWorker(...s);
|
1910
|
-
function t() {
|
1911
|
-
const { languageId: s, modeConfiguration: u } = e;
|
1912
|
-
wt(i), u.documentFormattingEdits && i.push(
|
1913
|
-
f.languages.registerDocumentFormattingEditProvider(
|
1914
|
-
s,
|
1915
|
-
new Qt(E)
|
1916
|
-
)
|
1917
|
-
), u.documentRangeFormattingEdits && i.push(
|
1918
|
-
f.languages.registerDocumentRangeFormattingEditProvider(
|
1919
|
-
s,
|
1920
|
-
new Yt(E)
|
1921
|
-
)
|
1922
|
-
), u.completionItems && i.push(
|
1923
|
-
f.languages.registerCompletionItemProvider(
|
1924
|
-
s,
|
1925
|
-
new Pt(E, [" ", ":", '"'])
|
1926
|
-
)
|
1927
|
-
), u.hovers && i.push(
|
1928
|
-
f.languages.registerHoverProvider(s, new Wt(E))
|
1929
|
-
), u.documentSymbols && i.push(
|
1930
|
-
f.languages.registerDocumentSymbolProvider(
|
1931
|
-
s,
|
1932
|
-
new Jt(E)
|
1933
|
-
)
|
1934
|
-
), u.tokens && i.push(f.languages.setTokensProvider(s, nn(!0))), u.colors && i.push(
|
1935
|
-
f.languages.registerColorProvider(
|
1936
|
-
s,
|
1937
|
-
new Gt(E)
|
1938
|
-
)
|
1939
|
-
), u.foldingRanges && i.push(
|
1940
|
-
f.languages.registerFoldingRangeProvider(
|
1941
|
-
s,
|
1942
|
-
new Zt(E)
|
1943
|
-
)
|
1944
|
-
), u.diagnostics && i.push(new pn(s, E, e)), u.selectionRanges && i.push(
|
1945
|
-
f.languages.registerSelectionRangeProvider(
|
1946
|
-
s,
|
1947
|
-
new Ct(E)
|
1948
|
-
)
|
1949
|
-
);
|
1950
|
-
}
|
1951
|
-
t(), r.push(f.languages.setLanguageConfiguration(e.languageId, vn));
|
1952
|
-
let o = e.modeConfiguration;
|
1953
|
-
return e.onDidChange((s) => {
|
1954
|
-
s.modeConfiguration !== o && (o = s.modeConfiguration, t());
|
1955
|
-
}), r.push(gt(i)), gt(r);
|
1956
|
-
}
|
1957
|
-
function gt(e) {
|
1958
|
-
return { dispose: () => wt(e) };
|
1959
|
-
}
|
1960
|
-
function wt(e) {
|
1961
|
-
for (; e.length; )
|
1962
|
-
e.pop().dispose();
|
1963
|
-
}
|
1964
|
-
var vn = {
|
1965
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,
|
1966
|
-
comments: {
|
1967
|
-
lineComment: "//",
|
1968
|
-
blockComment: ["/*", "*/"]
|
1969
|
-
},
|
1970
|
-
brackets: [
|
1971
|
-
["{", "}"],
|
1972
|
-
["[", "]"]
|
1973
|
-
],
|
1974
|
-
autoClosingPairs: [
|
1975
|
-
{ open: "{", close: "}", notIn: ["string"] },
|
1976
|
-
{ open: "[", close: "]", notIn: ["string"] },
|
1977
|
-
{ open: '"', close: '"', notIn: ["string"] }
|
1978
|
-
]
|
1979
|
-
};
|
1980
|
-
export {
|
1981
|
-
Pt as CompletionAdapter,
|
1982
|
-
_n as DefinitionAdapter,
|
1983
|
-
jt as DiagnosticsAdapter,
|
1984
|
-
Gt as DocumentColorAdapter,
|
1985
|
-
Qt as DocumentFormattingEditProvider,
|
1986
|
-
hn as DocumentHighlightAdapter,
|
1987
|
-
wn as DocumentLinkAdapter,
|
1988
|
-
Yt as DocumentRangeFormattingEditProvider,
|
1989
|
-
Jt as DocumentSymbolAdapter,
|
1990
|
-
Zt as FoldingRangeAdapter,
|
1991
|
-
Wt as HoverAdapter,
|
1992
|
-
kn as ReferenceAdapter,
|
1993
|
-
bn as RenameAdapter,
|
1994
|
-
Ct as SelectionRangeAdapter,
|
1995
|
-
Ut as WorkerManager,
|
1996
|
-
R as fromPosition,
|
1997
|
-
pt as fromRange,
|
1998
|
-
An as getWorker,
|
1999
|
-
In as setupMode,
|
2000
|
-
w as toRange,
|
2001
|
-
B as toTextEdit
|
2002
|
-
};
|