@vrowzer/vite-plugin 0.0.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/LICENSE +20 -0
- package/README.md +290 -0
- package/dist/ide/assets/css.worker-uWEFNxvl.js +89 -0
- package/dist/ide/assets/html.worker-1tLoAl5Z.js +502 -0
- package/dist/ide/assets/json.worker-CL3sVQd6.js +58 -0
- package/dist/ide/assets/ts.worker-BFpNHPy5.js +67719 -0
- package/dist/ide/css-CPSW8DVZ.js +286 -0
- package/dist/ide/cssMode-B5DtFEwy.js +65 -0
- package/dist/ide/graphql-BteLL2CG.js +176 -0
- package/dist/ide/handlebars-BcqMM6pa.js +412 -0
- package/dist/ide/html-CxO5OaJl.js +333 -0
- package/dist/ide/htmlMode-DxpUG2jm.js +74 -0
- package/dist/ide/ide.css +2 -0
- package/dist/ide/ide.js +5523 -0
- package/dist/ide/javascript-CvtLx4_Z.js +21 -0
- package/dist/ide/jsonMode-LVtiYWKr.js +449 -0
- package/dist/ide/less-BubkcFWW.js +244 -0
- package/dist/ide/lspLanguageFeatures-BDyekQt2.js +1455 -0
- package/dist/ide/markdown-DPB5N4OB.js +264 -0
- package/dist/ide/mdx-Sun87_nd.js +329 -0
- package/dist/ide/monaco.contribution-DVj8eGe_.js +116 -0
- package/dist/ide/pug-BONHZNEg.js +302 -0
- package/dist/ide/scss-0r6NeK1P.js +419 -0
- package/dist/ide/shell-Vh_eZpea.js +225 -0
- package/dist/ide/toggleHighContrast-DI4ZeqFk.js +113328 -0
- package/dist/ide/tsMode-BKTkt1bt.js +567 -0
- package/dist/ide/typescript-CHC4VYBW.js +257 -0
- package/dist/ide/workers-IG_hD8Jy.js +47 -0
- package/dist/ide/xml-C0QFzMaz.js +130 -0
- package/dist/ide/yaml-o-RP7lYY.js +223 -0
- package/dist/index.d.mts +138 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1335 -0
- package/dist/index.mjs.map +1 -0
- package/dist/manifest-generate.d.mts +89 -0
- package/dist/manifest-generate.d.mts.map +1 -0
- package/dist/manifest-generate.mjs +438 -0
- package/dist/manifest-generate.mjs.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,1455 @@
|
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i } from "./toggleHighContrast-DI4ZeqFk.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/external/vscode-languageserver-types/lib/esm/main.js
|
|
3
|
+
var a;
|
|
4
|
+
(function(e) {
|
|
5
|
+
function t(e) {
|
|
6
|
+
return typeof e == "string";
|
|
7
|
+
}
|
|
8
|
+
e.is = t;
|
|
9
|
+
})(a ||= {});
|
|
10
|
+
var o;
|
|
11
|
+
(function(e) {
|
|
12
|
+
function t(e) {
|
|
13
|
+
return typeof e == "string";
|
|
14
|
+
}
|
|
15
|
+
e.is = t;
|
|
16
|
+
})(o ||= {});
|
|
17
|
+
var s;
|
|
18
|
+
(function(e) {
|
|
19
|
+
e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
|
|
20
|
+
function t(t) {
|
|
21
|
+
return typeof t == "number" && e.MIN_VALUE <= t && t <= e.MAX_VALUE;
|
|
22
|
+
}
|
|
23
|
+
e.is = t;
|
|
24
|
+
})(s ||= {});
|
|
25
|
+
var c;
|
|
26
|
+
(function(e) {
|
|
27
|
+
e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
|
|
28
|
+
function t(t) {
|
|
29
|
+
return typeof t == "number" && e.MIN_VALUE <= t && t <= e.MAX_VALUE;
|
|
30
|
+
}
|
|
31
|
+
e.is = t;
|
|
32
|
+
})(c ||= {});
|
|
33
|
+
var l;
|
|
34
|
+
(function(e) {
|
|
35
|
+
function t(e, t) {
|
|
36
|
+
return e === Number.MAX_VALUE && (e = c.MAX_VALUE), t === Number.MAX_VALUE && (t = c.MAX_VALUE), {
|
|
37
|
+
line: e,
|
|
38
|
+
character: t
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
e.create = t;
|
|
42
|
+
function n(e) {
|
|
43
|
+
let t = e;
|
|
44
|
+
return U.objectLiteral(t) && U.uinteger(t.line) && U.uinteger(t.character);
|
|
45
|
+
}
|
|
46
|
+
e.is = n;
|
|
47
|
+
})(l ||= {});
|
|
48
|
+
var u;
|
|
49
|
+
(function(e) {
|
|
50
|
+
function t(e, t, n, r) {
|
|
51
|
+
if (U.uinteger(e) && U.uinteger(t) && U.uinteger(n) && U.uinteger(r)) return {
|
|
52
|
+
start: l.create(e, t),
|
|
53
|
+
end: l.create(n, r)
|
|
54
|
+
};
|
|
55
|
+
if (l.is(e) && l.is(t)) return {
|
|
56
|
+
start: e,
|
|
57
|
+
end: t
|
|
58
|
+
};
|
|
59
|
+
throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`);
|
|
60
|
+
}
|
|
61
|
+
e.create = t;
|
|
62
|
+
function n(e) {
|
|
63
|
+
let t = e;
|
|
64
|
+
return U.objectLiteral(t) && l.is(t.start) && l.is(t.end);
|
|
65
|
+
}
|
|
66
|
+
e.is = n;
|
|
67
|
+
})(u ||= {});
|
|
68
|
+
var d;
|
|
69
|
+
(function(e) {
|
|
70
|
+
function t(e, t) {
|
|
71
|
+
return {
|
|
72
|
+
uri: e,
|
|
73
|
+
range: t
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
e.create = t;
|
|
77
|
+
function n(e) {
|
|
78
|
+
let t = e;
|
|
79
|
+
return U.objectLiteral(t) && u.is(t.range) && (U.string(t.uri) || U.undefined(t.uri));
|
|
80
|
+
}
|
|
81
|
+
e.is = n;
|
|
82
|
+
})(d ||= {});
|
|
83
|
+
var f;
|
|
84
|
+
(function(e) {
|
|
85
|
+
function t(e, t, n, r) {
|
|
86
|
+
return {
|
|
87
|
+
targetUri: e,
|
|
88
|
+
targetRange: t,
|
|
89
|
+
targetSelectionRange: n,
|
|
90
|
+
originSelectionRange: r
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
e.create = t;
|
|
94
|
+
function n(e) {
|
|
95
|
+
let t = e;
|
|
96
|
+
return U.objectLiteral(t) && u.is(t.targetRange) && U.string(t.targetUri) && u.is(t.targetSelectionRange) && (u.is(t.originSelectionRange) || U.undefined(t.originSelectionRange));
|
|
97
|
+
}
|
|
98
|
+
e.is = n;
|
|
99
|
+
})(f ||= {});
|
|
100
|
+
var p;
|
|
101
|
+
(function(e) {
|
|
102
|
+
function t(e, t, n, r) {
|
|
103
|
+
return {
|
|
104
|
+
red: e,
|
|
105
|
+
green: t,
|
|
106
|
+
blue: n,
|
|
107
|
+
alpha: r
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
e.create = t;
|
|
111
|
+
function n(e) {
|
|
112
|
+
let t = e;
|
|
113
|
+
return U.objectLiteral(t) && U.numberRange(t.red, 0, 1) && U.numberRange(t.green, 0, 1) && U.numberRange(t.blue, 0, 1) && U.numberRange(t.alpha, 0, 1);
|
|
114
|
+
}
|
|
115
|
+
e.is = n;
|
|
116
|
+
})(p ||= {});
|
|
117
|
+
var ee;
|
|
118
|
+
(function(e) {
|
|
119
|
+
function t(e, t) {
|
|
120
|
+
return {
|
|
121
|
+
range: e,
|
|
122
|
+
color: t
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
e.create = t;
|
|
126
|
+
function n(e) {
|
|
127
|
+
let t = e;
|
|
128
|
+
return U.objectLiteral(t) && u.is(t.range) && p.is(t.color);
|
|
129
|
+
}
|
|
130
|
+
e.is = n;
|
|
131
|
+
})(ee ||= {});
|
|
132
|
+
var te;
|
|
133
|
+
(function(e) {
|
|
134
|
+
function t(e, t, n) {
|
|
135
|
+
return {
|
|
136
|
+
label: e,
|
|
137
|
+
textEdit: t,
|
|
138
|
+
additionalTextEdits: n
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
e.create = t;
|
|
142
|
+
function n(e) {
|
|
143
|
+
let t = e;
|
|
144
|
+
return U.objectLiteral(t) && U.string(t.label) && (U.undefined(t.textEdit) || y.is(t)) && (U.undefined(t.additionalTextEdits) || U.typedArray(t.additionalTextEdits, y.is));
|
|
145
|
+
}
|
|
146
|
+
e.is = n;
|
|
147
|
+
})(te ||= {});
|
|
148
|
+
var m;
|
|
149
|
+
(function(e) {
|
|
150
|
+
e.Comment = "comment", e.Imports = "imports", e.Region = "region";
|
|
151
|
+
})(m ||= {});
|
|
152
|
+
var ne;
|
|
153
|
+
(function(e) {
|
|
154
|
+
function t(e, t, n, r, i, a) {
|
|
155
|
+
let o = {
|
|
156
|
+
startLine: e,
|
|
157
|
+
endLine: t
|
|
158
|
+
};
|
|
159
|
+
return U.defined(n) && (o.startCharacter = n), U.defined(r) && (o.endCharacter = r), U.defined(i) && (o.kind = i), U.defined(a) && (o.collapsedText = a), o;
|
|
160
|
+
}
|
|
161
|
+
e.create = t;
|
|
162
|
+
function n(e) {
|
|
163
|
+
let t = e;
|
|
164
|
+
return U.objectLiteral(t) && U.uinteger(t.startLine) && U.uinteger(t.startLine) && (U.undefined(t.startCharacter) || U.uinteger(t.startCharacter)) && (U.undefined(t.endCharacter) || U.uinteger(t.endCharacter)) && (U.undefined(t.kind) || U.string(t.kind));
|
|
165
|
+
}
|
|
166
|
+
e.is = n;
|
|
167
|
+
})(ne ||= {});
|
|
168
|
+
var h;
|
|
169
|
+
(function(e) {
|
|
170
|
+
function t(e, t) {
|
|
171
|
+
return {
|
|
172
|
+
location: e,
|
|
173
|
+
message: t
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
e.create = t;
|
|
177
|
+
function n(e) {
|
|
178
|
+
let t = e;
|
|
179
|
+
return U.defined(t) && d.is(t.location) && U.string(t.message);
|
|
180
|
+
}
|
|
181
|
+
e.is = n;
|
|
182
|
+
})(h ||= {});
|
|
183
|
+
var g;
|
|
184
|
+
(function(e) {
|
|
185
|
+
e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
|
|
186
|
+
})(g ||= {});
|
|
187
|
+
var re;
|
|
188
|
+
(function(e) {
|
|
189
|
+
e.Unnecessary = 1, e.Deprecated = 2;
|
|
190
|
+
})(re ||= {});
|
|
191
|
+
var ie;
|
|
192
|
+
(function(e) {
|
|
193
|
+
function t(e) {
|
|
194
|
+
let t = e;
|
|
195
|
+
return U.objectLiteral(t) && U.string(t.href);
|
|
196
|
+
}
|
|
197
|
+
e.is = t;
|
|
198
|
+
})(ie ||= {});
|
|
199
|
+
var _;
|
|
200
|
+
(function(e) {
|
|
201
|
+
function t(e, t, n, r, i, a) {
|
|
202
|
+
let o = {
|
|
203
|
+
range: e,
|
|
204
|
+
message: t
|
|
205
|
+
};
|
|
206
|
+
return U.defined(n) && (o.severity = n), U.defined(r) && (o.code = r), U.defined(i) && (o.source = i), U.defined(a) && (o.relatedInformation = a), o;
|
|
207
|
+
}
|
|
208
|
+
e.create = t;
|
|
209
|
+
function n(e) {
|
|
210
|
+
let t = e;
|
|
211
|
+
return U.defined(t) && u.is(t.range) && U.string(t.message) && (U.number(t.severity) || U.undefined(t.severity)) && (U.integer(t.code) || U.string(t.code) || U.undefined(t.code)) && (U.undefined(t.codeDescription) || U.string(t.codeDescription?.href)) && (U.string(t.source) || U.undefined(t.source)) && (U.undefined(t.relatedInformation) || U.typedArray(t.relatedInformation, h.is));
|
|
212
|
+
}
|
|
213
|
+
e.is = n;
|
|
214
|
+
})(_ ||= {});
|
|
215
|
+
var v;
|
|
216
|
+
(function(e) {
|
|
217
|
+
function t(e, t, ...n) {
|
|
218
|
+
let r = {
|
|
219
|
+
title: e,
|
|
220
|
+
command: t
|
|
221
|
+
};
|
|
222
|
+
return U.defined(n) && n.length > 0 && (r.arguments = n), r;
|
|
223
|
+
}
|
|
224
|
+
e.create = t;
|
|
225
|
+
function n(e) {
|
|
226
|
+
let t = e;
|
|
227
|
+
return U.defined(t) && U.string(t.title) && U.string(t.command);
|
|
228
|
+
}
|
|
229
|
+
e.is = n;
|
|
230
|
+
})(v ||= {});
|
|
231
|
+
var y;
|
|
232
|
+
(function(e) {
|
|
233
|
+
function t(e, t) {
|
|
234
|
+
return {
|
|
235
|
+
range: e,
|
|
236
|
+
newText: t
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
e.replace = t;
|
|
240
|
+
function n(e, t) {
|
|
241
|
+
return {
|
|
242
|
+
range: {
|
|
243
|
+
start: e,
|
|
244
|
+
end: e
|
|
245
|
+
},
|
|
246
|
+
newText: t
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
e.insert = n;
|
|
250
|
+
function r(e) {
|
|
251
|
+
return {
|
|
252
|
+
range: e,
|
|
253
|
+
newText: ""
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
e.del = r;
|
|
257
|
+
function i(e) {
|
|
258
|
+
let t = e;
|
|
259
|
+
return U.objectLiteral(t) && U.string(t.newText) && u.is(t.range);
|
|
260
|
+
}
|
|
261
|
+
e.is = i;
|
|
262
|
+
})(y ||= {});
|
|
263
|
+
var b;
|
|
264
|
+
(function(e) {
|
|
265
|
+
function t(e, t, n) {
|
|
266
|
+
let r = { label: e };
|
|
267
|
+
return t !== void 0 && (r.needsConfirmation = t), n !== void 0 && (r.description = n), r;
|
|
268
|
+
}
|
|
269
|
+
e.create = t;
|
|
270
|
+
function n(e) {
|
|
271
|
+
let t = e;
|
|
272
|
+
return U.objectLiteral(t) && U.string(t.label) && (U.boolean(t.needsConfirmation) || t.needsConfirmation === void 0) && (U.string(t.description) || t.description === void 0);
|
|
273
|
+
}
|
|
274
|
+
e.is = n;
|
|
275
|
+
})(b ||= {});
|
|
276
|
+
var x;
|
|
277
|
+
(function(e) {
|
|
278
|
+
function t(e) {
|
|
279
|
+
let t = e;
|
|
280
|
+
return U.string(t);
|
|
281
|
+
}
|
|
282
|
+
e.is = t;
|
|
283
|
+
})(x ||= {});
|
|
284
|
+
var ae;
|
|
285
|
+
(function(e) {
|
|
286
|
+
function t(e, t, n) {
|
|
287
|
+
return {
|
|
288
|
+
range: e,
|
|
289
|
+
newText: t,
|
|
290
|
+
annotationId: n
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
e.replace = t;
|
|
294
|
+
function n(e, t, n) {
|
|
295
|
+
return {
|
|
296
|
+
range: {
|
|
297
|
+
start: e,
|
|
298
|
+
end: e
|
|
299
|
+
},
|
|
300
|
+
newText: t,
|
|
301
|
+
annotationId: n
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
e.insert = n;
|
|
305
|
+
function r(e, t) {
|
|
306
|
+
return {
|
|
307
|
+
range: e,
|
|
308
|
+
newText: "",
|
|
309
|
+
annotationId: t
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
e.del = r;
|
|
313
|
+
function i(e) {
|
|
314
|
+
let t = e;
|
|
315
|
+
return y.is(t) && (b.is(t.annotationId) || x.is(t.annotationId));
|
|
316
|
+
}
|
|
317
|
+
e.is = i;
|
|
318
|
+
})(ae ||= {});
|
|
319
|
+
var S;
|
|
320
|
+
(function(e) {
|
|
321
|
+
function t(e, t) {
|
|
322
|
+
return {
|
|
323
|
+
textDocument: e,
|
|
324
|
+
edits: t
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
e.create = t;
|
|
328
|
+
function n(e) {
|
|
329
|
+
let t = e;
|
|
330
|
+
return U.defined(t) && k.is(t.textDocument) && Array.isArray(t.edits);
|
|
331
|
+
}
|
|
332
|
+
e.is = n;
|
|
333
|
+
})(S ||= {});
|
|
334
|
+
var C;
|
|
335
|
+
(function(e) {
|
|
336
|
+
function t(e, t, n) {
|
|
337
|
+
let r = {
|
|
338
|
+
kind: "create",
|
|
339
|
+
uri: e
|
|
340
|
+
};
|
|
341
|
+
return t !== void 0 && (t.overwrite !== void 0 || t.ignoreIfExists !== void 0) && (r.options = t), n !== void 0 && (r.annotationId = n), r;
|
|
342
|
+
}
|
|
343
|
+
e.create = t;
|
|
344
|
+
function n(e) {
|
|
345
|
+
let t = e;
|
|
346
|
+
return t && t.kind === "create" && U.string(t.uri) && (t.options === void 0 || (t.options.overwrite === void 0 || U.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || U.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || x.is(t.annotationId));
|
|
347
|
+
}
|
|
348
|
+
e.is = n;
|
|
349
|
+
})(C ||= {});
|
|
350
|
+
var w;
|
|
351
|
+
(function(e) {
|
|
352
|
+
function t(e, t, n, r) {
|
|
353
|
+
let i = {
|
|
354
|
+
kind: "rename",
|
|
355
|
+
oldUri: e,
|
|
356
|
+
newUri: t
|
|
357
|
+
};
|
|
358
|
+
return n !== void 0 && (n.overwrite !== void 0 || n.ignoreIfExists !== void 0) && (i.options = n), r !== void 0 && (i.annotationId = r), i;
|
|
359
|
+
}
|
|
360
|
+
e.create = t;
|
|
361
|
+
function n(e) {
|
|
362
|
+
let t = e;
|
|
363
|
+
return t && t.kind === "rename" && U.string(t.oldUri) && U.string(t.newUri) && (t.options === void 0 || (t.options.overwrite === void 0 || U.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || U.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || x.is(t.annotationId));
|
|
364
|
+
}
|
|
365
|
+
e.is = n;
|
|
366
|
+
})(w ||= {});
|
|
367
|
+
var T;
|
|
368
|
+
(function(e) {
|
|
369
|
+
function t(e, t, n) {
|
|
370
|
+
let r = {
|
|
371
|
+
kind: "delete",
|
|
372
|
+
uri: e
|
|
373
|
+
};
|
|
374
|
+
return t !== void 0 && (t.recursive !== void 0 || t.ignoreIfNotExists !== void 0) && (r.options = t), n !== void 0 && (r.annotationId = n), r;
|
|
375
|
+
}
|
|
376
|
+
e.create = t;
|
|
377
|
+
function n(e) {
|
|
378
|
+
let t = e;
|
|
379
|
+
return t && t.kind === "delete" && U.string(t.uri) && (t.options === void 0 || (t.options.recursive === void 0 || U.boolean(t.options.recursive)) && (t.options.ignoreIfNotExists === void 0 || U.boolean(t.options.ignoreIfNotExists))) && (t.annotationId === void 0 || x.is(t.annotationId));
|
|
380
|
+
}
|
|
381
|
+
e.is = n;
|
|
382
|
+
})(T ||= {});
|
|
383
|
+
var E;
|
|
384
|
+
(function(e) {
|
|
385
|
+
function t(e) {
|
|
386
|
+
let t = e;
|
|
387
|
+
return t && (t.changes !== void 0 || t.documentChanges !== void 0) && (t.documentChanges === void 0 || t.documentChanges.every((e) => U.string(e.kind) ? C.is(e) || w.is(e) || T.is(e) : S.is(e)));
|
|
388
|
+
}
|
|
389
|
+
e.is = t;
|
|
390
|
+
})(E ||= {});
|
|
391
|
+
var D;
|
|
392
|
+
(function(e) {
|
|
393
|
+
function t(e) {
|
|
394
|
+
return { uri: e };
|
|
395
|
+
}
|
|
396
|
+
e.create = t;
|
|
397
|
+
function n(e) {
|
|
398
|
+
let t = e;
|
|
399
|
+
return U.defined(t) && U.string(t.uri);
|
|
400
|
+
}
|
|
401
|
+
e.is = n;
|
|
402
|
+
})(D ||= {});
|
|
403
|
+
var O;
|
|
404
|
+
(function(e) {
|
|
405
|
+
function t(e, t) {
|
|
406
|
+
return {
|
|
407
|
+
uri: e,
|
|
408
|
+
version: t
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
e.create = t;
|
|
412
|
+
function n(e) {
|
|
413
|
+
let t = e;
|
|
414
|
+
return U.defined(t) && U.string(t.uri) && U.integer(t.version);
|
|
415
|
+
}
|
|
416
|
+
e.is = n;
|
|
417
|
+
})(O ||= {});
|
|
418
|
+
var k;
|
|
419
|
+
(function(e) {
|
|
420
|
+
function t(e, t) {
|
|
421
|
+
return {
|
|
422
|
+
uri: e,
|
|
423
|
+
version: t
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
e.create = t;
|
|
427
|
+
function n(e) {
|
|
428
|
+
let t = e;
|
|
429
|
+
return U.defined(t) && U.string(t.uri) && (t.version === null || U.integer(t.version));
|
|
430
|
+
}
|
|
431
|
+
e.is = n;
|
|
432
|
+
})(k ||= {});
|
|
433
|
+
var oe;
|
|
434
|
+
(function(e) {
|
|
435
|
+
function t(e, t, n, r) {
|
|
436
|
+
return {
|
|
437
|
+
uri: e,
|
|
438
|
+
languageId: t,
|
|
439
|
+
version: n,
|
|
440
|
+
text: r
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
e.create = t;
|
|
444
|
+
function n(e) {
|
|
445
|
+
let t = e;
|
|
446
|
+
return U.defined(t) && U.string(t.uri) && U.string(t.languageId) && U.integer(t.version) && U.string(t.text);
|
|
447
|
+
}
|
|
448
|
+
e.is = n;
|
|
449
|
+
})(oe ||= {});
|
|
450
|
+
var A;
|
|
451
|
+
(function(e) {
|
|
452
|
+
e.PlainText = "plaintext", e.Markdown = "markdown";
|
|
453
|
+
function t(t) {
|
|
454
|
+
let n = t;
|
|
455
|
+
return n === e.PlainText || n === e.Markdown;
|
|
456
|
+
}
|
|
457
|
+
e.is = t;
|
|
458
|
+
})(A ||= {});
|
|
459
|
+
var j;
|
|
460
|
+
(function(e) {
|
|
461
|
+
function t(e) {
|
|
462
|
+
let t = e;
|
|
463
|
+
return U.objectLiteral(e) && A.is(t.kind) && U.string(t.value);
|
|
464
|
+
}
|
|
465
|
+
e.is = t;
|
|
466
|
+
})(j ||= {});
|
|
467
|
+
var M;
|
|
468
|
+
(function(e) {
|
|
469
|
+
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;
|
|
470
|
+
})(M ||= {});
|
|
471
|
+
var N;
|
|
472
|
+
(function(e) {
|
|
473
|
+
e.PlainText = 1, e.Snippet = 2;
|
|
474
|
+
})(N ||= {});
|
|
475
|
+
var se;
|
|
476
|
+
(function(e) {
|
|
477
|
+
e.Deprecated = 1;
|
|
478
|
+
})(se ||= {});
|
|
479
|
+
var ce;
|
|
480
|
+
(function(e) {
|
|
481
|
+
function t(e, t, n) {
|
|
482
|
+
return {
|
|
483
|
+
newText: e,
|
|
484
|
+
insert: t,
|
|
485
|
+
replace: n
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
e.create = t;
|
|
489
|
+
function n(e) {
|
|
490
|
+
let t = e;
|
|
491
|
+
return t && U.string(t.newText) && u.is(t.insert) && u.is(t.replace);
|
|
492
|
+
}
|
|
493
|
+
e.is = n;
|
|
494
|
+
})(ce ||= {});
|
|
495
|
+
var le;
|
|
496
|
+
(function(e) {
|
|
497
|
+
e.asIs = 1, e.adjustIndentation = 2;
|
|
498
|
+
})(le ||= {});
|
|
499
|
+
var ue;
|
|
500
|
+
(function(e) {
|
|
501
|
+
function t(e) {
|
|
502
|
+
let t = e;
|
|
503
|
+
return t && (U.string(t.detail) || t.detail === void 0) && (U.string(t.description) || t.description === void 0);
|
|
504
|
+
}
|
|
505
|
+
e.is = t;
|
|
506
|
+
})(ue ||= {});
|
|
507
|
+
var de;
|
|
508
|
+
(function(e) {
|
|
509
|
+
function t(e) {
|
|
510
|
+
return { label: e };
|
|
511
|
+
}
|
|
512
|
+
e.create = t;
|
|
513
|
+
})(de ||= {});
|
|
514
|
+
var fe;
|
|
515
|
+
(function(e) {
|
|
516
|
+
function t(e, t) {
|
|
517
|
+
return {
|
|
518
|
+
items: e || [],
|
|
519
|
+
isIncomplete: !!t
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
e.create = t;
|
|
523
|
+
})(fe ||= {});
|
|
524
|
+
var P;
|
|
525
|
+
(function(e) {
|
|
526
|
+
function t(e) {
|
|
527
|
+
return e.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
|
528
|
+
}
|
|
529
|
+
e.fromPlainText = t;
|
|
530
|
+
function n(e) {
|
|
531
|
+
let t = e;
|
|
532
|
+
return U.string(t) || U.objectLiteral(t) && U.string(t.language) && U.string(t.value);
|
|
533
|
+
}
|
|
534
|
+
e.is = n;
|
|
535
|
+
})(P ||= {});
|
|
536
|
+
var pe;
|
|
537
|
+
(function(e) {
|
|
538
|
+
function t(e) {
|
|
539
|
+
let t = e;
|
|
540
|
+
return !!t && U.objectLiteral(t) && (j.is(t.contents) || P.is(t.contents) || U.typedArray(t.contents, P.is)) && (e.range === void 0 || u.is(e.range));
|
|
541
|
+
}
|
|
542
|
+
e.is = t;
|
|
543
|
+
})(pe ||= {});
|
|
544
|
+
var me;
|
|
545
|
+
(function(e) {
|
|
546
|
+
function t(e, t) {
|
|
547
|
+
return t ? {
|
|
548
|
+
label: e,
|
|
549
|
+
documentation: t
|
|
550
|
+
} : { label: e };
|
|
551
|
+
}
|
|
552
|
+
e.create = t;
|
|
553
|
+
})(me ||= {});
|
|
554
|
+
var F;
|
|
555
|
+
(function(e) {
|
|
556
|
+
function t(e, t, ...n) {
|
|
557
|
+
let r = { label: e };
|
|
558
|
+
return U.defined(t) && (r.documentation = t), U.defined(n) ? r.parameters = n : r.parameters = [], r;
|
|
559
|
+
}
|
|
560
|
+
e.create = t;
|
|
561
|
+
})(F ||= {});
|
|
562
|
+
var I;
|
|
563
|
+
(function(e) {
|
|
564
|
+
e.Text = 1, e.Read = 2, e.Write = 3;
|
|
565
|
+
})(I ||= {});
|
|
566
|
+
var L;
|
|
567
|
+
(function(e) {
|
|
568
|
+
function t(e, t) {
|
|
569
|
+
let n = { range: e };
|
|
570
|
+
return U.number(t) && (n.kind = t), n;
|
|
571
|
+
}
|
|
572
|
+
e.create = t;
|
|
573
|
+
})(L ||= {});
|
|
574
|
+
var R;
|
|
575
|
+
(function(e) {
|
|
576
|
+
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;
|
|
577
|
+
})(R ||= {});
|
|
578
|
+
var z;
|
|
579
|
+
(function(e) {
|
|
580
|
+
e.Deprecated = 1;
|
|
581
|
+
})(z ||= {});
|
|
582
|
+
var he;
|
|
583
|
+
(function(e) {
|
|
584
|
+
function t(e, t, n, r, i) {
|
|
585
|
+
let a = {
|
|
586
|
+
name: e,
|
|
587
|
+
kind: t,
|
|
588
|
+
location: {
|
|
589
|
+
uri: r,
|
|
590
|
+
range: n
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
return i && (a.containerName = i), a;
|
|
594
|
+
}
|
|
595
|
+
e.create = t;
|
|
596
|
+
})(he ||= {});
|
|
597
|
+
var ge;
|
|
598
|
+
(function(e) {
|
|
599
|
+
function t(e, t, n, r) {
|
|
600
|
+
return r === void 0 ? {
|
|
601
|
+
name: e,
|
|
602
|
+
kind: t,
|
|
603
|
+
location: { uri: n }
|
|
604
|
+
} : {
|
|
605
|
+
name: e,
|
|
606
|
+
kind: t,
|
|
607
|
+
location: {
|
|
608
|
+
uri: n,
|
|
609
|
+
range: r
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
e.create = t;
|
|
614
|
+
})(ge ||= {});
|
|
615
|
+
var _e;
|
|
616
|
+
(function(e) {
|
|
617
|
+
function t(e, t, n, r, i, a) {
|
|
618
|
+
let o = {
|
|
619
|
+
name: e,
|
|
620
|
+
detail: t,
|
|
621
|
+
kind: n,
|
|
622
|
+
range: r,
|
|
623
|
+
selectionRange: i
|
|
624
|
+
};
|
|
625
|
+
return a !== void 0 && (o.children = a), o;
|
|
626
|
+
}
|
|
627
|
+
e.create = t;
|
|
628
|
+
function n(e) {
|
|
629
|
+
let t = e;
|
|
630
|
+
return t && U.string(t.name) && U.number(t.kind) && u.is(t.range) && u.is(t.selectionRange) && (t.detail === void 0 || U.string(t.detail)) && (t.deprecated === void 0 || U.boolean(t.deprecated)) && (t.children === void 0 || Array.isArray(t.children)) && (t.tags === void 0 || Array.isArray(t.tags));
|
|
631
|
+
}
|
|
632
|
+
e.is = n;
|
|
633
|
+
})(_e ||= {});
|
|
634
|
+
var ve;
|
|
635
|
+
(function(e) {
|
|
636
|
+
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";
|
|
637
|
+
})(ve ||= {});
|
|
638
|
+
var B;
|
|
639
|
+
(function(e) {
|
|
640
|
+
e.Invoked = 1, e.Automatic = 2;
|
|
641
|
+
})(B ||= {});
|
|
642
|
+
var ye;
|
|
643
|
+
(function(e) {
|
|
644
|
+
function t(e, t, n) {
|
|
645
|
+
let r = { diagnostics: e };
|
|
646
|
+
return t != null && (r.only = t), n != null && (r.triggerKind = n), r;
|
|
647
|
+
}
|
|
648
|
+
e.create = t;
|
|
649
|
+
function n(e) {
|
|
650
|
+
let t = e;
|
|
651
|
+
return U.defined(t) && U.typedArray(t.diagnostics, _.is) && (t.only === void 0 || U.typedArray(t.only, U.string)) && (t.triggerKind === void 0 || t.triggerKind === B.Invoked || t.triggerKind === B.Automatic);
|
|
652
|
+
}
|
|
653
|
+
e.is = n;
|
|
654
|
+
})(ye ||= {});
|
|
655
|
+
var be;
|
|
656
|
+
(function(e) {
|
|
657
|
+
function t(e, t, n) {
|
|
658
|
+
let r = { title: e }, i = !0;
|
|
659
|
+
return typeof t == "string" ? (i = !1, r.kind = t) : v.is(t) ? r.command = t : r.edit = t, i && n !== void 0 && (r.kind = n), r;
|
|
660
|
+
}
|
|
661
|
+
e.create = t;
|
|
662
|
+
function n(e) {
|
|
663
|
+
let t = e;
|
|
664
|
+
return t && U.string(t.title) && (t.diagnostics === void 0 || U.typedArray(t.diagnostics, _.is)) && (t.kind === void 0 || U.string(t.kind)) && (t.edit !== void 0 || t.command !== void 0) && (t.command === void 0 || v.is(t.command)) && (t.isPreferred === void 0 || U.boolean(t.isPreferred)) && (t.edit === void 0 || E.is(t.edit));
|
|
665
|
+
}
|
|
666
|
+
e.is = n;
|
|
667
|
+
})(be ||= {});
|
|
668
|
+
var xe;
|
|
669
|
+
(function(e) {
|
|
670
|
+
function t(e, t) {
|
|
671
|
+
let n = { range: e };
|
|
672
|
+
return U.defined(t) && (n.data = t), n;
|
|
673
|
+
}
|
|
674
|
+
e.create = t;
|
|
675
|
+
function n(e) {
|
|
676
|
+
let t = e;
|
|
677
|
+
return U.defined(t) && u.is(t.range) && (U.undefined(t.command) || v.is(t.command));
|
|
678
|
+
}
|
|
679
|
+
e.is = n;
|
|
680
|
+
})(xe ||= {});
|
|
681
|
+
var Se;
|
|
682
|
+
(function(e) {
|
|
683
|
+
function t(e, t) {
|
|
684
|
+
return {
|
|
685
|
+
tabSize: e,
|
|
686
|
+
insertSpaces: t
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
e.create = t;
|
|
690
|
+
function n(e) {
|
|
691
|
+
let t = e;
|
|
692
|
+
return U.defined(t) && U.uinteger(t.tabSize) && U.boolean(t.insertSpaces);
|
|
693
|
+
}
|
|
694
|
+
e.is = n;
|
|
695
|
+
})(Se ||= {});
|
|
696
|
+
var Ce;
|
|
697
|
+
(function(e) {
|
|
698
|
+
function t(e, t, n) {
|
|
699
|
+
return {
|
|
700
|
+
range: e,
|
|
701
|
+
target: t,
|
|
702
|
+
data: n
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
e.create = t;
|
|
706
|
+
function n(e) {
|
|
707
|
+
let t = e;
|
|
708
|
+
return U.defined(t) && u.is(t.range) && (U.undefined(t.target) || U.string(t.target));
|
|
709
|
+
}
|
|
710
|
+
e.is = n;
|
|
711
|
+
})(Ce ||= {});
|
|
712
|
+
var we;
|
|
713
|
+
(function(e) {
|
|
714
|
+
function t(e, t) {
|
|
715
|
+
return {
|
|
716
|
+
range: e,
|
|
717
|
+
parent: t
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
e.create = t;
|
|
721
|
+
function n(t) {
|
|
722
|
+
let n = t;
|
|
723
|
+
return U.objectLiteral(n) && u.is(n.range) && (n.parent === void 0 || e.is(n.parent));
|
|
724
|
+
}
|
|
725
|
+
e.is = n;
|
|
726
|
+
})(we ||= {});
|
|
727
|
+
var Te;
|
|
728
|
+
(function(e) {
|
|
729
|
+
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";
|
|
730
|
+
})(Te ||= {});
|
|
731
|
+
var Ee;
|
|
732
|
+
(function(e) {
|
|
733
|
+
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";
|
|
734
|
+
})(Ee ||= {});
|
|
735
|
+
var De;
|
|
736
|
+
(function(e) {
|
|
737
|
+
function t(e) {
|
|
738
|
+
let t = e;
|
|
739
|
+
return U.objectLiteral(t) && (t.resultId === void 0 || typeof t.resultId == "string") && Array.isArray(t.data) && (t.data.length === 0 || typeof t.data[0] == "number");
|
|
740
|
+
}
|
|
741
|
+
e.is = t;
|
|
742
|
+
})(De ||= {});
|
|
743
|
+
var Oe;
|
|
744
|
+
(function(e) {
|
|
745
|
+
function t(e, t) {
|
|
746
|
+
return {
|
|
747
|
+
range: e,
|
|
748
|
+
text: t
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
e.create = t;
|
|
752
|
+
function n(e) {
|
|
753
|
+
let t = e;
|
|
754
|
+
return t != null && u.is(t.range) && U.string(t.text);
|
|
755
|
+
}
|
|
756
|
+
e.is = n;
|
|
757
|
+
})(Oe ||= {});
|
|
758
|
+
var ke;
|
|
759
|
+
(function(e) {
|
|
760
|
+
function t(e, t, n) {
|
|
761
|
+
return {
|
|
762
|
+
range: e,
|
|
763
|
+
variableName: t,
|
|
764
|
+
caseSensitiveLookup: n
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
e.create = t;
|
|
768
|
+
function n(e) {
|
|
769
|
+
let t = e;
|
|
770
|
+
return t != null && u.is(t.range) && U.boolean(t.caseSensitiveLookup) && (U.string(t.variableName) || t.variableName === void 0);
|
|
771
|
+
}
|
|
772
|
+
e.is = n;
|
|
773
|
+
})(ke ||= {});
|
|
774
|
+
var Ae;
|
|
775
|
+
(function(e) {
|
|
776
|
+
function t(e, t) {
|
|
777
|
+
return {
|
|
778
|
+
range: e,
|
|
779
|
+
expression: t
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
e.create = t;
|
|
783
|
+
function n(e) {
|
|
784
|
+
let t = e;
|
|
785
|
+
return t != null && u.is(t.range) && (U.string(t.expression) || t.expression === void 0);
|
|
786
|
+
}
|
|
787
|
+
e.is = n;
|
|
788
|
+
})(Ae ||= {});
|
|
789
|
+
var je;
|
|
790
|
+
(function(e) {
|
|
791
|
+
function t(e, t) {
|
|
792
|
+
return {
|
|
793
|
+
frameId: e,
|
|
794
|
+
stoppedLocation: t
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
e.create = t;
|
|
798
|
+
function n(e) {
|
|
799
|
+
let t = e;
|
|
800
|
+
return U.defined(t) && u.is(e.stoppedLocation);
|
|
801
|
+
}
|
|
802
|
+
e.is = n;
|
|
803
|
+
})(je ||= {});
|
|
804
|
+
var V;
|
|
805
|
+
(function(e) {
|
|
806
|
+
e.Type = 1, e.Parameter = 2;
|
|
807
|
+
function t(e) {
|
|
808
|
+
return e === 1 || e === 2;
|
|
809
|
+
}
|
|
810
|
+
e.is = t;
|
|
811
|
+
})(V ||= {});
|
|
812
|
+
var H;
|
|
813
|
+
(function(e) {
|
|
814
|
+
function t(e) {
|
|
815
|
+
return { value: e };
|
|
816
|
+
}
|
|
817
|
+
e.create = t;
|
|
818
|
+
function n(e) {
|
|
819
|
+
let t = e;
|
|
820
|
+
return U.objectLiteral(t) && (t.tooltip === void 0 || U.string(t.tooltip) || j.is(t.tooltip)) && (t.location === void 0 || d.is(t.location)) && (t.command === void 0 || v.is(t.command));
|
|
821
|
+
}
|
|
822
|
+
e.is = n;
|
|
823
|
+
})(H ||= {});
|
|
824
|
+
var Me;
|
|
825
|
+
(function(e) {
|
|
826
|
+
function t(e, t, n) {
|
|
827
|
+
let r = {
|
|
828
|
+
position: e,
|
|
829
|
+
label: t
|
|
830
|
+
};
|
|
831
|
+
return n !== void 0 && (r.kind = n), r;
|
|
832
|
+
}
|
|
833
|
+
e.create = t;
|
|
834
|
+
function n(e) {
|
|
835
|
+
let t = e;
|
|
836
|
+
return U.objectLiteral(t) && l.is(t.position) && (U.string(t.label) || U.typedArray(t.label, H.is)) && (t.kind === void 0 || V.is(t.kind)) && t.textEdits === void 0 || U.typedArray(t.textEdits, y.is) && (t.tooltip === void 0 || U.string(t.tooltip) || j.is(t.tooltip)) && (t.paddingLeft === void 0 || U.boolean(t.paddingLeft)) && (t.paddingRight === void 0 || U.boolean(t.paddingRight));
|
|
837
|
+
}
|
|
838
|
+
e.is = n;
|
|
839
|
+
})(Me ||= {});
|
|
840
|
+
var Ne;
|
|
841
|
+
(function(e) {
|
|
842
|
+
function t(e) {
|
|
843
|
+
return {
|
|
844
|
+
kind: "snippet",
|
|
845
|
+
value: e
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
e.createSnippet = t;
|
|
849
|
+
})(Ne ||= {});
|
|
850
|
+
var Pe;
|
|
851
|
+
(function(e) {
|
|
852
|
+
function t(e, t, n, r) {
|
|
853
|
+
return {
|
|
854
|
+
insertText: e,
|
|
855
|
+
filterText: t,
|
|
856
|
+
range: n,
|
|
857
|
+
command: r
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
e.create = t;
|
|
861
|
+
})(Pe ||= {});
|
|
862
|
+
var Fe;
|
|
863
|
+
(function(e) {
|
|
864
|
+
function t(e) {
|
|
865
|
+
return { items: e };
|
|
866
|
+
}
|
|
867
|
+
e.create = t;
|
|
868
|
+
})(Fe ||= {});
|
|
869
|
+
var Ie;
|
|
870
|
+
(function(e) {
|
|
871
|
+
e.Invoked = 0, e.Automatic = 1;
|
|
872
|
+
})(Ie ||= {});
|
|
873
|
+
var Le;
|
|
874
|
+
(function(e) {
|
|
875
|
+
function t(e, t) {
|
|
876
|
+
return {
|
|
877
|
+
range: e,
|
|
878
|
+
text: t
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
e.create = t;
|
|
882
|
+
})(Le ||= {});
|
|
883
|
+
var Re;
|
|
884
|
+
(function(e) {
|
|
885
|
+
function t(e, t) {
|
|
886
|
+
return {
|
|
887
|
+
triggerKind: e,
|
|
888
|
+
selectedCompletionInfo: t
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
e.create = t;
|
|
892
|
+
})(Re ||= {});
|
|
893
|
+
var ze;
|
|
894
|
+
(function(e) {
|
|
895
|
+
function t(e) {
|
|
896
|
+
let t = e;
|
|
897
|
+
return U.objectLiteral(t) && o.is(t.uri) && U.string(t.name);
|
|
898
|
+
}
|
|
899
|
+
e.is = t;
|
|
900
|
+
})(ze ||= {});
|
|
901
|
+
var Be;
|
|
902
|
+
(function(e) {
|
|
903
|
+
function t(e, t, n, r) {
|
|
904
|
+
return new Ve(e, t, n, r);
|
|
905
|
+
}
|
|
906
|
+
e.create = t;
|
|
907
|
+
function n(e) {
|
|
908
|
+
let t = e;
|
|
909
|
+
return !!(U.defined(t) && U.string(t.uri) && (U.undefined(t.languageId) || U.string(t.languageId)) && U.uinteger(t.lineCount) && U.func(t.getText) && U.func(t.positionAt) && U.func(t.offsetAt));
|
|
910
|
+
}
|
|
911
|
+
e.is = n;
|
|
912
|
+
function r(e, t) {
|
|
913
|
+
let n = e.getText(), r = i(t, (e, t) => {
|
|
914
|
+
let n = e.range.start.line - t.range.start.line;
|
|
915
|
+
return n === 0 ? e.range.start.character - t.range.start.character : n;
|
|
916
|
+
}), a = n.length;
|
|
917
|
+
for (let t = r.length - 1; t >= 0; t--) {
|
|
918
|
+
let i = r[t], o = e.offsetAt(i.range.start), s = e.offsetAt(i.range.end);
|
|
919
|
+
if (s <= a) n = n.substring(0, o) + i.newText + n.substring(s, n.length);
|
|
920
|
+
else throw Error("Overlapping edit");
|
|
921
|
+
a = o;
|
|
922
|
+
}
|
|
923
|
+
return n;
|
|
924
|
+
}
|
|
925
|
+
e.applyEdits = r;
|
|
926
|
+
function i(e, t) {
|
|
927
|
+
if (e.length <= 1) return e;
|
|
928
|
+
let n = e.length / 2 | 0, r = e.slice(0, n), a = e.slice(n);
|
|
929
|
+
i(r, t), i(a, t);
|
|
930
|
+
let o = 0, s = 0, c = 0;
|
|
931
|
+
for (; o < r.length && s < a.length;) t(r[o], a[s]) <= 0 ? e[c++] = r[o++] : e[c++] = a[s++];
|
|
932
|
+
for (; o < r.length;) e[c++] = r[o++];
|
|
933
|
+
for (; s < a.length;) e[c++] = a[s++];
|
|
934
|
+
return e;
|
|
935
|
+
}
|
|
936
|
+
})(Be ||= {});
|
|
937
|
+
var Ve = class {
|
|
938
|
+
constructor(e, t, n, r) {
|
|
939
|
+
this._uri = e, this._languageId = t, this._version = n, this._content = r, this._lineOffsets = void 0;
|
|
940
|
+
}
|
|
941
|
+
get uri() {
|
|
942
|
+
return this._uri;
|
|
943
|
+
}
|
|
944
|
+
get languageId() {
|
|
945
|
+
return this._languageId;
|
|
946
|
+
}
|
|
947
|
+
get version() {
|
|
948
|
+
return this._version;
|
|
949
|
+
}
|
|
950
|
+
getText(e) {
|
|
951
|
+
if (e) {
|
|
952
|
+
let t = this.offsetAt(e.start), n = this.offsetAt(e.end);
|
|
953
|
+
return this._content.substring(t, n);
|
|
954
|
+
}
|
|
955
|
+
return this._content;
|
|
956
|
+
}
|
|
957
|
+
update(e, t) {
|
|
958
|
+
this._content = e.text, this._version = t, this._lineOffsets = void 0;
|
|
959
|
+
}
|
|
960
|
+
getLineOffsets() {
|
|
961
|
+
if (this._lineOffsets === void 0) {
|
|
962
|
+
let e = [], t = this._content, n = !0;
|
|
963
|
+
for (let r = 0; r < t.length; r++) {
|
|
964
|
+
n &&= (e.push(r), !1);
|
|
965
|
+
let i = t.charAt(r);
|
|
966
|
+
n = i === "\r" || i === "\n", i === "\r" && r + 1 < t.length && t.charAt(r + 1) === "\n" && r++;
|
|
967
|
+
}
|
|
968
|
+
n && t.length > 0 && e.push(t.length), this._lineOffsets = e;
|
|
969
|
+
}
|
|
970
|
+
return this._lineOffsets;
|
|
971
|
+
}
|
|
972
|
+
positionAt(e) {
|
|
973
|
+
e = Math.max(Math.min(e, this._content.length), 0);
|
|
974
|
+
let t = this.getLineOffsets(), n = 0, r = t.length;
|
|
975
|
+
if (r === 0) return l.create(0, e);
|
|
976
|
+
for (; n < r;) {
|
|
977
|
+
let i = Math.floor((n + r) / 2);
|
|
978
|
+
t[i] > e ? r = i : n = i + 1;
|
|
979
|
+
}
|
|
980
|
+
let i = n - 1;
|
|
981
|
+
return l.create(i, e - t[i]);
|
|
982
|
+
}
|
|
983
|
+
offsetAt(e) {
|
|
984
|
+
let t = this.getLineOffsets();
|
|
985
|
+
if (e.line >= t.length) return this._content.length;
|
|
986
|
+
if (e.line < 0) return 0;
|
|
987
|
+
let n = t[e.line], r = e.line + 1 < t.length ? t[e.line + 1] : this._content.length;
|
|
988
|
+
return Math.max(Math.min(n + e.character, r), n);
|
|
989
|
+
}
|
|
990
|
+
get lineCount() {
|
|
991
|
+
return this.getLineOffsets().length;
|
|
992
|
+
}
|
|
993
|
+
}, U;
|
|
994
|
+
(function(e) {
|
|
995
|
+
let t = Object.prototype.toString;
|
|
996
|
+
function n(e) {
|
|
997
|
+
return e !== void 0;
|
|
998
|
+
}
|
|
999
|
+
e.defined = n;
|
|
1000
|
+
function r(e) {
|
|
1001
|
+
return e === void 0;
|
|
1002
|
+
}
|
|
1003
|
+
e.undefined = r;
|
|
1004
|
+
function i(e) {
|
|
1005
|
+
return e === !0 || e === !1;
|
|
1006
|
+
}
|
|
1007
|
+
e.boolean = i;
|
|
1008
|
+
function a(e) {
|
|
1009
|
+
return t.call(e) === "[object String]";
|
|
1010
|
+
}
|
|
1011
|
+
e.string = a;
|
|
1012
|
+
function o(e) {
|
|
1013
|
+
return t.call(e) === "[object Number]";
|
|
1014
|
+
}
|
|
1015
|
+
e.number = o;
|
|
1016
|
+
function s(e, n, r) {
|
|
1017
|
+
return t.call(e) === "[object Number]" && n <= e && e <= r;
|
|
1018
|
+
}
|
|
1019
|
+
e.numberRange = s;
|
|
1020
|
+
function c(e) {
|
|
1021
|
+
return t.call(e) === "[object Number]" && -2147483648 <= e && e <= 2147483647;
|
|
1022
|
+
}
|
|
1023
|
+
e.integer = c;
|
|
1024
|
+
function l(e) {
|
|
1025
|
+
return t.call(e) === "[object Number]" && 0 <= e && e <= 2147483647;
|
|
1026
|
+
}
|
|
1027
|
+
e.uinteger = l;
|
|
1028
|
+
function u(e) {
|
|
1029
|
+
return t.call(e) === "[object Function]";
|
|
1030
|
+
}
|
|
1031
|
+
e.func = u;
|
|
1032
|
+
function d(e) {
|
|
1033
|
+
return typeof e == "object" && !!e;
|
|
1034
|
+
}
|
|
1035
|
+
e.objectLiteral = d;
|
|
1036
|
+
function f(e, t) {
|
|
1037
|
+
return Array.isArray(e) && e.every(t);
|
|
1038
|
+
}
|
|
1039
|
+
e.typedArray = f;
|
|
1040
|
+
})(U ||= {});
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region ../../node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/esm/vs/language/common/lspLanguageFeatures.js
|
|
1043
|
+
var He = class {
|
|
1044
|
+
constructor(e, t, n) {
|
|
1045
|
+
this._languageId = e, this._worker = t, this._disposables = [], this._listener = /* @__PURE__ */ Object.create(null);
|
|
1046
|
+
let r = (e) => {
|
|
1047
|
+
let t = e.getLanguageId();
|
|
1048
|
+
if (t !== this._languageId) return;
|
|
1049
|
+
let n;
|
|
1050
|
+
this._listener[e.uri.toString()] = e.onDidChangeContent(() => {
|
|
1051
|
+
window.clearTimeout(n), n = window.setTimeout(() => this._doValidate(e.uri, t), 500);
|
|
1052
|
+
}), this._doValidate(e.uri, t);
|
|
1053
|
+
}, a = (e) => {
|
|
1054
|
+
i.setModelMarkers(e, this._languageId, []);
|
|
1055
|
+
let t = e.uri.toString(), n = this._listener[t];
|
|
1056
|
+
n && (n.dispose(), delete this._listener[t]);
|
|
1057
|
+
};
|
|
1058
|
+
this._disposables.push(i.onDidCreateModel(r)), this._disposables.push(i.onWillDisposeModel(a)), this._disposables.push(i.onDidChangeModelLanguage((e) => {
|
|
1059
|
+
a(e.model), r(e.model);
|
|
1060
|
+
})), this._disposables.push(n((e) => {
|
|
1061
|
+
i.getModels().forEach((e) => {
|
|
1062
|
+
e.getLanguageId() === this._languageId && (a(e), r(e));
|
|
1063
|
+
});
|
|
1064
|
+
})), this._disposables.push({ dispose: () => {
|
|
1065
|
+
i.getModels().forEach(a);
|
|
1066
|
+
for (let e in this._listener) this._listener[e].dispose();
|
|
1067
|
+
} }), i.getModels().forEach(r);
|
|
1068
|
+
}
|
|
1069
|
+
dispose() {
|
|
1070
|
+
this._disposables.forEach((e) => e && e.dispose()), this._disposables.length = 0;
|
|
1071
|
+
}
|
|
1072
|
+
_doValidate(e, t) {
|
|
1073
|
+
this._worker(e).then((t) => t.doValidation(e.toString())).then((n) => {
|
|
1074
|
+
let r = n.map((t) => We(e, t)), a = i.getModel(e);
|
|
1075
|
+
a && a.getLanguageId() === t && i.setModelMarkers(a, t, r);
|
|
1076
|
+
}).then(void 0, (e) => {
|
|
1077
|
+
console.error(e);
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
function Ue(e) {
|
|
1082
|
+
switch (e) {
|
|
1083
|
+
case g.Error: return r.Error;
|
|
1084
|
+
case g.Warning: return r.Warning;
|
|
1085
|
+
case g.Information: return r.Info;
|
|
1086
|
+
case g.Hint: return r.Hint;
|
|
1087
|
+
default: return r.Info;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function We(e, t) {
|
|
1091
|
+
let n = typeof t.code == "number" ? String(t.code) : t.code;
|
|
1092
|
+
return {
|
|
1093
|
+
severity: Ue(t.severity),
|
|
1094
|
+
startLineNumber: t.range.start.line + 1,
|
|
1095
|
+
startColumn: t.range.start.character + 1,
|
|
1096
|
+
endLineNumber: t.range.end.line + 1,
|
|
1097
|
+
endColumn: t.range.end.character + 1,
|
|
1098
|
+
message: t.message,
|
|
1099
|
+
code: n,
|
|
1100
|
+
source: t.source
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
var Ge = class {
|
|
1104
|
+
constructor(e, t) {
|
|
1105
|
+
this._worker = e, this._triggerCharacters = t;
|
|
1106
|
+
}
|
|
1107
|
+
get triggerCharacters() {
|
|
1108
|
+
return this._triggerCharacters;
|
|
1109
|
+
}
|
|
1110
|
+
provideCompletionItems(e, r, i, a) {
|
|
1111
|
+
let o = e.uri;
|
|
1112
|
+
return this._worker(o).then((e) => e.doComplete(o.toString(), W(r))).then((i) => {
|
|
1113
|
+
if (!i) return;
|
|
1114
|
+
let a = e.getWordUntilPosition(r), o = new n(r.lineNumber, a.startColumn, r.lineNumber, a.endColumn), s = i.items.map((e) => {
|
|
1115
|
+
let n = {
|
|
1116
|
+
label: e.label,
|
|
1117
|
+
insertText: e.insertText || e.label,
|
|
1118
|
+
sortText: e.sortText,
|
|
1119
|
+
filterText: e.filterText,
|
|
1120
|
+
documentation: e.documentation,
|
|
1121
|
+
detail: e.detail,
|
|
1122
|
+
command: Je(e.command),
|
|
1123
|
+
range: o,
|
|
1124
|
+
kind: qe(e.kind)
|
|
1125
|
+
};
|
|
1126
|
+
return e.textEdit && (Ke(e.textEdit) ? n.range = {
|
|
1127
|
+
insert: K(e.textEdit.insert),
|
|
1128
|
+
replace: K(e.textEdit.replace)
|
|
1129
|
+
} : n.range = K(e.textEdit.range), n.insertText = e.textEdit.newText), e.additionalTextEdits && (n.additionalTextEdits = e.additionalTextEdits.map(q)), e.insertTextFormat === N.Snippet && (n.insertTextRules = t.CompletionItemInsertTextRule.InsertAsSnippet), n;
|
|
1130
|
+
});
|
|
1131
|
+
return {
|
|
1132
|
+
isIncomplete: i.isIncomplete,
|
|
1133
|
+
suggestions: s
|
|
1134
|
+
};
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
};
|
|
1138
|
+
function W(e) {
|
|
1139
|
+
if (e) return {
|
|
1140
|
+
character: e.column - 1,
|
|
1141
|
+
line: e.lineNumber - 1
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
function G(e) {
|
|
1145
|
+
if (e) return {
|
|
1146
|
+
start: {
|
|
1147
|
+
line: e.startLineNumber - 1,
|
|
1148
|
+
character: e.startColumn - 1
|
|
1149
|
+
},
|
|
1150
|
+
end: {
|
|
1151
|
+
line: e.endLineNumber - 1,
|
|
1152
|
+
character: e.endColumn - 1
|
|
1153
|
+
}
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
function K(e) {
|
|
1157
|
+
if (e) return new n(e.start.line + 1, e.start.character + 1, e.end.line + 1, e.end.character + 1);
|
|
1158
|
+
}
|
|
1159
|
+
function Ke(e) {
|
|
1160
|
+
return e.insert !== void 0 && e.replace !== void 0;
|
|
1161
|
+
}
|
|
1162
|
+
function qe(e) {
|
|
1163
|
+
let n = t.CompletionItemKind;
|
|
1164
|
+
switch (e) {
|
|
1165
|
+
case M.Text: return n.Text;
|
|
1166
|
+
case M.Method: return n.Method;
|
|
1167
|
+
case M.Function: return n.Function;
|
|
1168
|
+
case M.Constructor: return n.Constructor;
|
|
1169
|
+
case M.Field: return n.Field;
|
|
1170
|
+
case M.Variable: return n.Variable;
|
|
1171
|
+
case M.Class: return n.Class;
|
|
1172
|
+
case M.Interface: return n.Interface;
|
|
1173
|
+
case M.Module: return n.Module;
|
|
1174
|
+
case M.Property: return n.Property;
|
|
1175
|
+
case M.Unit: return n.Unit;
|
|
1176
|
+
case M.Value: return n.Value;
|
|
1177
|
+
case M.Enum: return n.Enum;
|
|
1178
|
+
case M.Keyword: return n.Keyword;
|
|
1179
|
+
case M.Snippet: return n.Snippet;
|
|
1180
|
+
case M.Color: return n.Color;
|
|
1181
|
+
case M.File: return n.File;
|
|
1182
|
+
case M.Reference: return n.Reference;
|
|
1183
|
+
}
|
|
1184
|
+
return n.Property;
|
|
1185
|
+
}
|
|
1186
|
+
function q(e) {
|
|
1187
|
+
if (e) return {
|
|
1188
|
+
range: K(e.range),
|
|
1189
|
+
text: e.newText
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
function Je(e) {
|
|
1193
|
+
return e && e.command === "editor.action.triggerSuggest" ? {
|
|
1194
|
+
id: e.command,
|
|
1195
|
+
title: e.title,
|
|
1196
|
+
arguments: e.arguments
|
|
1197
|
+
} : void 0;
|
|
1198
|
+
}
|
|
1199
|
+
var Ye = class {
|
|
1200
|
+
constructor(e) {
|
|
1201
|
+
this._worker = e;
|
|
1202
|
+
}
|
|
1203
|
+
provideHover(e, t, n) {
|
|
1204
|
+
let r = e.uri;
|
|
1205
|
+
return this._worker(r).then((e) => e.doHover(r.toString(), W(t))).then((e) => {
|
|
1206
|
+
if (e) return {
|
|
1207
|
+
range: K(e.range),
|
|
1208
|
+
contents: Ze(e.contents)
|
|
1209
|
+
};
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
function Xe(e) {
|
|
1214
|
+
return e && typeof e == "object" && typeof e.kind == "string";
|
|
1215
|
+
}
|
|
1216
|
+
function J(e) {
|
|
1217
|
+
return typeof e == "string" ? { value: e } : Xe(e) ? e.kind === "plaintext" ? { value: e.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&") } : { value: e.value } : { value: "```" + e.language + "\n" + e.value + "\n```\n" };
|
|
1218
|
+
}
|
|
1219
|
+
function Ze(e) {
|
|
1220
|
+
if (e) return Array.isArray(e) ? e.map(J) : [J(e)];
|
|
1221
|
+
}
|
|
1222
|
+
var Qe = class {
|
|
1223
|
+
constructor(e) {
|
|
1224
|
+
this._worker = e;
|
|
1225
|
+
}
|
|
1226
|
+
provideDocumentHighlights(e, t, n) {
|
|
1227
|
+
let r = e.uri;
|
|
1228
|
+
return this._worker(r).then((e) => e.findDocumentHighlights(r.toString(), W(t))).then((e) => {
|
|
1229
|
+
if (e) return e.map((e) => ({
|
|
1230
|
+
range: K(e.range),
|
|
1231
|
+
kind: $e(e.kind)
|
|
1232
|
+
}));
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
1236
|
+
function $e(e) {
|
|
1237
|
+
switch (e) {
|
|
1238
|
+
case I.Read: return t.DocumentHighlightKind.Read;
|
|
1239
|
+
case I.Write: return t.DocumentHighlightKind.Write;
|
|
1240
|
+
case I.Text: return t.DocumentHighlightKind.Text;
|
|
1241
|
+
}
|
|
1242
|
+
return t.DocumentHighlightKind.Text;
|
|
1243
|
+
}
|
|
1244
|
+
var et = class {
|
|
1245
|
+
constructor(e) {
|
|
1246
|
+
this._worker = e;
|
|
1247
|
+
}
|
|
1248
|
+
provideDefinition(e, t, n) {
|
|
1249
|
+
let r = e.uri;
|
|
1250
|
+
return this._worker(r).then((e) => e.findDefinition(r.toString(), W(t))).then((e) => {
|
|
1251
|
+
if (e) return [Y(e)];
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
function Y(t) {
|
|
1256
|
+
return {
|
|
1257
|
+
uri: e.parse(t.uri),
|
|
1258
|
+
range: K(t.range)
|
|
1259
|
+
};
|
|
1260
|
+
}
|
|
1261
|
+
var tt = class {
|
|
1262
|
+
constructor(e) {
|
|
1263
|
+
this._worker = e;
|
|
1264
|
+
}
|
|
1265
|
+
provideReferences(e, t, n, r) {
|
|
1266
|
+
let i = e.uri;
|
|
1267
|
+
return this._worker(i).then((e) => e.findReferences(i.toString(), W(t))).then((e) => {
|
|
1268
|
+
if (e) return e.map(Y);
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
}, nt = class {
|
|
1272
|
+
constructor(e) {
|
|
1273
|
+
this._worker = e;
|
|
1274
|
+
}
|
|
1275
|
+
provideRenameEdits(e, t, n, r) {
|
|
1276
|
+
let i = e.uri;
|
|
1277
|
+
return this._worker(i).then((e) => e.doRename(i.toString(), W(t), n)).then((e) => rt(e));
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
function rt(t) {
|
|
1281
|
+
if (!t || !t.changes) return;
|
|
1282
|
+
let n = [];
|
|
1283
|
+
for (let r in t.changes) {
|
|
1284
|
+
let i = e.parse(r);
|
|
1285
|
+
for (let e of t.changes[r]) n.push({
|
|
1286
|
+
resource: i,
|
|
1287
|
+
versionId: void 0,
|
|
1288
|
+
textEdit: {
|
|
1289
|
+
range: K(e.range),
|
|
1290
|
+
text: e.newText
|
|
1291
|
+
}
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
return { edits: n };
|
|
1295
|
+
}
|
|
1296
|
+
var it = class {
|
|
1297
|
+
constructor(e) {
|
|
1298
|
+
this._worker = e;
|
|
1299
|
+
}
|
|
1300
|
+
provideDocumentSymbols(e, t) {
|
|
1301
|
+
let n = e.uri;
|
|
1302
|
+
return this._worker(n).then((e) => e.findDocumentSymbols(n.toString())).then((e) => {
|
|
1303
|
+
if (e) return e.map((e) => X(e) ? Z(e) : {
|
|
1304
|
+
name: e.name,
|
|
1305
|
+
detail: "",
|
|
1306
|
+
containerName: e.containerName,
|
|
1307
|
+
kind: Q(e.kind),
|
|
1308
|
+
range: K(e.location.range),
|
|
1309
|
+
selectionRange: K(e.location.range),
|
|
1310
|
+
tags: []
|
|
1311
|
+
});
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
function X(e) {
|
|
1316
|
+
return "children" in e;
|
|
1317
|
+
}
|
|
1318
|
+
function Z(e) {
|
|
1319
|
+
return {
|
|
1320
|
+
name: e.name,
|
|
1321
|
+
detail: e.detail ?? "",
|
|
1322
|
+
kind: Q(e.kind),
|
|
1323
|
+
range: K(e.range),
|
|
1324
|
+
selectionRange: K(e.selectionRange),
|
|
1325
|
+
tags: e.tags ?? [],
|
|
1326
|
+
children: (e.children ?? []).map((e) => Z(e))
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
function Q(e) {
|
|
1330
|
+
let n = t.SymbolKind;
|
|
1331
|
+
switch (e) {
|
|
1332
|
+
case R.File: return n.File;
|
|
1333
|
+
case R.Module: return n.Module;
|
|
1334
|
+
case R.Namespace: return n.Namespace;
|
|
1335
|
+
case R.Package: return n.Package;
|
|
1336
|
+
case R.Class: return n.Class;
|
|
1337
|
+
case R.Method: return n.Method;
|
|
1338
|
+
case R.Property: return n.Property;
|
|
1339
|
+
case R.Field: return n.Field;
|
|
1340
|
+
case R.Constructor: return n.Constructor;
|
|
1341
|
+
case R.Enum: return n.Enum;
|
|
1342
|
+
case R.Interface: return n.Interface;
|
|
1343
|
+
case R.Function: return n.Function;
|
|
1344
|
+
case R.Variable: return n.Variable;
|
|
1345
|
+
case R.Constant: return n.Constant;
|
|
1346
|
+
case R.String: return n.String;
|
|
1347
|
+
case R.Number: return n.Number;
|
|
1348
|
+
case R.Boolean: return n.Boolean;
|
|
1349
|
+
case R.Array: return n.Array;
|
|
1350
|
+
}
|
|
1351
|
+
return n.Function;
|
|
1352
|
+
}
|
|
1353
|
+
var at = class {
|
|
1354
|
+
constructor(e) {
|
|
1355
|
+
this._worker = e;
|
|
1356
|
+
}
|
|
1357
|
+
provideLinks(e, t) {
|
|
1358
|
+
let n = e.uri;
|
|
1359
|
+
return this._worker(n).then((e) => e.findDocumentLinks(n.toString())).then((e) => {
|
|
1360
|
+
if (e) return { links: e.map((e) => ({
|
|
1361
|
+
range: K(e.range),
|
|
1362
|
+
url: e.target
|
|
1363
|
+
})) };
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
}, ot = class {
|
|
1367
|
+
constructor(e) {
|
|
1368
|
+
this._worker = e;
|
|
1369
|
+
}
|
|
1370
|
+
provideDocumentFormattingEdits(e, t, n) {
|
|
1371
|
+
let r = e.uri;
|
|
1372
|
+
return this._worker(r).then((e) => e.format(r.toString(), null, $(t)).then((e) => {
|
|
1373
|
+
if (!(!e || e.length === 0)) return e.map(q);
|
|
1374
|
+
}));
|
|
1375
|
+
}
|
|
1376
|
+
}, st = class {
|
|
1377
|
+
constructor(e) {
|
|
1378
|
+
this._worker = e, this.canFormatMultipleRanges = !1;
|
|
1379
|
+
}
|
|
1380
|
+
provideDocumentRangeFormattingEdits(e, t, n, r) {
|
|
1381
|
+
let i = e.uri;
|
|
1382
|
+
return this._worker(i).then((e) => e.format(i.toString(), G(t), $(n)).then((e) => {
|
|
1383
|
+
if (!(!e || e.length === 0)) return e.map(q);
|
|
1384
|
+
}));
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1387
|
+
function $(e) {
|
|
1388
|
+
return {
|
|
1389
|
+
tabSize: e.tabSize,
|
|
1390
|
+
insertSpaces: e.insertSpaces
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
var ct = class {
|
|
1394
|
+
constructor(e) {
|
|
1395
|
+
this._worker = e;
|
|
1396
|
+
}
|
|
1397
|
+
provideDocumentColors(e, t) {
|
|
1398
|
+
let n = e.uri;
|
|
1399
|
+
return this._worker(n).then((e) => e.findDocumentColors(n.toString())).then((e) => {
|
|
1400
|
+
if (e) return e.map((e) => ({
|
|
1401
|
+
color: e.color,
|
|
1402
|
+
range: K(e.range)
|
|
1403
|
+
}));
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
provideColorPresentations(e, t, n) {
|
|
1407
|
+
let r = e.uri;
|
|
1408
|
+
return this._worker(r).then((e) => e.getColorPresentations(r.toString(), t.color, G(t.range))).then((e) => {
|
|
1409
|
+
if (e) return e.map((e) => {
|
|
1410
|
+
let t = { label: e.label };
|
|
1411
|
+
return e.textEdit && (t.textEdit = q(e.textEdit)), e.additionalTextEdits && (t.additionalTextEdits = e.additionalTextEdits.map(q)), t;
|
|
1412
|
+
});
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
}, lt = class {
|
|
1416
|
+
constructor(e) {
|
|
1417
|
+
this._worker = e;
|
|
1418
|
+
}
|
|
1419
|
+
provideFoldingRanges(e, t, n) {
|
|
1420
|
+
let r = e.uri;
|
|
1421
|
+
return this._worker(r).then((e) => e.getFoldingRanges(r.toString(), t)).then((e) => {
|
|
1422
|
+
if (e) return e.map((e) => {
|
|
1423
|
+
let t = {
|
|
1424
|
+
start: e.startLine + 1,
|
|
1425
|
+
end: e.endLine + 1
|
|
1426
|
+
};
|
|
1427
|
+
return e.kind !== void 0 && (t.kind = ut(e.kind)), t;
|
|
1428
|
+
});
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1432
|
+
function ut(e) {
|
|
1433
|
+
switch (e) {
|
|
1434
|
+
case m.Comment: return t.FoldingRangeKind.Comment;
|
|
1435
|
+
case m.Imports: return t.FoldingRangeKind.Imports;
|
|
1436
|
+
case m.Region: return t.FoldingRangeKind.Region;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
var dt = class {
|
|
1440
|
+
constructor(e) {
|
|
1441
|
+
this._worker = e;
|
|
1442
|
+
}
|
|
1443
|
+
provideSelectionRanges(e, t, n) {
|
|
1444
|
+
let r = e.uri;
|
|
1445
|
+
return this._worker(r).then((e) => e.getSelectionRanges(r.toString(), t.map(W))).then((e) => {
|
|
1446
|
+
if (e) return e.map((e) => {
|
|
1447
|
+
let t = [];
|
|
1448
|
+
for (; e;) t.push({ range: K(e.range) }), e = e.parent;
|
|
1449
|
+
return t;
|
|
1450
|
+
});
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
//#endregion
|
|
1455
|
+
export { K as _, ot as a, st as c, Ye as d, tt as f, G as g, W as h, ct as i, it as l, dt as m, et as n, Qe as o, nt as p, He as r, at as s, Ge as t, lt as u, q as v };
|