@ws-ui/code-editor 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsxs as _, jsx as w } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { loader as
|
|
4
|
-
import { getNodeInfo as
|
|
5
|
-
import { MonacoLanguageClient as
|
|
6
|
-
import { mergeServices as Xe, initServices as
|
|
7
|
-
import
|
|
2
|
+
import G, { useEffect as M, createContext as ce, useState as z, useRef as re, useContext as ue, memo as Re } from "react";
|
|
3
|
+
import { loader as we, useMonaco as xe, Editor as Fe } from "@monaco-editor/react";
|
|
4
|
+
import { getNodeInfo as Le, DesignerRequestVerb as ke, lspSubject as We, LspActions as X, hasAttributesString as de, FileFolderType as oe, SourceCodeDescriptor as je, HTTP_HANDLERS_TAB_PATH as Ee } from "@ws-ui/shared";
|
|
5
|
+
import { MonacoLanguageClient as Ze } from "monaco-languageclient";
|
|
6
|
+
import { mergeServices as Xe, initServices as Ke } from "monaco-languageclient/vscode/services";
|
|
7
|
+
import Be, { initUserConfiguration as De } from "@codingame/monaco-vscode-configuration-service-override";
|
|
8
8
|
import Te from "@codingame/monaco-vscode-languages-service-override";
|
|
9
|
-
import
|
|
9
|
+
import Oe from "@codingame/monaco-vscode-textmate-service-override";
|
|
10
10
|
import "@codingame/monaco-vscode-theme-defaults-default-extension";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { registerFileSystemOverlay as
|
|
14
|
-
import { FileSystemProviderCapabilities as
|
|
15
|
-
import { Emitter as
|
|
16
|
-
import { Logger as
|
|
17
|
-
import { CloseAction as
|
|
18
|
-
import * as
|
|
19
|
-
import { Selection as
|
|
20
|
-
import { WebSocketMessageReader as
|
|
21
|
-
import { TextDocumentSaveReason as
|
|
22
|
-
import { StandaloneServices as
|
|
23
|
-
import { KeybindingsRegistry as
|
|
11
|
+
import Ge from "@codingame/monaco-vscode-editor-service-override";
|
|
12
|
+
import Je from "@codingame/monaco-vscode-theme-service-override";
|
|
13
|
+
import { registerFileSystemOverlay as Me } from "@codingame/monaco-vscode-files-service-override";
|
|
14
|
+
import { FileSystemProviderCapabilities as se, FileType as Pe } from "vscode/vscode/vs/platform/files/common/files";
|
|
15
|
+
import { Emitter as ae } from "vscode/vscode/vs/base/common/event";
|
|
16
|
+
import { Logger as Ve } from "monaco-languageclient/tools";
|
|
17
|
+
import { CloseAction as Ye, ErrorAction as He } from "vscode-languageclient";
|
|
18
|
+
import * as a from "monaco-editor";
|
|
19
|
+
import { Selection as _e, KeyMod as T, KeyCode as O, editor as Ie, Range as ze, Uri as $e, CancellationTokenSource as Ue } from "monaco-editor";
|
|
20
|
+
import { WebSocketMessageReader as qe, WebSocketMessageWriter as Qe, toSocket as et } from "vscode-ws-jsonrpc";
|
|
21
|
+
import { TextDocumentSaveReason as tt, DocumentDiagnosticRequest as nt, WillSaveTextDocumentNotification as it, DidSaveTextDocumentNotification as ot, WillCreateFilesRequest as rt, WillRenameFilesRequest as st, WillDeleteFilesRequest as at, DidCreateFilesNotification as lt, DidRenameFilesNotification as gt, DidDeleteFilesNotification as ct, SemanticTokensRegistrationType as ut } from "vscode-languageserver-protocol";
|
|
22
|
+
import { StandaloneServices as dt, ICodeEditorService as It } from "vscode/services";
|
|
23
|
+
import { KeybindingsRegistry as ne } from "vscode/monaco";
|
|
24
24
|
import "@codingame/monaco-vscode-standalone-languages";
|
|
25
25
|
import "@codingame/monaco-vscode-standalone-html-language-features";
|
|
26
26
|
import "@codingame/monaco-vscode-standalone-css-language-features";
|
|
@@ -30,14 +30,14 @@ import "@codingame/monaco-vscode-css-default-extension";
|
|
|
30
30
|
import "@codingame/monaco-vscode-json-default-extension";
|
|
31
31
|
import "@codingame/monaco-vscode-html-default-extension";
|
|
32
32
|
import "@codingame/monaco-vscode-javascript-default-extension";
|
|
33
|
-
import { registerExtension as
|
|
34
|
-
const
|
|
33
|
+
import { registerExtension as Ct } from "vscode/extensions";
|
|
34
|
+
const mt = () => Be(), ft = () => Ge(
|
|
35
35
|
() => Promise.resolve(void 0)
|
|
36
|
-
),
|
|
37
|
-
const n =
|
|
36
|
+
), pt = () => {
|
|
37
|
+
const n = Je(), e = n.themeService.ctor.prototype;
|
|
38
38
|
return e.defineTheme = () => {
|
|
39
39
|
}, n;
|
|
40
|
-
},
|
|
40
|
+
}, At = `{
|
|
41
41
|
"workbench.colorTheme": "Default Dark+",
|
|
42
42
|
"workbench.iconTheme": "vs-seti",
|
|
43
43
|
"editor.autoClosingBrackets": "languageDefined",
|
|
@@ -123,15 +123,15 @@ const Ct = () => Ke(), mt = () => Oe(
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
`;
|
|
126
|
-
class
|
|
126
|
+
class bt {
|
|
127
127
|
constructor() {
|
|
128
|
-
this._onDidChangeCapabilities = new
|
|
128
|
+
this._onDidChangeCapabilities = new ae(), this.onDidChangeCapabilities = this._onDidChangeCapabilities.event, this._onDidChangeFile = new ae(), this.onDidChangeFile = this._onDidChangeFile.event, this.capabilities = se.FileReadWrite | se.FileOpenReadWriteClose, this.files = /* @__PURE__ */ new Map();
|
|
129
129
|
}
|
|
130
130
|
// --- stat()
|
|
131
131
|
async stat(e) {
|
|
132
132
|
const t = this.files.get(e.fsPath), i = Date.now();
|
|
133
133
|
return {
|
|
134
|
-
type:
|
|
134
|
+
type: Pe.File,
|
|
135
135
|
ctime: 0,
|
|
136
136
|
mtime: i,
|
|
137
137
|
size: t ? t.byteLength : 0
|
|
@@ -146,13 +146,13 @@ class At {
|
|
|
146
146
|
}
|
|
147
147
|
// --- readFile()
|
|
148
148
|
async readFile(e) {
|
|
149
|
-
const i = e.toString().split("/"), o = i.length, [r, s] = i.slice(o - 2),
|
|
150
|
-
verb:
|
|
149
|
+
const i = e.toString().split("/"), o = i.length, [r, s] = i.slice(o - 2), I = await Le({
|
|
150
|
+
verb: ke.GET_INFO,
|
|
151
151
|
path: `${r}/${s}`,
|
|
152
152
|
content: !0,
|
|
153
153
|
as: "text"
|
|
154
|
-
}),
|
|
155
|
-
return this.files.set(e.fsPath,
|
|
154
|
+
}), C = new TextEncoder().encode(I.content);
|
|
155
|
+
return this.files.set(e.fsPath, C), C;
|
|
156
156
|
}
|
|
157
157
|
// --- writeFile()
|
|
158
158
|
async writeFile(e, t) {
|
|
@@ -178,10 +178,10 @@ class At {
|
|
|
178
178
|
} };
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const ht = () => De(At), vt = async (n) => {
|
|
182
182
|
var o;
|
|
183
183
|
const e = n.serviceConfig ?? {};
|
|
184
|
-
e.debugLogging = ((o = n.logger) == null ? void 0 : o.isEnabled()) === !0 && (e.debugLogging === !0 || n.logger.isDebugEnabled() === !0), await
|
|
184
|
+
e.debugLogging = ((o = n.logger) == null ? void 0 : o.isEnabled()) === !0 && (e.debugLogging === !0 || n.logger.isDebugEnabled() === !0), await ht(), e.userServices = e.userServices ?? {};
|
|
185
185
|
const t = e.userServices.configurationService ?? void 0, i = e.workspaceConfig ?? void 0;
|
|
186
186
|
if (t === void 0) {
|
|
187
187
|
if (i)
|
|
@@ -190,17 +190,17 @@ const bt = () => Be(pt), ht = async (n) => {
|
|
|
190
190
|
);
|
|
191
191
|
const r = {
|
|
192
192
|
// @see https://github.com/CodinGame/monaco-vscode-api#monaco-standalone-services
|
|
193
|
-
...
|
|
194
|
-
...
|
|
195
|
-
...
|
|
193
|
+
...mt(),
|
|
194
|
+
...pt(),
|
|
195
|
+
...Oe(),
|
|
196
196
|
...Te(),
|
|
197
|
-
...
|
|
197
|
+
...ft()
|
|
198
198
|
};
|
|
199
199
|
Xe(r, e.userServices);
|
|
200
200
|
}
|
|
201
|
-
return
|
|
201
|
+
return Me(1, new bt()), e;
|
|
202
202
|
};
|
|
203
|
-
class
|
|
203
|
+
class St extends qe {
|
|
204
204
|
constructor(e, t) {
|
|
205
205
|
super(e), this.onMessage = t;
|
|
206
206
|
}
|
|
@@ -217,7 +217,7 @@ class vt extends Ue {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
class
|
|
220
|
+
class yt extends Qe {
|
|
221
221
|
constructor(e, t) {
|
|
222
222
|
super(e), this.onSend = t;
|
|
223
223
|
}
|
|
@@ -230,50 +230,50 @@ class St extends qe {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function E(n, e = !0) {
|
|
234
234
|
const t = `/PACKAGE/Project/Sources/${n}`;
|
|
235
235
|
return e ? `file://${t}` : t;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Ce(n, e = 0) {
|
|
238
238
|
setTimeout(n, e);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
const t = new
|
|
240
|
+
function Nt(n, e) {
|
|
241
|
+
const t = new _e(
|
|
242
242
|
e.startLineNumber,
|
|
243
243
|
e.startColumn,
|
|
244
244
|
e.endLineNumber || e.startLineNumber,
|
|
245
245
|
e.endColumn || e.startColumn
|
|
246
246
|
);
|
|
247
|
-
|
|
247
|
+
Ce(() => {
|
|
248
248
|
n.setSelection(t), n.revealRangeInCenter(t), n.focus();
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
t > 0 && (e = t + e),
|
|
251
|
+
function Rt(n, e, t = 0) {
|
|
252
|
+
t > 0 && (e = t + e), Ce(() => {
|
|
253
253
|
n.setPosition({ lineNumber: e, column: 1 }), n.revealLineInCenter(e), n.focus();
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Tn(n, e, t) {
|
|
257
257
|
const o = n.getModel();
|
|
258
258
|
if (o && e) {
|
|
259
259
|
const r = o.getLineCount();
|
|
260
260
|
for (let s = 1; s <= r; s++) {
|
|
261
|
-
const
|
|
262
|
-
if (new RegExp(`(?:Function|function) ${t}`).test(
|
|
261
|
+
const I = o.getLineContent(s);
|
|
262
|
+
if (new RegExp(`(?:Function|function) ${t}`).test(I))
|
|
263
263
|
return s;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
return 0;
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const wt = {
|
|
269
269
|
provideCompletionItems: async (n, e) => {
|
|
270
270
|
const t = n.getWordUntilPosition(e);
|
|
271
271
|
return {
|
|
272
272
|
suggestions: [
|
|
273
273
|
{
|
|
274
274
|
label: "var",
|
|
275
|
-
kind:
|
|
276
|
-
range: new
|
|
275
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
276
|
+
range: new a.Range(
|
|
277
277
|
e.lineNumber,
|
|
278
278
|
t.startColumn,
|
|
279
279
|
e.lineNumber,
|
|
@@ -281,12 +281,12 @@ const Rt = {
|
|
|
281
281
|
),
|
|
282
282
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
283
283
|
`),
|
|
284
|
-
insertTextRules:
|
|
284
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
label: "While",
|
|
288
|
-
kind:
|
|
289
|
-
range: new
|
|
288
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
289
|
+
range: new a.Range(
|
|
290
290
|
e.lineNumber,
|
|
291
291
|
t.startColumn,
|
|
292
292
|
e.lineNumber,
|
|
@@ -298,12 +298,12 @@ const Rt = {
|
|
|
298
298
|
"End while"
|
|
299
299
|
].join(`
|
|
300
300
|
`),
|
|
301
|
-
insertTextRules:
|
|
301
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
label: "Case of",
|
|
305
|
-
kind:
|
|
306
|
-
range: new
|
|
305
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
306
|
+
range: new a.Range(
|
|
307
307
|
e.lineNumber,
|
|
308
308
|
t.startColumn,
|
|
309
309
|
e.lineNumber,
|
|
@@ -316,12 +316,12 @@ const Rt = {
|
|
|
316
316
|
"End case"
|
|
317
317
|
].join(`
|
|
318
318
|
`),
|
|
319
|
-
insertTextRules:
|
|
319
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
label: "Else",
|
|
323
|
-
kind:
|
|
324
|
-
range: new
|
|
323
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
324
|
+
range: new a.Range(
|
|
325
325
|
e.lineNumber,
|
|
326
326
|
t.startColumn,
|
|
327
327
|
e.lineNumber,
|
|
@@ -329,12 +329,12 @@ const Rt = {
|
|
|
329
329
|
),
|
|
330
330
|
insertText: ["Else", " "].join(`
|
|
331
331
|
`),
|
|
332
|
-
insertTextRules:
|
|
332
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
label: "If",
|
|
336
|
-
kind:
|
|
337
|
-
range: new
|
|
336
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
337
|
+
range: new a.Range(
|
|
338
338
|
e.lineNumber,
|
|
339
339
|
t.startColumn,
|
|
340
340
|
e.lineNumber,
|
|
@@ -344,12 +344,12 @@ const Rt = {
|
|
|
344
344
|
`
|
|
345
345
|
`
|
|
346
346
|
),
|
|
347
|
-
insertTextRules:
|
|
347
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
label: "For",
|
|
351
|
-
kind:
|
|
352
|
-
range: new
|
|
351
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
352
|
+
range: new a.Range(
|
|
353
353
|
e.lineNumber,
|
|
354
354
|
t.startColumn,
|
|
355
355
|
e.lineNumber,
|
|
@@ -361,12 +361,12 @@ const Rt = {
|
|
|
361
361
|
"End for"
|
|
362
362
|
].join(`
|
|
363
363
|
`),
|
|
364
|
-
insertTextRules:
|
|
364
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
365
365
|
},
|
|
366
366
|
{
|
|
367
367
|
label: "Function",
|
|
368
|
-
kind:
|
|
369
|
-
range: new
|
|
368
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
369
|
+
range: new a.Range(
|
|
370
370
|
e.lineNumber,
|
|
371
371
|
t.startColumn,
|
|
372
372
|
e.lineNumber,
|
|
@@ -377,20 +377,20 @@ const Rt = {
|
|
|
377
377
|
" ${5:body}"
|
|
378
378
|
].join(`
|
|
379
379
|
`),
|
|
380
|
-
insertTextRules:
|
|
380
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
381
381
|
}
|
|
382
382
|
]
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
},
|
|
385
|
+
}, xt = {
|
|
386
386
|
provideCompletionItems: async (n, e) => {
|
|
387
387
|
const t = n.getWordUntilPosition(e);
|
|
388
388
|
return {
|
|
389
389
|
suggestions: [
|
|
390
390
|
{
|
|
391
391
|
label: "var",
|
|
392
|
-
kind:
|
|
393
|
-
range: new
|
|
392
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
393
|
+
range: new a.Range(
|
|
394
394
|
e.lineNumber,
|
|
395
395
|
t.startColumn,
|
|
396
396
|
e.lineNumber,
|
|
@@ -398,12 +398,12 @@ const Rt = {
|
|
|
398
398
|
),
|
|
399
399
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
400
400
|
`),
|
|
401
|
-
insertTextRules:
|
|
401
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
label: "while",
|
|
405
|
-
kind:
|
|
406
|
-
range: new
|
|
405
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
406
|
+
range: new a.Range(
|
|
407
407
|
e.lineNumber,
|
|
408
408
|
t.startColumn,
|
|
409
409
|
e.lineNumber,
|
|
@@ -413,12 +413,12 @@ const Rt = {
|
|
|
413
413
|
`
|
|
414
414
|
`
|
|
415
415
|
),
|
|
416
|
-
insertTextRules:
|
|
416
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
label: "switch",
|
|
420
|
-
kind:
|
|
421
|
-
range: new
|
|
420
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
421
|
+
range: new a.Range(
|
|
422
422
|
e.lineNumber,
|
|
423
423
|
t.startColumn,
|
|
424
424
|
e.lineNumber,
|
|
@@ -431,12 +431,12 @@ const Rt = {
|
|
|
431
431
|
"end"
|
|
432
432
|
].join(`
|
|
433
433
|
`),
|
|
434
|
-
insertTextRules:
|
|
434
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
437
|
label: "else",
|
|
438
|
-
kind:
|
|
439
|
-
range: new
|
|
438
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
439
|
+
range: new a.Range(
|
|
440
440
|
e.lineNumber,
|
|
441
441
|
t.startColumn,
|
|
442
442
|
e.lineNumber,
|
|
@@ -444,12 +444,12 @@ const Rt = {
|
|
|
444
444
|
),
|
|
445
445
|
insertText: ["else", " "].join(`
|
|
446
446
|
`),
|
|
447
|
-
insertTextRules:
|
|
447
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
label: "if",
|
|
451
|
-
kind:
|
|
452
|
-
range: new
|
|
451
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
452
|
+
range: new a.Range(
|
|
453
453
|
e.lineNumber,
|
|
454
454
|
t.startColumn,
|
|
455
455
|
e.lineNumber,
|
|
@@ -459,12 +459,12 @@ const Rt = {
|
|
|
459
459
|
`
|
|
460
460
|
`
|
|
461
461
|
),
|
|
462
|
-
insertTextRules:
|
|
462
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
465
|
label: "for",
|
|
466
|
-
kind:
|
|
467
|
-
range: new
|
|
466
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
467
|
+
range: new a.Range(
|
|
468
468
|
e.lineNumber,
|
|
469
469
|
t.startColumn,
|
|
470
470
|
e.lineNumber,
|
|
@@ -476,12 +476,12 @@ const Rt = {
|
|
|
476
476
|
"end"
|
|
477
477
|
].join(`
|
|
478
478
|
`),
|
|
479
|
-
insertTextRules:
|
|
479
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
482
|
label: "function",
|
|
483
|
-
kind:
|
|
484
|
-
range: new
|
|
483
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
484
|
+
range: new a.Range(
|
|
485
485
|
e.lineNumber,
|
|
486
486
|
t.startColumn,
|
|
487
487
|
e.lineNumber,
|
|
@@ -492,49 +492,54 @@ const Rt = {
|
|
|
492
492
|
" ${5:body}"
|
|
493
493
|
].join(`
|
|
494
494
|
`),
|
|
495
|
-
insertTextRules:
|
|
495
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
496
496
|
}
|
|
497
497
|
]
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
},
|
|
500
|
+
}, Ft = [
|
|
501
501
|
// zoom in
|
|
502
502
|
{
|
|
503
|
-
keybinding:
|
|
503
|
+
keybinding: T.CtrlCmd | O.NumpadAdd,
|
|
504
504
|
command: "editor.action.fontZoomIn"
|
|
505
505
|
},
|
|
506
506
|
{
|
|
507
|
-
keybinding:
|
|
507
|
+
keybinding: T.CtrlCmd | O.Equal,
|
|
508
508
|
command: "editor.action.fontZoomIn"
|
|
509
509
|
},
|
|
510
510
|
// zoom out
|
|
511
511
|
{
|
|
512
|
-
keybinding:
|
|
512
|
+
keybinding: T.CtrlCmd | O.NumpadSubtract,
|
|
513
513
|
command: "editor.action.fontZoomOut"
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
|
-
keybinding:
|
|
516
|
+
keybinding: T.CtrlCmd | O.Minus,
|
|
517
517
|
command: "editor.action.fontZoomOut"
|
|
518
518
|
},
|
|
519
519
|
// zoom reset
|
|
520
520
|
{
|
|
521
|
-
keybinding:
|
|
521
|
+
keybinding: T.CtrlCmd | O.Numpad0,
|
|
522
522
|
command: "editor.action.fontZoomReset"
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
|
-
keybinding:
|
|
525
|
+
keybinding: T.CtrlCmd | O.Digit0,
|
|
526
526
|
command: "editor.action.fontZoomReset"
|
|
527
|
+
},
|
|
528
|
+
// go to definition
|
|
529
|
+
{
|
|
530
|
+
keybinding: T.CtrlCmd | O.F12,
|
|
531
|
+
command: "editor.action.revealDefinition"
|
|
527
532
|
}
|
|
528
|
-
],
|
|
529
|
-
n !== void 0 &&
|
|
533
|
+
], Lt = ({ defaultZoom: n }) => (M(() => {
|
|
534
|
+
n !== void 0 && Ie.EditorZoom.setZoomLevel(n);
|
|
530
535
|
}, []), null);
|
|
531
|
-
|
|
532
|
-
monaco:
|
|
536
|
+
we.config({
|
|
537
|
+
monaco: a
|
|
533
538
|
// paths: {
|
|
534
539
|
// vs: import.meta.env.VITE_MONACO_EDITOR_CDN,
|
|
535
540
|
// },
|
|
536
541
|
});
|
|
537
|
-
var H = /* @__PURE__ */ ((n) => (n[n.NotSet = -1] = "NotSet", n[n.None = 0] = "None", n[n.Italic = 1] = "Italic", n[n.Bold = 2] = "Bold", n[n.Underline = 4] = "Underline", n[n.Strikethrough = 8] = "Strikethrough", n))(H || {}),
|
|
542
|
+
var H = /* @__PURE__ */ ((n) => (n[n.NotSet = -1] = "NotSet", n[n.None = 0] = "None", n[n.Italic = 1] = "Italic", n[n.Bold = 2] = "Bold", n[n.Underline = 4] = "Underline", n[n.Strikethrough = 8] = "Strikethrough", n))(H || {}), me = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.DefaultForeground = 1] = "DefaultForeground", n[n.DefaultBackground = 2] = "DefaultBackground", n))(me || {}), fe = /* @__PURE__ */ ((n) => (n[n.Other = 0] = "Other", n[n.Comment = 1] = "Comment", n[n.String = 2] = "String", n[n.RegEx = 3] = "RegEx", n))(fe || {});
|
|
538
543
|
class V {
|
|
539
544
|
static getLanguageId(e) {
|
|
540
545
|
return (e & 255) >>> 0;
|
|
@@ -577,47 +582,47 @@ class V {
|
|
|
577
582
|
};
|
|
578
583
|
}
|
|
579
584
|
}
|
|
580
|
-
function
|
|
585
|
+
function kt(n, e, t, i) {
|
|
581
586
|
const o = t.tokens.data, r = n.getLanguageId();
|
|
582
|
-
let s = 0,
|
|
583
|
-
const
|
|
587
|
+
let s = 0, I = 0;
|
|
588
|
+
const C = i.lineNumber - 1, h = i.column - 1;
|
|
584
589
|
for (let f = 0; f < o.length; f += 5) {
|
|
585
|
-
const A = o[f], p = o[f + 1], x = o[f + 2], R = o[f + 3], S = o[f + 4], y = s + A, b = A === 0 ?
|
|
586
|
-
if (
|
|
587
|
-
const
|
|
588
|
-
let
|
|
589
|
-
for (let P = 0;
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
const
|
|
590
|
+
const A = o[f], p = o[f + 1], x = o[f + 2], R = o[f + 3], S = o[f + 4], y = s + A, b = A === 0 ? I + p : p;
|
|
591
|
+
if (C === y && b <= h && h < b + x) {
|
|
592
|
+
const g = t.legend.tokenTypes[R] || "not in legend (ignored)", F = [];
|
|
593
|
+
let l = S;
|
|
594
|
+
for (let P = 0; l > 0 && P < t.legend.tokenModifiers.length; P++)
|
|
595
|
+
l & 1 && F.push(t.legend.tokenModifiers[P]), l = l >> 1;
|
|
596
|
+
l > 0 && F.push("not in legend (ignored)");
|
|
597
|
+
const c = new ze(
|
|
593
598
|
y + 1,
|
|
594
599
|
b + 1,
|
|
595
600
|
y + 1,
|
|
596
601
|
b + 1 + x
|
|
597
|
-
),
|
|
598
|
-
|
|
599
|
-
|
|
602
|
+
), L = {}, k = e.getColorTheme().tokenColorMap, v = e.getColorTheme().getTokenStyleMetadata(
|
|
603
|
+
g,
|
|
604
|
+
F,
|
|
600
605
|
r,
|
|
601
606
|
!0,
|
|
602
|
-
|
|
607
|
+
L
|
|
603
608
|
);
|
|
604
609
|
let $;
|
|
605
610
|
return v && ($ = {
|
|
606
611
|
languageId: void 0,
|
|
607
|
-
tokenType:
|
|
612
|
+
tokenType: fe.Other,
|
|
608
613
|
bold: v == null ? void 0 : v.bold,
|
|
609
614
|
italic: v == null ? void 0 : v.italic,
|
|
610
615
|
underline: v == null ? void 0 : v.underline,
|
|
611
616
|
strikethrough: v == null ? void 0 : v.strikethrough,
|
|
612
|
-
foreground:
|
|
617
|
+
foreground: k[(v == null ? void 0 : v.foreground) || me.None],
|
|
613
618
|
background: void 0
|
|
614
|
-
}), { type:
|
|
619
|
+
}), { type: g, modifiers: F, range: c, metadata: $, definitions: L };
|
|
615
620
|
}
|
|
616
|
-
s = y,
|
|
621
|
+
s = y, I = b;
|
|
617
622
|
}
|
|
618
623
|
return null;
|
|
619
624
|
}
|
|
620
|
-
function
|
|
625
|
+
function Wt(n, e, t) {
|
|
621
626
|
let i = null;
|
|
622
627
|
for (let o = 1; o < t; o++)
|
|
623
628
|
i = e.tokenizeLine(
|
|
@@ -626,8 +631,8 @@ function kt(n, e, t) {
|
|
|
626
631
|
).ruleStack;
|
|
627
632
|
return i;
|
|
628
633
|
}
|
|
629
|
-
function
|
|
630
|
-
const i = n.getColorTheme().tokenColorMap, o = V.getLanguageId(t), r = V.getTokenType(t), s = V.getFontStyle(t),
|
|
634
|
+
function jt(n, e, t) {
|
|
635
|
+
const i = n.getColorTheme().tokenColorMap, o = V.getLanguageId(t), r = V.getTokenType(t), s = V.getFontStyle(t), I = V.getForeground(t), C = V.getBackground(t);
|
|
631
636
|
return {
|
|
632
637
|
languageId: e.languageIdCodec.decodeLanguageId(o),
|
|
633
638
|
tokenType: r,
|
|
@@ -635,42 +640,42 @@ function Wt(n, e, t) {
|
|
|
635
640
|
italic: s & H.Italic ? !0 : void 0,
|
|
636
641
|
underline: s & H.Underline ? !0 : void 0,
|
|
637
642
|
strikethrough: s & H.Strikethrough ? !0 : void 0,
|
|
638
|
-
foreground: i[
|
|
639
|
-
background: i[
|
|
643
|
+
foreground: i[I],
|
|
644
|
+
background: i[C]
|
|
640
645
|
};
|
|
641
646
|
}
|
|
642
|
-
function
|
|
643
|
-
const i = t.lineNumber, o = n, r = o._tokenizationTextModelPart.grammarTokens._tokenizer.tokenizationSupport._actual._grammar, s =
|
|
647
|
+
function Et(n, e, t) {
|
|
648
|
+
const i = t.lineNumber, o = n, r = o._tokenizationTextModelPart.grammarTokens._tokenizer.tokenizationSupport._actual._grammar, s = Wt(n, r, i), I = r.tokenizeLine(
|
|
644
649
|
n.getLineContent(i),
|
|
645
650
|
s
|
|
646
|
-
),
|
|
651
|
+
), C = r.tokenizeLine2(
|
|
647
652
|
n.getLineContent(i),
|
|
648
653
|
s
|
|
649
654
|
);
|
|
650
655
|
let h = 0;
|
|
651
|
-
for (let A =
|
|
652
|
-
const p =
|
|
656
|
+
for (let A = I.tokens.length - 1; A >= 0; A--) {
|
|
657
|
+
const p = I.tokens[A];
|
|
653
658
|
if (t.column - 1 >= p.startIndex) {
|
|
654
659
|
h = A;
|
|
655
660
|
break;
|
|
656
661
|
}
|
|
657
662
|
}
|
|
658
663
|
let f = 0;
|
|
659
|
-
for (let A =
|
|
660
|
-
if (t.column - 1 >=
|
|
664
|
+
for (let A = C.tokens.length >>> 1; A >= 0; A--)
|
|
665
|
+
if (t.column - 1 >= C.tokens[A << 1]) {
|
|
661
666
|
f = A;
|
|
662
667
|
break;
|
|
663
668
|
}
|
|
664
669
|
return {
|
|
665
|
-
token:
|
|
666
|
-
metadata:
|
|
670
|
+
token: I.tokens[h],
|
|
671
|
+
metadata: jt(
|
|
667
672
|
e,
|
|
668
673
|
o._languageService,
|
|
669
|
-
|
|
674
|
+
C.tokens[(f << 1) + 1]
|
|
670
675
|
)
|
|
671
676
|
};
|
|
672
677
|
}
|
|
673
|
-
const
|
|
678
|
+
const pe = ce(void 0), On = ({
|
|
674
679
|
children: n,
|
|
675
680
|
url: e,
|
|
676
681
|
qodly: t,
|
|
@@ -679,291 +684,291 @@ const fe = ge(void 0), En = ({
|
|
|
679
684
|
language: r = "4d",
|
|
680
685
|
defaultInited: s = !1
|
|
681
686
|
}) => {
|
|
682
|
-
const
|
|
687
|
+
const I = xe(), [C, h] = z(s), [f, A] = z(null), p = re(), x = re(0);
|
|
683
688
|
M(() => {
|
|
684
|
-
e &&
|
|
685
|
-
}, [e,
|
|
689
|
+
e && I && R();
|
|
690
|
+
}, [e, I]);
|
|
686
691
|
const R = async () => {
|
|
687
|
-
if (!
|
|
688
|
-
const
|
|
692
|
+
if (!I) return;
|
|
693
|
+
const m = new Ve({
|
|
689
694
|
enabled: process.env.NODE_ENV === "development",
|
|
690
695
|
debugEnabled: process.env.NODE_ENV === "development"
|
|
691
|
-
}),
|
|
692
|
-
logger:
|
|
696
|
+
}), u = await vt({
|
|
697
|
+
logger: m
|
|
693
698
|
});
|
|
694
|
-
await
|
|
699
|
+
await Ke({
|
|
695
700
|
caller: "Qodly Code Editor",
|
|
696
|
-
logger:
|
|
697
|
-
serviceConfig:
|
|
698
|
-
}), o &&
|
|
701
|
+
logger: m,
|
|
702
|
+
serviceConfig: u
|
|
703
|
+
}), o && dt.get(It).registerCodeEditorOpenHandler(o), I.languages.registerCompletionItemProvider(
|
|
699
704
|
r,
|
|
700
|
-
t ?
|
|
705
|
+
t ? xt : wt
|
|
701
706
|
);
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
(
|
|
707
|
+
const d = ne.getDefaultKeybindings.bind(ne);
|
|
708
|
+
ne.getDefaultKeybindings = () => d().filter(
|
|
709
|
+
(j) => ![
|
|
705
710
|
"workbench.action.files.saveAs",
|
|
706
711
|
"workbench.action.files.save"
|
|
707
|
-
].includes(
|
|
708
|
-
),
|
|
712
|
+
].includes(j.command)
|
|
713
|
+
), Ie.addKeybindingRules(Ft), I.languages.registerFoldingRangeProvider(r, {
|
|
709
714
|
provideFoldingRanges: function(N) {
|
|
710
|
-
const
|
|
711
|
-
for (let
|
|
712
|
-
const U = N.getLineContent(
|
|
713
|
-
if (
|
|
714
|
-
let K =
|
|
715
|
-
for (; K <=
|
|
716
|
-
const
|
|
717
|
-
if (
|
|
715
|
+
const j = [], Z = /\\\s*$/;
|
|
716
|
+
for (let W = 1, J = N.getLineCount(); W <= J; W++) {
|
|
717
|
+
const U = N.getLineContent(W);
|
|
718
|
+
if (Z.exec(U)) {
|
|
719
|
+
let K = W + 1;
|
|
720
|
+
for (; K <= J; ) {
|
|
721
|
+
const te = N.getLineContent(K);
|
|
722
|
+
if (Z.exec(te) == null)
|
|
718
723
|
break;
|
|
719
724
|
K++;
|
|
720
725
|
}
|
|
721
|
-
K >
|
|
722
|
-
start:
|
|
726
|
+
K > W && (j.push({
|
|
727
|
+
start: W,
|
|
723
728
|
end: K,
|
|
724
|
-
kind:
|
|
725
|
-
}),
|
|
729
|
+
kind: I.languages.FoldingRangeKind.Region
|
|
730
|
+
}), W = K);
|
|
726
731
|
}
|
|
727
732
|
}
|
|
728
|
-
return
|
|
733
|
+
return j;
|
|
729
734
|
}
|
|
730
735
|
}), S();
|
|
731
736
|
}, S = () => {
|
|
732
737
|
A(null);
|
|
733
|
-
let
|
|
738
|
+
let m;
|
|
734
739
|
try {
|
|
735
|
-
|
|
740
|
+
m = new WebSocket(localStorage.LSP_SERVER || e);
|
|
736
741
|
} catch {
|
|
737
742
|
A(new Event("INVALID_URL"));
|
|
738
743
|
return;
|
|
739
744
|
}
|
|
740
|
-
|
|
745
|
+
m.onopen = y, m.onclose = b, m.onerror = g, x.current = 0;
|
|
741
746
|
}, y = async function() {
|
|
742
|
-
const
|
|
747
|
+
const m = et(this), u = new St(m), d = new yt(m), N = new Ze({
|
|
743
748
|
name: "4D Language Client",
|
|
744
749
|
clientOptions: {
|
|
745
750
|
workspaceFolder: {
|
|
746
|
-
uri:
|
|
751
|
+
uri: $e.parse("file:///PACKAGE")
|
|
747
752
|
},
|
|
748
753
|
// use a language id as a document selector
|
|
749
754
|
documentSelector: [{ scheme: "file", language: r }],
|
|
750
755
|
// disable the default error handler
|
|
751
756
|
errorHandler: {
|
|
752
|
-
error: () => ({ action:
|
|
753
|
-
closed: () => ({ action:
|
|
757
|
+
error: () => ({ action: He.Continue }),
|
|
758
|
+
closed: () => ({ action: Ye.DoNotRestart })
|
|
754
759
|
}
|
|
755
760
|
},
|
|
756
761
|
// create a language client connection from the JSON RPC connection on demand
|
|
757
762
|
connectionProvider: {
|
|
758
763
|
get: () => Promise.resolve({
|
|
759
|
-
reader:
|
|
760
|
-
writer:
|
|
764
|
+
reader: u,
|
|
765
|
+
writer: d
|
|
761
766
|
})
|
|
762
767
|
}
|
|
763
768
|
});
|
|
764
769
|
p.current = N;
|
|
765
|
-
const
|
|
766
|
-
p.current.sendRequest = function(
|
|
767
|
-
return typeof
|
|
768
|
-
|
|
769
|
-
) ? Promise.resolve() : Z
|
|
770
|
-
},
|
|
770
|
+
const j = N.sendRequest.bind(N);
|
|
771
|
+
p.current.sendRequest = function(Z, W, J) {
|
|
772
|
+
return typeof Z == "object" && Z.method === "textDocument/diagnostic" && /file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(
|
|
773
|
+
W.textDocument.uri
|
|
774
|
+
) ? Promise.resolve() : j(Z, W, J);
|
|
775
|
+
}, u.onClose(() => {
|
|
771
776
|
N.stop(), x.current < 3 ? setTimeout(() => {
|
|
772
777
|
x.current++, S();
|
|
773
778
|
}, 1e3) : A(new Event("WEBSOCKET_CLOSED"));
|
|
774
779
|
}), N.needsStart() && await N.start(), h(!0);
|
|
775
780
|
}, b = () => {
|
|
776
|
-
},
|
|
777
|
-
A(
|
|
781
|
+
}, g = (m) => {
|
|
782
|
+
A(m);
|
|
778
783
|
};
|
|
779
784
|
M(() => {
|
|
780
|
-
const
|
|
781
|
-
switch (
|
|
782
|
-
case
|
|
783
|
-
|
|
785
|
+
const m = We.subscribe(({ action: u, payload: d }) => {
|
|
786
|
+
switch (u) {
|
|
787
|
+
case X.WILL_SAVE:
|
|
788
|
+
k(d.filePath);
|
|
784
789
|
break;
|
|
785
|
-
case
|
|
786
|
-
|
|
790
|
+
case X.DID_SAVE:
|
|
791
|
+
D(d.filePath, d.content);
|
|
787
792
|
break;
|
|
788
|
-
case
|
|
789
|
-
v(
|
|
793
|
+
case X.WILL_CREATE:
|
|
794
|
+
v(d.filePath);
|
|
790
795
|
break;
|
|
791
|
-
case
|
|
792
|
-
|
|
796
|
+
case X.DID_CREATE:
|
|
797
|
+
Se(d.filePath);
|
|
793
798
|
break;
|
|
794
|
-
case
|
|
795
|
-
$(
|
|
799
|
+
case X.WILL_RENAME:
|
|
800
|
+
$(d.oldPath, d.newPath);
|
|
796
801
|
break;
|
|
797
|
-
case
|
|
798
|
-
|
|
802
|
+
case X.DID_RENAME:
|
|
803
|
+
ye(d.oldPath, d.newPath);
|
|
799
804
|
break;
|
|
800
|
-
case
|
|
801
|
-
P(
|
|
805
|
+
case X.WILL_DELETE:
|
|
806
|
+
P(d.filePath);
|
|
802
807
|
break;
|
|
803
|
-
case
|
|
804
|
-
|
|
808
|
+
case X.DID_DELETE:
|
|
809
|
+
Ne(d.filePath);
|
|
805
810
|
break;
|
|
806
|
-
case
|
|
807
|
-
|
|
811
|
+
case X.DIAGNOSTIC_REFRESH:
|
|
812
|
+
L(d.filePath);
|
|
808
813
|
break;
|
|
809
814
|
}
|
|
810
815
|
});
|
|
811
|
-
return () =>
|
|
816
|
+
return () => m.unsubscribe();
|
|
812
817
|
}, []);
|
|
813
|
-
const
|
|
814
|
-
var
|
|
815
|
-
return (
|
|
818
|
+
const F = (m) => {
|
|
819
|
+
var u, d;
|
|
820
|
+
return (d = (u = p.current) == null ? void 0 : u._features) == null ? void 0 : d.find(
|
|
816
821
|
(N) => {
|
|
817
|
-
var
|
|
818
|
-
return ((
|
|
822
|
+
var j;
|
|
823
|
+
return ((j = N._registrationType) == null ? void 0 : j.method) === m;
|
|
819
824
|
}
|
|
820
825
|
);
|
|
821
|
-
},
|
|
822
|
-
const
|
|
823
|
-
if (
|
|
824
|
-
for (const [, N] of
|
|
825
|
-
N.provider &&
|
|
826
|
-
return
|
|
827
|
-
},
|
|
828
|
-
var
|
|
829
|
-
const N =
|
|
830
|
-
|
|
826
|
+
}, l = (m) => {
|
|
827
|
+
const u = [], d = F(m);
|
|
828
|
+
if (d)
|
|
829
|
+
for (const [, N] of d._registrations)
|
|
830
|
+
N.provider && u.push(N.provider);
|
|
831
|
+
return u;
|
|
832
|
+
}, c = async (m, u, d) => {
|
|
833
|
+
var j, Z, W;
|
|
834
|
+
const N = l(
|
|
835
|
+
ut.method
|
|
831
836
|
);
|
|
832
837
|
if (N[0]) {
|
|
833
|
-
const
|
|
838
|
+
const J = new Ue(), U = await Promise.resolve(
|
|
834
839
|
N[0].full.provideDocumentSemanticTokens(
|
|
835
|
-
|
|
836
|
-
|
|
840
|
+
u,
|
|
841
|
+
J.token
|
|
837
842
|
)
|
|
838
|
-
),
|
|
839
|
-
|
|
840
|
-
|
|
843
|
+
), ee = m, K = U ? kt(
|
|
844
|
+
u,
|
|
845
|
+
ee._themeService,
|
|
841
846
|
{
|
|
842
847
|
tokens: U,
|
|
843
|
-
legend: (
|
|
848
|
+
legend: (W = (Z = (j = p.current) == null ? void 0 : j._capabilities) == null ? void 0 : Z.semanticTokensProvider) == null ? void 0 : W.legend
|
|
844
849
|
},
|
|
845
|
-
|
|
846
|
-
) : null,
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
+
d
|
|
851
|
+
) : null, te = Et(
|
|
852
|
+
u,
|
|
853
|
+
ee._themeService,
|
|
854
|
+
d
|
|
850
855
|
);
|
|
851
856
|
return {
|
|
852
857
|
semanticTokenInfo: K,
|
|
853
|
-
textmateTokenInfo:
|
|
858
|
+
textmateTokenInfo: te
|
|
854
859
|
};
|
|
855
860
|
}
|
|
856
861
|
return null;
|
|
857
|
-
},
|
|
862
|
+
}, L = (m) => {
|
|
858
863
|
if (p.current) {
|
|
859
|
-
const
|
|
860
|
-
|
|
864
|
+
const u = l(
|
|
865
|
+
nt.method
|
|
861
866
|
);
|
|
862
|
-
for (const
|
|
863
|
-
|
|
867
|
+
for (const d of u)
|
|
868
|
+
d.onDidChangeDiagnosticsEmitter.fire();
|
|
864
869
|
}
|
|
865
|
-
},
|
|
866
|
-
var
|
|
867
|
-
(
|
|
870
|
+
}, k = (m, u = tt.Manual) => {
|
|
871
|
+
var d;
|
|
872
|
+
(d = p.current) == null || d.sendNotification(it.type, {
|
|
868
873
|
textDocument: {
|
|
869
|
-
uri:
|
|
874
|
+
uri: E(m)
|
|
870
875
|
},
|
|
871
|
-
reason:
|
|
876
|
+
reason: u
|
|
872
877
|
});
|
|
873
|
-
},
|
|
874
|
-
var
|
|
875
|
-
(
|
|
878
|
+
}, D = (m, u) => {
|
|
879
|
+
var d;
|
|
880
|
+
(d = p.current) == null || d.sendNotification(ot.type, {
|
|
876
881
|
textDocument: {
|
|
877
|
-
uri:
|
|
882
|
+
uri: E(m)
|
|
878
883
|
},
|
|
879
|
-
text:
|
|
884
|
+
text: u
|
|
880
885
|
});
|
|
881
|
-
}, v = (
|
|
882
|
-
var
|
|
883
|
-
(
|
|
886
|
+
}, v = (m) => {
|
|
887
|
+
var u;
|
|
888
|
+
(u = p.current) == null || u.sendRequest(rt.type, {
|
|
884
889
|
files: [
|
|
885
890
|
{
|
|
886
|
-
uri:
|
|
891
|
+
uri: E(m)
|
|
887
892
|
}
|
|
888
893
|
]
|
|
889
894
|
});
|
|
890
|
-
}, $ = (
|
|
891
|
-
var
|
|
892
|
-
(
|
|
895
|
+
}, $ = (m, u) => {
|
|
896
|
+
var d;
|
|
897
|
+
(d = p.current) == null || d.sendRequest(st.type, {
|
|
893
898
|
files: [
|
|
894
899
|
{
|
|
895
|
-
oldUri:
|
|
896
|
-
newUri:
|
|
900
|
+
oldUri: E(m),
|
|
901
|
+
newUri: E(u)
|
|
897
902
|
}
|
|
898
903
|
]
|
|
899
904
|
});
|
|
900
|
-
}, P = (
|
|
901
|
-
var
|
|
902
|
-
(
|
|
905
|
+
}, P = (m) => {
|
|
906
|
+
var u;
|
|
907
|
+
(u = p.current) == null || u.sendRequest(at.type, {
|
|
903
908
|
files: [
|
|
904
909
|
{
|
|
905
|
-
uri:
|
|
910
|
+
uri: E(m)
|
|
906
911
|
}
|
|
907
912
|
]
|
|
908
913
|
});
|
|
909
|
-
},
|
|
910
|
-
var
|
|
911
|
-
(
|
|
914
|
+
}, Se = (m) => {
|
|
915
|
+
var u;
|
|
916
|
+
(u = p.current) == null || u.sendNotification(lt.type, {
|
|
912
917
|
files: [
|
|
913
918
|
{
|
|
914
|
-
uri:
|
|
919
|
+
uri: E(m)
|
|
915
920
|
}
|
|
916
921
|
]
|
|
917
922
|
});
|
|
918
|
-
},
|
|
919
|
-
var
|
|
920
|
-
(
|
|
923
|
+
}, ye = (m, u) => {
|
|
924
|
+
var d;
|
|
925
|
+
(d = p.current) == null || d.sendNotification(gt.type, {
|
|
921
926
|
files: [
|
|
922
927
|
{
|
|
923
|
-
oldUri:
|
|
924
|
-
newUri:
|
|
928
|
+
oldUri: E(m),
|
|
929
|
+
newUri: E(u)
|
|
925
930
|
}
|
|
926
931
|
]
|
|
927
932
|
});
|
|
928
|
-
},
|
|
929
|
-
var
|
|
930
|
-
(
|
|
933
|
+
}, Ne = (m) => {
|
|
934
|
+
var u;
|
|
935
|
+
(u = p.current) == null || u.sendNotification(ct.type, {
|
|
931
936
|
files: [
|
|
932
937
|
{
|
|
933
|
-
uri:
|
|
938
|
+
uri: E(m)
|
|
934
939
|
}
|
|
935
940
|
]
|
|
936
941
|
});
|
|
937
942
|
};
|
|
938
943
|
return /* @__PURE__ */ _(
|
|
939
|
-
|
|
944
|
+
pe.Provider,
|
|
940
945
|
{
|
|
941
946
|
value: {
|
|
942
|
-
inited:
|
|
947
|
+
inited: C || !!f,
|
|
943
948
|
clientRef: p,
|
|
944
949
|
lastError: f,
|
|
945
950
|
reload: S,
|
|
946
|
-
getTokenAtPosition:
|
|
951
|
+
getTokenAtPosition: c
|
|
947
952
|
},
|
|
948
953
|
children: [
|
|
949
954
|
n,
|
|
950
|
-
/* @__PURE__ */ w(
|
|
955
|
+
/* @__PURE__ */ w(Lt, { defaultZoom: i })
|
|
951
956
|
]
|
|
952
957
|
}
|
|
953
958
|
);
|
|
954
959
|
};
|
|
955
|
-
function
|
|
956
|
-
const n =
|
|
960
|
+
function Gn() {
|
|
961
|
+
const n = ue(pe);
|
|
957
962
|
if (n === void 0)
|
|
958
963
|
throw new Error("useLSP must be used within an LSPContext");
|
|
959
964
|
return n;
|
|
960
965
|
}
|
|
961
|
-
const
|
|
966
|
+
const Ae = ce(
|
|
962
967
|
void 0
|
|
963
|
-
),
|
|
968
|
+
), Jn = Re(({ children: n }) => {
|
|
964
969
|
const [e, t] = z(null);
|
|
965
970
|
return /* @__PURE__ */ w(
|
|
966
|
-
|
|
971
|
+
Ae.Provider,
|
|
967
972
|
{
|
|
968
973
|
value: {
|
|
969
974
|
editor: e,
|
|
@@ -973,8 +978,8 @@ const pe = ge(
|
|
|
973
978
|
}
|
|
974
979
|
);
|
|
975
980
|
});
|
|
976
|
-
function
|
|
977
|
-
const n =
|
|
981
|
+
function Zt() {
|
|
982
|
+
const n = ue(Ae), e = z(null);
|
|
978
983
|
if (n === void 0) {
|
|
979
984
|
const [t, i] = e;
|
|
980
985
|
return {
|
|
@@ -991,9 +996,9 @@ const Xt = {
|
|
|
991
996
|
suggestions: [
|
|
992
997
|
{
|
|
993
998
|
label: "device:xs",
|
|
994
|
-
kind:
|
|
999
|
+
kind: a.languages.CompletionItemKind.Snippet,
|
|
995
1000
|
documentation: "Media query for phone device",
|
|
996
|
-
range: new
|
|
1001
|
+
range: new a.Range(
|
|
997
1002
|
e.lineNumber,
|
|
998
1003
|
t.startColumn,
|
|
999
1004
|
e.lineNumber,
|
|
@@ -1007,83 +1012,83 @@ const Xt = {
|
|
|
1007
1012
|
"}"
|
|
1008
1013
|
].join(`
|
|
1009
1014
|
`),
|
|
1010
|
-
insertTextRules:
|
|
1015
|
+
insertTextRules: a.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
1011
1016
|
}
|
|
1012
1017
|
]
|
|
1013
1018
|
};
|
|
1014
1019
|
}
|
|
1015
|
-
},
|
|
1016
|
-
$ref:
|
|
1017
|
-
definitions:
|
|
1018
|
-
}, Tt = "array",
|
|
1020
|
+
}, Kt = "#/definitions/Condition", Bt = { Base: { type: "object", properties: { id: { type: "string" }, name: { type: "string" } }, required: ["id"] }, Condition: { oneOf: [{ $ref: "#/definitions/Datasource" }, { $ref: "#/definitions/Privilege" }, { $ref: "#/definitions/Combination" }, { $ref: "#/definitions/CurrentState" }, { $ref: "#/definitions/ParentState" }, { $ref: "#/definitions/Reference" }] }, Datasource: { allOf: [{ $ref: "#/definitions/Base" }], properties: { type: { const: "datasource" }, path: { type: "string" }, value: { type: ["number", "string", "boolean", "object", "array", "null"] }, valueType: { enum: ["datasource", "hardCoded"] }, dataType: { enum: ["string", "number", "date", "boolean", "array", "object"] }, op: { enum: ["eq", "neq", "regex", "in", "nin", "gt", "gte", "lt", "lte"] } }, required: ["name", "type", "path", "value", "op"] }, Privilege: { allOf: [{ $ref: "#/definitions/Base" }], properties: { type: { const: "privilege" }, value: { type: "string" }, valueType: { enum: ["datasource", "hardCoded"] }, op: { enum: ["eq", "neq", "regex"] } }, required: ["name", "type", "value", "op"] }, Combination: { allOf: [{ $ref: "#/definitions/Base" }], properties: { type: { const: "combination" }, op: { enum: ["and", "or"] }, conditions: { type: "array", items: { $ref: "#/definitions/Condition" } } }, required: ["type", "conditions", "op"] }, CurrentState: { allOf: [{ $ref: "#/definitions/Base" }], properties: { type: { const: "currentState" }, value: { type: "string" }, valueType: { enum: ["datasource", "hardCoded"] }, dataType: { enum: ["string", "number", "date", "boolean", "array", "object"] }, op: { enum: ["eq", "neq", "regex"] } }, required: ["name", "type", "value", "op"] }, ParentState: { allOf: [{ $ref: "#/definitions/Base" }], properties: { type: { const: "parentState" }, value: { type: "string" }, valueType: { enum: ["datasource", "hardCoded"] }, dataType: { enum: ["string", "number", "date", "boolean", "array", "object"] }, op: { enum: ["eq", "neq", "regex"] } }, required: ["name", "type", "value", "op"] }, Reference: { allOf: [{ $ref: "#/definitions/Base" }], properties: { type: { const: "reference" }, ref: { type: "string" } }, required: ["type", "ref"] } }, Dt = {
|
|
1021
|
+
$ref: Kt,
|
|
1022
|
+
definitions: Bt
|
|
1023
|
+
}, Tt = "array", Ot = { type: "object", properties: { class: { type: "string" }, method: { type: "string" }, regexPattern: { type: "string" }, verbs: { type: "string" } } }, Gt = {
|
|
1019
1024
|
type: Tt,
|
|
1020
|
-
items:
|
|
1025
|
+
items: Ot
|
|
1021
1026
|
};
|
|
1022
|
-
function
|
|
1027
|
+
function Jt(n, e) {
|
|
1023
1028
|
const t = document.createElement("style");
|
|
1024
1029
|
t.dataset.id = e, t.textContent = n, document.head.append(t);
|
|
1025
1030
|
}
|
|
1026
|
-
function
|
|
1031
|
+
function Mt(n) {
|
|
1027
1032
|
return Array.from(document.styleSheets).find(
|
|
1028
1033
|
(e) => e.ownerNode.getAttribute("data-id") === n
|
|
1029
1034
|
);
|
|
1030
1035
|
}
|
|
1031
|
-
function
|
|
1036
|
+
function Pt(n, e) {
|
|
1032
1037
|
const t = [];
|
|
1033
1038
|
let i = [];
|
|
1034
|
-
const o = [], r = (
|
|
1039
|
+
const o = [], r = (l, c, L, k) => {
|
|
1035
1040
|
t.push({
|
|
1036
|
-
startLineNumber:
|
|
1037
|
-
endLineNumber:
|
|
1038
|
-
startColumn:
|
|
1039
|
-
endColumn:
|
|
1040
|
-
}), h(),
|
|
1041
|
-
}, s = (
|
|
1042
|
-
o.indexOf(
|
|
1043
|
-
},
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
},
|
|
1047
|
-
for (const
|
|
1041
|
+
startLineNumber: l,
|
|
1042
|
+
endLineNumber: L,
|
|
1043
|
+
startColumn: c,
|
|
1044
|
+
endColumn: k
|
|
1045
|
+
}), h(), C();
|
|
1046
|
+
}, s = (l) => {
|
|
1047
|
+
o.indexOf(l) < 0 && o.push(l);
|
|
1048
|
+
}, I = (l) => {
|
|
1049
|
+
const c = o.indexOf(l);
|
|
1050
|
+
c < 0 || o.splice(c, 1);
|
|
1051
|
+
}, C = () => {
|
|
1052
|
+
for (const l of o)
|
|
1048
1053
|
try {
|
|
1049
|
-
|
|
1050
|
-
} catch (
|
|
1051
|
-
console.error(
|
|
1054
|
+
l(i);
|
|
1055
|
+
} catch (c) {
|
|
1056
|
+
console.error(c);
|
|
1052
1057
|
}
|
|
1053
1058
|
}, h = () => {
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
-
t.map((
|
|
1057
|
-
|
|
1058
|
-
lineNumber:
|
|
1059
|
-
column:
|
|
1059
|
+
const l = n.getModel();
|
|
1060
|
+
l && (i = Yt(
|
|
1061
|
+
t.map((c) => [
|
|
1062
|
+
l.getOffsetAt({
|
|
1063
|
+
lineNumber: c.startLineNumber,
|
|
1064
|
+
column: c.startColumn
|
|
1060
1065
|
}),
|
|
1061
|
-
|
|
1062
|
-
lineNumber:
|
|
1063
|
-
column:
|
|
1066
|
+
l.getOffsetAt({
|
|
1067
|
+
lineNumber: c.endLineNumber,
|
|
1068
|
+
column: c.endColumn
|
|
1064
1069
|
})
|
|
1065
1070
|
]),
|
|
1066
1071
|
/*mergeJoins*/
|
|
1067
1072
|
!0
|
|
1068
|
-
), i.length > 0 && (i[0][0] <= 0 && (i[0][0] = Number.NEGATIVE_INFINITY), i[i.length - 1][1] >=
|
|
1069
|
-
}, f = (
|
|
1070
|
-
const
|
|
1073
|
+
), i.length > 0 && (i[0][0] <= 0 && (i[0][0] = Number.NEGATIVE_INFINITY), i[i.length - 1][1] >= l.getValueLength() && (i[i.length - 1][1] = Number.POSITIVE_INFINITY)));
|
|
1074
|
+
}, f = (l) => {
|
|
1075
|
+
const c = {
|
|
1071
1076
|
isDeletion: !1,
|
|
1072
1077
|
isAddition: !1,
|
|
1073
1078
|
isReplacement: !1
|
|
1074
1079
|
};
|
|
1075
|
-
return
|
|
1076
|
-
}, A = n.onDidChangeModel((
|
|
1077
|
-
h(),
|
|
1078
|
-
}), p = n.onDidChangeModelContent((
|
|
1079
|
-
if (!
|
|
1080
|
-
for (const
|
|
1081
|
-
const
|
|
1082
|
-
if (
|
|
1083
|
-
const
|
|
1084
|
-
(v) =>
|
|
1085
|
-
),
|
|
1086
|
-
if (
|
|
1080
|
+
return l.text === "" ? c.isDeletion = !0 : l.range.startLineNumber === l.range.endLineNumber && l.range.startColumn === l.range.endColumn ? c.isAddition = !0 : c.isReplacement = !0, c;
|
|
1081
|
+
}, A = n.onDidChangeModel((l) => {
|
|
1082
|
+
h(), g();
|
|
1083
|
+
}), p = n.onDidChangeModelContent((l) => {
|
|
1084
|
+
if (!l.isUndoing)
|
|
1085
|
+
for (const c of l.changes) {
|
|
1086
|
+
const L = f(c);
|
|
1087
|
+
if (L.isReplacement || L.isDeletion || L.isAddition) {
|
|
1088
|
+
const k = t.some(
|
|
1089
|
+
(v) => c.range.startLineNumber >= v.startLineNumber && c.range.endLineNumber <= v.endLineNumber && c.range.startColumn >= v.startColumn && c.range.endColumn <= v.endColumn
|
|
1090
|
+
), D = !k && e && c.range.startLineNumber === 1 && c.range.startColumn === 1 && !de(c.text);
|
|
1091
|
+
if (k || D) {
|
|
1087
1092
|
const v = n.getModel();
|
|
1088
1093
|
if (v) {
|
|
1089
1094
|
v.undo();
|
|
@@ -1102,27 +1107,27 @@ function Mt(n, e) {
|
|
|
1102
1107
|
}
|
|
1103
1108
|
`;
|
|
1104
1109
|
if (S) {
|
|
1105
|
-
const
|
|
1106
|
-
|
|
1110
|
+
const l = "monaco-read-only";
|
|
1111
|
+
Mt(l) || Jt(S, l), S = null;
|
|
1107
1112
|
}
|
|
1108
1113
|
const y = () => {
|
|
1109
|
-
s(
|
|
1114
|
+
s(g), g();
|
|
1110
1115
|
}, b = () => {
|
|
1111
|
-
|
|
1112
|
-
},
|
|
1113
|
-
const
|
|
1114
|
-
|
|
1116
|
+
I(g), R = n.deltaDecorations(R, []);
|
|
1117
|
+
}, g = () => {
|
|
1118
|
+
const l = n.getModel();
|
|
1119
|
+
l && (R = n.deltaDecorations(
|
|
1115
1120
|
R,
|
|
1116
|
-
i.map(
|
|
1121
|
+
i.map(F(l))
|
|
1117
1122
|
));
|
|
1118
|
-
},
|
|
1119
|
-
const
|
|
1123
|
+
}, F = (l) => (c) => {
|
|
1124
|
+
const L = l.getPositionAt(c[0]), k = l.getPositionAt(c[1]);
|
|
1120
1125
|
return {
|
|
1121
|
-
range: new
|
|
1122
|
-
F.lineNumber,
|
|
1123
|
-
F.column,
|
|
1126
|
+
range: new a.Range(
|
|
1124
1127
|
L.lineNumber,
|
|
1125
|
-
L.column
|
|
1128
|
+
L.column,
|
|
1129
|
+
k.lineNumber,
|
|
1130
|
+
k.column
|
|
1126
1131
|
),
|
|
1127
1132
|
options: {
|
|
1128
1133
|
className: "idoc-readonly-mark"
|
|
@@ -1135,22 +1140,22 @@ function Mt(n, e) {
|
|
|
1135
1140
|
},
|
|
1136
1141
|
exclude: r,
|
|
1137
1142
|
attach: s,
|
|
1138
|
-
detach:
|
|
1143
|
+
detach: I,
|
|
1139
1144
|
dispose: x,
|
|
1140
1145
|
show: y,
|
|
1141
1146
|
hide: b
|
|
1142
1147
|
};
|
|
1143
1148
|
}
|
|
1144
|
-
function
|
|
1149
|
+
function Vt(n, e, t) {
|
|
1145
1150
|
let i = !1;
|
|
1146
|
-
const o = (b) => b[1] < b[0] ? (i = !0, [[b[1], b[0]]]) : [[...b]], r = (b) => i ? b.map((
|
|
1151
|
+
const o = (b) => b[1] < b[0] ? (i = !0, [[b[1], b[0]]]) : [[...b]], r = (b) => i ? b.map((g) => g[1] > g[0] ? I(g) : g).reverse() : b;
|
|
1147
1152
|
let s;
|
|
1148
|
-
const
|
|
1153
|
+
const I = (b) => (s = b[1], b[1] = b[0], b[0] = s, b), C = o(n);
|
|
1149
1154
|
let h, f, A, p, x, R, S, y;
|
|
1150
|
-
A =
|
|
1155
|
+
A = C[0];
|
|
1151
1156
|
for (f of e)
|
|
1152
|
-
for (S = f[0], y = f[1], p = 0; p <
|
|
1153
|
-
if (A =
|
|
1157
|
+
for (S = f[0], y = f[1], p = 0; p < C.length; p++) {
|
|
1158
|
+
if (A = C[p], x = A[0], R = A[1], x < S)
|
|
1154
1159
|
R < S ? h = [A] : R <= y ? h = [[x, S - 1]] : h = [
|
|
1155
1160
|
[x, S - 1],
|
|
1156
1161
|
[y + 1, R]
|
|
@@ -1162,17 +1167,17 @@ function Pt(n, e, t) {
|
|
|
1162
1167
|
} else y === Number.POSITIVE_INFINITY ? h = t === 0 ? [] : [[S - 1, S - 1]] : R <= y ? h = t < 0 ? [[S - 1, S - 1]] : t > 0 ? [[y + 1, y + 1]] : [] : h = [[y + 1, R]];
|
|
1163
1168
|
else
|
|
1164
1169
|
h = [A];
|
|
1165
|
-
if (
|
|
1170
|
+
if (C.splice(p, 1, ...h), C.length === 1 && C[0][1] < S) return r(C);
|
|
1166
1171
|
}
|
|
1167
|
-
return r(
|
|
1172
|
+
return r(C);
|
|
1168
1173
|
}
|
|
1169
|
-
function
|
|
1174
|
+
function Yt(n, e) {
|
|
1170
1175
|
if (n.length < 2) return n;
|
|
1171
1176
|
const t = [];
|
|
1172
1177
|
let i = null, o, r;
|
|
1173
1178
|
n = n.map(
|
|
1174
1179
|
(s) => (s[1] < s[0] && (o = s[1], s[1] = s[0], s[1] = o), s)
|
|
1175
|
-
).sort((s,
|
|
1180
|
+
).sort((s, I) => s[0] - I[0]), t.push(n[0]);
|
|
1176
1181
|
for (let s = 1; s < n.length; s++)
|
|
1177
1182
|
i = t[t.length - 1], r = n[s], i[1] === r[0] && !e || (i[1] === r[0] - 1 && e ? (i[1] = r[1], t.splice(t.length - 1, 1, i)) : i[1] < r[0] ? t.push(r) : i[1] < r[1] && (i[1] = r[1], t.splice(t.length - 1, 1, i)));
|
|
1178
1183
|
return t;
|
|
@@ -1180,7 +1185,7 @@ function Vt(n, e) {
|
|
|
1180
1185
|
function Y(n, e) {
|
|
1181
1186
|
return e.bind(n);
|
|
1182
1187
|
}
|
|
1183
|
-
class
|
|
1188
|
+
class Ht {
|
|
1184
1189
|
constructor(e, t) {
|
|
1185
1190
|
var i;
|
|
1186
1191
|
this.disposables = [], this.prefer = 1, this.lastPrefer = 1, this.onCursor = Y(
|
|
@@ -1195,7 +1200,7 @@ class Yt {
|
|
|
1195
1200
|
}), this.onRectangleSelectionStop = Y(this, function() {
|
|
1196
1201
|
this.prefer = this.lastPrefer, window.removeEventListener("pointerup", this.onRectangleSelectionStop);
|
|
1197
1202
|
}), this.onKey = Y(this, function(o) {
|
|
1198
|
-
const r = o.keyCode, s =
|
|
1203
|
+
const r = o.keyCode, s = a.KeyCode;
|
|
1199
1204
|
if (o.altKey || s.F1 <= r && r <= s.F19 || o.ctrlKey && r !== s.Backspace) return;
|
|
1200
1205
|
if (r === s.UpArrow || r === s.LeftArrow || r === s.Home || r === s.PageUp) {
|
|
1201
1206
|
this.prefer = -1;
|
|
@@ -1205,21 +1210,21 @@ class Yt {
|
|
|
1205
1210
|
this.prefer = 1;
|
|
1206
1211
|
return;
|
|
1207
1212
|
}
|
|
1208
|
-
const
|
|
1213
|
+
const I = this.getSelections(), C = this.intervals.buffer;
|
|
1209
1214
|
let h;
|
|
1210
1215
|
if (r === s.Delete)
|
|
1211
|
-
h = (f) => f[0] === f[1] &&
|
|
1216
|
+
h = (f) => f[0] === f[1] && C.find((A) => f[1] + 1 === A[0]) != null;
|
|
1212
1217
|
else if (r === s.Backspace)
|
|
1213
|
-
h = (f) => f[0] === f[1] &&
|
|
1218
|
+
h = (f) => f[0] === f[1] && C.find((A) => A[1] + 1 === f[0]) != null;
|
|
1214
1219
|
else
|
|
1215
1220
|
return;
|
|
1216
|
-
|
|
1221
|
+
I.findIndex(h) !== -1 && (o.stopPropagation(), o.preventDefault());
|
|
1217
1222
|
}), this.getOffsetAt = Y(this, function(o) {
|
|
1218
1223
|
let r;
|
|
1219
1224
|
for (let s = 0; s < this.intervals.buffer.length; s++)
|
|
1220
1225
|
if (r = this.intervals.buffer[s], o <= r[1])
|
|
1221
1226
|
return r[0] - o < o - r[1] ? r[0] : r[1];
|
|
1222
|
-
}), this.editor = e, this.intervals =
|
|
1227
|
+
}), this.editor = e, this.intervals = Pt(e, t), (i = this.editor.getModel()) == null || i.setEOL(a.editor.EndOfLineSequence.LF);
|
|
1223
1228
|
}
|
|
1224
1229
|
enable() {
|
|
1225
1230
|
this.disposables.push(
|
|
@@ -1238,14 +1243,14 @@ class Yt {
|
|
|
1238
1243
|
getApprovedSelections() {
|
|
1239
1244
|
const e = this.editor.getModel();
|
|
1240
1245
|
return this.getSelections().map(
|
|
1241
|
-
(i) =>
|
|
1246
|
+
(i) => Vt(
|
|
1242
1247
|
i,
|
|
1243
1248
|
this.intervals.buffer,
|
|
1244
1249
|
this.prefer
|
|
1245
1250
|
)
|
|
1246
1251
|
).flat().map((i) => {
|
|
1247
1252
|
const o = e.getPositionAt(i[0]), r = e.getPositionAt(i[1]);
|
|
1248
|
-
return new
|
|
1253
|
+
return new a.Selection(
|
|
1249
1254
|
o.lineNumber,
|
|
1250
1255
|
o.column,
|
|
1251
1256
|
r.lineNumber,
|
|
@@ -1267,28 +1272,83 @@ class Yt {
|
|
|
1267
1272
|
]);
|
|
1268
1273
|
}
|
|
1269
1274
|
}
|
|
1270
|
-
const
|
|
1275
|
+
const _t = {
|
|
1276
|
+
provideDocumentFormattingEdits(n, e) {
|
|
1277
|
+
const t = n.getValue();
|
|
1278
|
+
try {
|
|
1279
|
+
const i = zt(t, e.tabSize, e.insertSpaces);
|
|
1280
|
+
return [
|
|
1281
|
+
{
|
|
1282
|
+
range: n.getFullModelRange(),
|
|
1283
|
+
text: i
|
|
1284
|
+
}
|
|
1285
|
+
];
|
|
1286
|
+
} catch {
|
|
1287
|
+
return [];
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
function zt(n, e = 2, t = !0) {
|
|
1292
|
+
const i = t ? " ".repeat(e) : " ";
|
|
1293
|
+
let o = n.replace(/\s+/g, " ").trim();
|
|
1294
|
+
return o = o.replace(/\{/g, ` {
|
|
1295
|
+
` + i).replace(/\}/g, `
|
|
1296
|
+
}
|
|
1297
|
+
`).replace(/;/g, `;
|
|
1298
|
+
` + i).replace(/,/g, `,
|
|
1299
|
+
` + i), o = o.replace(/\s*\{\s*/g, ` {
|
|
1300
|
+
` + i).replace(/\s*\}\s*/g, `
|
|
1301
|
+
}
|
|
1302
|
+
`).replace(/\s*;\s*/g, `;
|
|
1303
|
+
` + i).replace(/\s*:\s*/g, ": "), o = o.split(`
|
|
1304
|
+
`).map((r) => r.trim() === "}" ? "}" : r.trimEnd()).filter((r, s, I) => !(r === "" && I[s + 1] === "")).join(`
|
|
1305
|
+
`).trim(), o;
|
|
1306
|
+
}
|
|
1307
|
+
const $t = {
|
|
1308
|
+
provideDocumentFormattingEdits(n, e) {
|
|
1309
|
+
const t = n.getValue();
|
|
1310
|
+
try {
|
|
1311
|
+
const i = Ut(t, e.tabSize);
|
|
1312
|
+
return [
|
|
1313
|
+
{
|
|
1314
|
+
range: n.getFullModelRange(),
|
|
1315
|
+
text: i
|
|
1316
|
+
}
|
|
1317
|
+
];
|
|
1318
|
+
} catch {
|
|
1319
|
+
return [];
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1323
|
+
function Ut(n, e = 2) {
|
|
1324
|
+
const t = JSON.parse(n);
|
|
1325
|
+
return JSON.stringify(t, null, e);
|
|
1326
|
+
}
|
|
1327
|
+
const qt = new RegExp("^[ s]+(exposed|Function)", "i"), Qt = ({
|
|
1271
1328
|
lineNumber: n,
|
|
1272
1329
|
editor: e,
|
|
1273
1330
|
type: t,
|
|
1274
1331
|
source: i
|
|
1275
1332
|
}) => {
|
|
1276
1333
|
var h;
|
|
1277
|
-
const o = t ===
|
|
1334
|
+
const o = t === oe.METHOD || t === oe.DEBUGGER && ((h = i == null ? void 0 : i.codeDescriptorInfo) == null ? void 0 : h.type) === je.METHOD;
|
|
1278
1335
|
if (n === 1)
|
|
1279
1336
|
return o ? "" : "1";
|
|
1280
|
-
const r = e == null ? void 0 : e.getModel(), s = (r == null ? void 0 : r.getLinesContent()) || [],
|
|
1281
|
-
let
|
|
1337
|
+
const r = e == null ? void 0 : e.getModel(), s = (r == null ? void 0 : r.getLinesContent()) || [], I = Array(s.length).fill("-");
|
|
1338
|
+
let C = o ? 0 : 1;
|
|
1282
1339
|
for (let f = 1; f < s.length; f++)
|
|
1283
|
-
(f === 1 ? "" : s[f - 1]).endsWith("\\") || (
|
|
1284
|
-
return
|
|
1340
|
+
(f === 1 ? "" : s[f - 1]).endsWith("\\") || (C += 1, I[f] = C.toString());
|
|
1341
|
+
return I[n - 1];
|
|
1285
1342
|
}, le = () => /* @__PURE__ */ w("div", { className: "absolute inset-0 animate-pulse", children: /* @__PURE__ */ w("div", { className: "w-full space-y-4 px-4 py-1", children: /* @__PURE__ */ _("div", { className: "space-y-2", children: [
|
|
1286
1343
|
/* @__PURE__ */ w("div", { className: "h-3 w-3/4 rounded bg-grey-200" }),
|
|
1287
1344
|
/* @__PURE__ */ w("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1288
1345
|
/* @__PURE__ */ w("div", { className: "h-3 w-5/6 rounded bg-grey-200" }),
|
|
1289
1346
|
/* @__PURE__ */ w("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1290
1347
|
/* @__PURE__ */ w("div", { className: "h-3 rounded bg-grey-200" })
|
|
1291
|
-
] }) }) }),
|
|
1348
|
+
] }) }) }), ie = ["fd-dark"], q = {
|
|
1349
|
+
css: [],
|
|
1350
|
+
json: []
|
|
1351
|
+
}, Mn = ({
|
|
1292
1352
|
path: n,
|
|
1293
1353
|
initialValue: e,
|
|
1294
1354
|
type: t,
|
|
@@ -1296,76 +1356,92 @@ const Ht = new RegExp("^[ s]+(exposed|Function)", "i"), _t = ({
|
|
|
1296
1356
|
onChange: o,
|
|
1297
1357
|
options: r = {},
|
|
1298
1358
|
extra: s = {},
|
|
1299
|
-
lspProps:
|
|
1300
|
-
theme:
|
|
1359
|
+
lspProps: I,
|
|
1360
|
+
theme: C = ie[0],
|
|
1301
1361
|
...h
|
|
1302
1362
|
}) => {
|
|
1303
|
-
const { initialLineInfo: f, initialSelectionInfo: A } = s, { editor: p, setEditor: x } =
|
|
1304
|
-
function S(
|
|
1305
|
-
i === "css" &&
|
|
1363
|
+
const { initialLineInfo: f, initialSelectionInfo: A } = s, { editor: p, setEditor: x } = Zt(), { inited: R } = I;
|
|
1364
|
+
function S(g) {
|
|
1365
|
+
i === "css" && g.languages.css && (g.languages.registerCompletionItemProvider("css", Xt), g.languages.css.cssDefaults.setModeConfiguration({
|
|
1366
|
+
documentFormattingEdits: !1,
|
|
1367
|
+
documentRangeFormattingEdits: !1
|
|
1368
|
+
}), q.css.forEach((F) => F.dispose()), q.css.push(
|
|
1369
|
+
g.languages.registerDocumentFormattingEditProvider(
|
|
1370
|
+
"css",
|
|
1371
|
+
_t
|
|
1372
|
+
)
|
|
1373
|
+
)), i === "json" && g.languages.json && (g.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
1306
1374
|
validate: !0,
|
|
1307
1375
|
schemas: [
|
|
1308
1376
|
{
|
|
1309
1377
|
uri: "condition-schema.json",
|
|
1310
1378
|
fileMatch: ["*.condition.json"],
|
|
1311
|
-
schema:
|
|
1379
|
+
schema: Dt
|
|
1312
1380
|
},
|
|
1313
1381
|
{
|
|
1314
1382
|
uri: "handlers-schema.json",
|
|
1315
|
-
fileMatch: [
|
|
1316
|
-
schema:
|
|
1383
|
+
fileMatch: [Ee],
|
|
1384
|
+
schema: Gt
|
|
1317
1385
|
}
|
|
1318
1386
|
]
|
|
1319
|
-
})
|
|
1387
|
+
}), g.languages.json.jsonDefaults.setModeConfiguration({
|
|
1388
|
+
documentFormattingEdits: !1,
|
|
1389
|
+
documentRangeFormattingEdits: !1
|
|
1390
|
+
}), q.json.forEach((F) => F.dispose()), q.json.push(
|
|
1391
|
+
g.languages.registerDocumentFormattingEditProvider(
|
|
1392
|
+
"json",
|
|
1393
|
+
$t
|
|
1394
|
+
)
|
|
1395
|
+
));
|
|
1320
1396
|
}
|
|
1321
|
-
function y(
|
|
1322
|
-
x(
|
|
1323
|
-
const
|
|
1324
|
-
if (
|
|
1325
|
-
var
|
|
1326
|
-
const
|
|
1327
|
-
if (
|
|
1328
|
-
const
|
|
1329
|
-
|
|
1397
|
+
function y(g, F) {
|
|
1398
|
+
x(g);
|
|
1399
|
+
const l = g.getModel();
|
|
1400
|
+
if (l && (l.updateOptions({ insertSpaces: !1 }), g.onKeyUp(() => {
|
|
1401
|
+
var L;
|
|
1402
|
+
const c = (L = g.getPosition()) == null ? void 0 : L.lineNumber;
|
|
1403
|
+
if (c) {
|
|
1404
|
+
const k = l.getLineFirstNonWhitespaceColumn(c), D = l.getLineLength(c), v = l.getLineContent(c);
|
|
1405
|
+
qt.test(v) && g.executeEdits("edit-handler", [
|
|
1330
1406
|
{
|
|
1331
|
-
range: new
|
|
1332
|
-
|
|
1407
|
+
range: new F.Range(
|
|
1408
|
+
c,
|
|
1333
1409
|
0,
|
|
1334
|
-
|
|
1335
|
-
|
|
1410
|
+
c,
|
|
1411
|
+
D
|
|
1336
1412
|
),
|
|
1337
1413
|
text: v.substr(
|
|
1338
|
-
|
|
1339
|
-
|
|
1414
|
+
k - 1,
|
|
1415
|
+
D - k
|
|
1340
1416
|
)
|
|
1341
1417
|
}
|
|
1342
1418
|
]);
|
|
1343
1419
|
}
|
|
1344
|
-
})), t ===
|
|
1345
|
-
const
|
|
1346
|
-
|
|
1420
|
+
})), t === oe.METHOD && de(e)) {
|
|
1421
|
+
const c = new Ht(g, !0);
|
|
1422
|
+
c.exclude(1, 1, 1, Number.POSITIVE_INFINITY), c.enable();
|
|
1347
1423
|
}
|
|
1348
1424
|
}
|
|
1349
1425
|
M(() => {
|
|
1350
1426
|
if (!p) return;
|
|
1351
|
-
const { line:
|
|
1352
|
-
|
|
1427
|
+
const { line: g, offset: F } = f || {};
|
|
1428
|
+
g && Rt(p, g, F);
|
|
1353
1429
|
}, [f, p]), M(() => {
|
|
1354
1430
|
if (!p) return;
|
|
1355
|
-
const { selection:
|
|
1356
|
-
|
|
1431
|
+
const { selection: g } = A || {};
|
|
1432
|
+
g && Nt(p, g);
|
|
1357
1433
|
}, [A, p]);
|
|
1358
|
-
const b = (
|
|
1434
|
+
const b = (g) => ie.includes(g) ? g : ie[0];
|
|
1359
1435
|
return R ? /* @__PURE__ */ w(
|
|
1360
|
-
|
|
1436
|
+
Fe,
|
|
1361
1437
|
{
|
|
1362
1438
|
options: {
|
|
1363
1439
|
readOnly: !0,
|
|
1364
1440
|
fontSize: 12,
|
|
1365
1441
|
"semanticHighlighting.enabled": !0,
|
|
1366
1442
|
padding: { top: 10 },
|
|
1367
|
-
lineNumbers: i === "4d" ? (
|
|
1368
|
-
lineNumber:
|
|
1443
|
+
lineNumbers: i === "4d" ? (g) => Qt({
|
|
1444
|
+
lineNumber: g,
|
|
1369
1445
|
editor: p,
|
|
1370
1446
|
type: t,
|
|
1371
1447
|
source: s == null ? void 0 : s.source
|
|
@@ -1373,10 +1449,10 @@ const Ht = new RegExp("^[ s]+(exposed|Function)", "i"), _t = ({
|
|
|
1373
1449
|
scrollBeyondLastLine: !1,
|
|
1374
1450
|
...r
|
|
1375
1451
|
},
|
|
1376
|
-
path:
|
|
1452
|
+
path: E(n),
|
|
1377
1453
|
value: e,
|
|
1378
|
-
theme: b(
|
|
1379
|
-
onChange: (
|
|
1454
|
+
theme: b(C),
|
|
1455
|
+
onChange: (g) => o && o(g || ""),
|
|
1380
1456
|
language: i,
|
|
1381
1457
|
beforeMount: S,
|
|
1382
1458
|
onMount: y,
|
|
@@ -1385,13 +1461,13 @@ const Ht = new RegExp("^[ s]+(exposed|Function)", "i"), _t = ({
|
|
|
1385
1461
|
}
|
|
1386
1462
|
) : /* @__PURE__ */ w("div", { className: "relative flex-1 w-full", children: /* @__PURE__ */ w(le, {}) });
|
|
1387
1463
|
};
|
|
1388
|
-
var
|
|
1464
|
+
var be = {
|
|
1389
1465
|
color: void 0,
|
|
1390
1466
|
size: void 0,
|
|
1391
1467
|
className: void 0,
|
|
1392
1468
|
style: void 0,
|
|
1393
1469
|
attr: void 0
|
|
1394
|
-
},
|
|
1470
|
+
}, ge = G.createContext && G.createContext(be), B = function() {
|
|
1395
1471
|
return B = Object.assign || function(n) {
|
|
1396
1472
|
for (var e, t = 1, i = arguments.length; t < i; t++) {
|
|
1397
1473
|
e = arguments[t];
|
|
@@ -1399,55 +1475,55 @@ var Ae = {
|
|
|
1399
1475
|
}
|
|
1400
1476
|
return n;
|
|
1401
1477
|
}, B.apply(this, arguments);
|
|
1402
|
-
},
|
|
1478
|
+
}, en = function(n, e) {
|
|
1403
1479
|
var t = {};
|
|
1404
1480
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
|
|
1405
1481
|
if (n != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, i = Object.getOwnPropertySymbols(n); o < i.length; o++)
|
|
1406
1482
|
e.indexOf(i[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[o]) && (t[i[o]] = n[i[o]]);
|
|
1407
1483
|
return t;
|
|
1408
1484
|
};
|
|
1409
|
-
function
|
|
1485
|
+
function he(n) {
|
|
1410
1486
|
return n && n.map(function(e, t) {
|
|
1411
|
-
return
|
|
1487
|
+
return G.createElement(e.tag, B({
|
|
1412
1488
|
key: t
|
|
1413
|
-
}, e.attr),
|
|
1489
|
+
}, e.attr), he(e.child));
|
|
1414
1490
|
});
|
|
1415
1491
|
}
|
|
1416
|
-
function
|
|
1492
|
+
function ve(n) {
|
|
1417
1493
|
return function(e) {
|
|
1418
|
-
return
|
|
1494
|
+
return G.createElement(tn, B({
|
|
1419
1495
|
attr: B({}, n.attr)
|
|
1420
|
-
}, e),
|
|
1496
|
+
}, e), he(n.child));
|
|
1421
1497
|
};
|
|
1422
1498
|
}
|
|
1423
|
-
function
|
|
1499
|
+
function tn(n) {
|
|
1424
1500
|
var e = function(t) {
|
|
1425
|
-
var i = n.attr, o = n.size, r = n.title, s =
|
|
1426
|
-
return t.className && (
|
|
1501
|
+
var i = n.attr, o = n.size, r = n.title, s = en(n, ["attr", "size", "title"]), I = o || t.size || "1em", C;
|
|
1502
|
+
return t.className && (C = t.className), n.className && (C = (C ? C + " " : "") + n.className), G.createElement("svg", B({
|
|
1427
1503
|
stroke: "currentColor",
|
|
1428
1504
|
fill: "currentColor",
|
|
1429
1505
|
strokeWidth: "0"
|
|
1430
1506
|
}, t.attr, i, s, {
|
|
1431
|
-
className:
|
|
1507
|
+
className: C,
|
|
1432
1508
|
style: B(B({
|
|
1433
1509
|
color: n.color || t.color
|
|
1434
1510
|
}, t.style), n.style),
|
|
1435
|
-
height:
|
|
1436
|
-
width:
|
|
1511
|
+
height: I,
|
|
1512
|
+
width: I,
|
|
1437
1513
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1438
|
-
}), r &&
|
|
1514
|
+
}), r && G.createElement("title", null, r), n.children);
|
|
1439
1515
|
};
|
|
1440
|
-
return
|
|
1516
|
+
return ge !== void 0 ? G.createElement(ge.Consumer, null, function(t) {
|
|
1441
1517
|
return e(t);
|
|
1442
|
-
}) : e(
|
|
1518
|
+
}) : e(be);
|
|
1443
1519
|
}
|
|
1444
|
-
function
|
|
1445
|
-
return
|
|
1520
|
+
function nn(n) {
|
|
1521
|
+
return ve({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z" } }] })(n);
|
|
1446
1522
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1523
|
+
function on(n) {
|
|
1524
|
+
return ve({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z" } }] })(n);
|
|
1449
1525
|
}
|
|
1450
|
-
const
|
|
1526
|
+
const Pn = ({
|
|
1451
1527
|
lspProps: { lastError: n, reload: e }
|
|
1452
1528
|
}) => {
|
|
1453
1529
|
const [t, i] = z(!1), o = () => {
|
|
@@ -1459,7 +1535,7 @@ const Dn = ({
|
|
|
1459
1535
|
i(!!n);
|
|
1460
1536
|
}, [n]), t ? /* @__PURE__ */ _("div", { className: "flex items-center border-b border-fd-gray-darker bg-grey-800 px-2 py-1.5 text-xs text-grey-50", children: [
|
|
1461
1537
|
/* @__PURE__ */ _("span", { className: "flex flex-1 justify-center gap-1", children: [
|
|
1462
|
-
/* @__PURE__ */ w(
|
|
1538
|
+
/* @__PURE__ */ w(on, { className: "h-4 w-4 text-yellow-600" }),
|
|
1463
1539
|
/* @__PURE__ */ _("span", { children: [
|
|
1464
1540
|
"LSP not loaded.",
|
|
1465
1541
|
" ",
|
|
@@ -1474,14 +1550,14 @@ const Dn = ({
|
|
|
1474
1550
|
] })
|
|
1475
1551
|
] }),
|
|
1476
1552
|
/* @__PURE__ */ w("button", { className: "focus:outline-none", children: /* @__PURE__ */ w(
|
|
1477
|
-
|
|
1553
|
+
nn,
|
|
1478
1554
|
{
|
|
1479
1555
|
className: "h-4 w-4 text-white",
|
|
1480
1556
|
onClick: r
|
|
1481
1557
|
}
|
|
1482
1558
|
) })
|
|
1483
1559
|
] }) : null;
|
|
1484
|
-
},
|
|
1560
|
+
}, rn = {
|
|
1485
1561
|
name: "4d",
|
|
1486
1562
|
displayName: "%displayName%",
|
|
1487
1563
|
description: "%description%",
|
|
@@ -1506,44 +1582,44 @@ const Dn = ({
|
|
|
1506
1582
|
}
|
|
1507
1583
|
]
|
|
1508
1584
|
}
|
|
1509
|
-
}, { registerFileUrl:
|
|
1585
|
+
}, { registerFileUrl: Q, whenReady: Vn } = Ct(rn, void 0, {
|
|
1510
1586
|
system: !0
|
|
1511
1587
|
});
|
|
1512
|
-
|
|
1588
|
+
Q(
|
|
1513
1589
|
"./syntaxes/4d.tmLanguage.json",
|
|
1514
1590
|
new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=", import.meta.url).toString(),
|
|
1515
1591
|
{ mimeType: "application/json", size: 1592 }
|
|
1516
1592
|
);
|
|
1517
|
-
|
|
1593
|
+
Q(
|
|
1518
1594
|
"./language-configuration.json",
|
|
1519
1595
|
new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==", import.meta.url).toString(),
|
|
1520
1596
|
{ mimeType: "application/json", size: 1723 }
|
|
1521
1597
|
);
|
|
1522
|
-
|
|
1598
|
+
Q(
|
|
1523
1599
|
"package.json",
|
|
1524
1600
|
new URL("data:application/json;base64,ewogICJuYW1lIjogIjRkIiwKICAiZGlzcGxheU5hbWUiOiAiJWRpc3BsYXlOYW1lJSIsCiAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICJ2ZXJzaW9uIjogIjEuMC4wIiwKICAicHVibGlzaGVyIjogInZzY29kZSIsCiAgImxpY2Vuc2UiOiAiTUlUIiwKICAiZW5naW5lcyI6IHsKICAgICJ2c2NvZGUiOiAiMC4xMC54IgogIH0sCiAgInNjcmlwdHMiOiB7CiAgICAidXBkYXRlLWdyYW1tYXIiOiAibm9kZSAuLi9ub2RlX21vZHVsZXMvdnNjb2RlLWdyYW1tYXItdXBkYXRlci9iaW4gbWljcm9zb2Z0L3ZzY29kZS00ZCBncmFtbWFycy80ZC5jc29uIC4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogIH0sCiAgImNhdGVnb3JpZXMiOiBbCiAgICAiUHJvZ3JhbW1pbmcgTGFuZ3VhZ2VzIgogIF0sCiAgImNvbnRyaWJ1dGVzIjogewogICAgImxhbmd1YWdlcyI6IFsKICAgICAgewogICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgImFsaWFzZXMiOiBbCiAgICAgICAgICAiNEQiLAogICAgICAgICAgIjRkIgogICAgICAgIF0sCiAgICAgICAgImV4dGVuc2lvbnMiOiBbCiAgICAgICAgICAiLjRkbSIsCiAgICAgICAgICAiLjRxcyIKICAgICAgICBdLAogICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICB9CiAgICBdLAogICAgImdyYW1tYXJzIjogWwogICAgICB7CiAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICB9CiAgICBdCiAgfSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJ0eXBlIjogImdpdCIsCiAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICB9Cn0K", import.meta.url).toString(),
|
|
1525
1601
|
{ mimeType: "application/json", size: 1006 }
|
|
1526
1602
|
);
|
|
1527
|
-
|
|
1603
|
+
Q(
|
|
1528
1604
|
"package.nls.json",
|
|
1529
1605
|
new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K", import.meta.url).toString(),
|
|
1530
1606
|
{ mimeType: "application/json", size: 135 }
|
|
1531
1607
|
);
|
|
1532
1608
|
export {
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1609
|
+
Pn as Alerts,
|
|
1610
|
+
Mn as CodeEditor,
|
|
1611
|
+
Jn as CodeEditorProvider,
|
|
1612
|
+
Qt as FdLineNumbers,
|
|
1613
|
+
On as LSPProvider,
|
|
1614
|
+
ie as SUPPORTED_THEMES,
|
|
1615
|
+
Ce as _await,
|
|
1616
|
+
vt as configureServices,
|
|
1617
|
+
E as getFileSystemPath,
|
|
1618
|
+
Tn as getFunctionOffset,
|
|
1619
|
+
ht as initMonacoUserConfiguration,
|
|
1620
|
+
Rt as jumpToLine,
|
|
1621
|
+
Nt as jumpToSelection,
|
|
1622
|
+
Zt as useCodeEditor,
|
|
1623
|
+
Gn as useLSP
|
|
1548
1624
|
};
|
|
1549
1625
|
//# sourceMappingURL=index.es.js.map
|