@ws-ui/code-editor 0.2.1 → 0.2.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/editor/services/index.d.ts +1 -1
- package/dist/editor/utils.d.ts +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +325 -298
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var x = (t, e, n) => (
|
|
4
|
-
import { jsxs as
|
|
5
|
-
import
|
|
6
|
-
import { loader as
|
|
7
|
-
import { lspSubject as
|
|
8
|
-
import { MonacoLanguageClient as
|
|
9
|
-
import { mergeServices as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import Ne from "@codingame/monaco-vscode-languages-service-override";
|
|
14
|
-
import we from "@codingame/monaco-vscode-editor-service-override";
|
|
1
|
+
var de = Object.defineProperty;
|
|
2
|
+
var Ie = (t, e, n) => e in t ? de(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var x = (t, e, n) => (Ie(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { jsxs as T, jsx as S, Fragment as ue } from "react/jsx-runtime";
|
|
5
|
+
import k, { useEffect as J, createContext as U, useState as V, useRef as $, useContext as q, memo as Ce } from "react";
|
|
6
|
+
import { loader as me, useMonaco as fe, Editor as Ae } from "@monaco-editor/react";
|
|
7
|
+
import { lspSubject as pe, LspActions as j, hasAttributesString as Q, FileFolderType as be } from "@ws-ui/shared";
|
|
8
|
+
import { MonacoLanguageClient as he } from "monaco-languageclient";
|
|
9
|
+
import { mergeServices as ve, initServices as Se } from "monaco-languageclient/vscode/services";
|
|
10
|
+
import ye, { initUserConfiguration as Ne } from "@codingame/monaco-vscode-configuration-service-override";
|
|
11
|
+
import we from "@codingame/monaco-vscode-languages-service-override";
|
|
12
|
+
import Re from "@codingame/monaco-vscode-textmate-service-override";
|
|
15
13
|
import "@codingame/monaco-vscode-theme-defaults-default-extension";
|
|
14
|
+
import xe from "@codingame/monaco-vscode-editor-service-override";
|
|
15
|
+
import We from "@codingame/monaco-vscode-theme-service-override";
|
|
16
16
|
import * as o from "monaco-editor";
|
|
17
|
-
import { Selection as
|
|
18
|
-
import { Logger as
|
|
19
|
-
import { ErrorAction as
|
|
20
|
-
import { WebSocketMessageReader as
|
|
21
|
-
import { WillSaveTextDocumentNotification as
|
|
22
|
-
import { StandaloneServices as
|
|
17
|
+
import { Selection as Le, KeyMod as G, KeyCode as O, editor as ee, Uri as Fe } from "monaco-editor";
|
|
18
|
+
import { Logger as Ze } from "monaco-languageclient/tools";
|
|
19
|
+
import { ErrorAction as je, CloseAction as Xe } from "vscode-languageclient";
|
|
20
|
+
import { WebSocketMessageReader as Ke, WebSocketMessageWriter as ke, toSocket as Ee } from "vscode-ws-jsonrpc";
|
|
21
|
+
import { DocumentDiagnosticRequest as Be, WillSaveTextDocumentNotification as Ge, TextDocumentSaveReason as Oe, DidSaveTextDocumentNotification as Te, WillCreateFilesRequest as Je, WillRenameFilesRequest as De, WillDeleteFilesRequest as Ve, DidCreateFilesNotification as Ye, DidRenameFilesNotification as Me, DidDeleteFilesNotification as Pe } from "vscode-languageserver-protocol";
|
|
22
|
+
import { StandaloneServices as He, ICodeEditorService as $e } from "vscode/services";
|
|
23
|
+
import { KeybindingsRegistry as P } from "vscode/monaco";
|
|
23
24
|
import "@codingame/monaco-vscode-standalone-languages";
|
|
24
25
|
import "@codingame/monaco-vscode-standalone-html-language-features";
|
|
25
26
|
import "@codingame/monaco-vscode-standalone-css-language-features";
|
|
@@ -29,14 +30,14 @@ import "@codingame/monaco-vscode-css-default-extension";
|
|
|
29
30
|
import "@codingame/monaco-vscode-json-default-extension";
|
|
30
31
|
import "@codingame/monaco-vscode-html-default-extension";
|
|
31
32
|
import "@codingame/monaco-vscode-javascript-default-extension";
|
|
32
|
-
import { registerExtension as
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
import { registerExtension as ze } from "vscode/extensions";
|
|
34
|
+
const _e = () => ye(), Ue = () => xe(
|
|
35
|
+
() => Promise.resolve(void 0)
|
|
36
|
+
), qe = () => {
|
|
37
|
+
const t = We(), e = t.themeService.ctor.prototype;
|
|
35
38
|
return e.defineTheme = () => {
|
|
36
39
|
}, t;
|
|
37
|
-
},
|
|
38
|
-
() => Promise.resolve(void 0)
|
|
39
|
-
), ze = `{
|
|
40
|
+
}, Qe = `{
|
|
40
41
|
"workbench.colorTheme": "Default Dark+",
|
|
41
42
|
"workbench.iconTheme": "vs-seti",
|
|
42
43
|
"editor.autoClosingBrackets": "languageDefined",
|
|
@@ -121,10 +122,10 @@ const Pe = () => he(), He = () => {
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
|
-
`,
|
|
125
|
+
`, en = () => Ne(Qe), nn = async (t) => {
|
|
125
126
|
var r;
|
|
126
127
|
const e = t.serviceConfig ?? {};
|
|
127
|
-
e.debugLogging = ((r = t.logger) == null ? void 0 : r.isEnabled()) === !0 && (e.debugLogging === !0 || t.logger.isDebugEnabled() === !0), await
|
|
128
|
+
e.debugLogging = ((r = t.logger) == null ? void 0 : r.isEnabled()) === !0 && (e.debugLogging === !0 || t.logger.isDebugEnabled() === !0), await en(), e.userServices = e.userServices ?? {};
|
|
128
129
|
const n = e.userServices.configurationService ?? void 0, i = e.workspaceConfig ?? void 0;
|
|
129
130
|
if (n === void 0) {
|
|
130
131
|
if (i)
|
|
@@ -133,13 +134,13 @@ const Pe = () => he(), He = () => {
|
|
|
133
134
|
);
|
|
134
135
|
const a = {
|
|
135
136
|
// @see https://github.com/CodinGame/monaco-vscode-api#monaco-standalone-services
|
|
136
|
-
...
|
|
137
|
-
...
|
|
138
|
-
...
|
|
139
|
-
...
|
|
140
|
-
|
|
137
|
+
..._e(),
|
|
138
|
+
...qe(),
|
|
139
|
+
...Re(),
|
|
140
|
+
...we(),
|
|
141
|
+
...Ue()
|
|
141
142
|
};
|
|
142
|
-
|
|
143
|
+
ve(a, e.userServices);
|
|
143
144
|
}
|
|
144
145
|
return i || (e.workspaceConfig = {
|
|
145
146
|
workspaceProvider: {
|
|
@@ -153,7 +154,7 @@ const Pe = () => he(), He = () => {
|
|
|
153
154
|
}
|
|
154
155
|
}), e;
|
|
155
156
|
};
|
|
156
|
-
class
|
|
157
|
+
class tn extends Ke {
|
|
157
158
|
constructor(n, i) {
|
|
158
159
|
super(n);
|
|
159
160
|
x(this, "onMessage");
|
|
@@ -172,7 +173,7 @@ class qe extends Ze {
|
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
|
-
class
|
|
176
|
+
class on extends ke {
|
|
176
177
|
constructor(n, i) {
|
|
177
178
|
super(n);
|
|
178
179
|
x(this, "onSend");
|
|
@@ -187,41 +188,42 @@ class Qe extends je {
|
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
191
|
+
function F(t, e = !0) {
|
|
192
|
+
const n = `/PACKAGE/Project/Sources/${t}`;
|
|
193
|
+
return e ? `file://${n}` : n;
|
|
192
194
|
}
|
|
193
|
-
function
|
|
195
|
+
function ne(t, e = 0) {
|
|
194
196
|
setTimeout(t, e);
|
|
195
197
|
}
|
|
196
|
-
function
|
|
197
|
-
const n = new
|
|
198
|
+
function rn(t, e) {
|
|
199
|
+
const n = new Le(
|
|
198
200
|
e.startLineNumber,
|
|
199
201
|
e.startColumn,
|
|
200
202
|
e.endLineNumber || e.startLineNumber,
|
|
201
203
|
e.endColumn || e.startColumn
|
|
202
204
|
);
|
|
203
|
-
|
|
205
|
+
ne(() => {
|
|
204
206
|
t.setSelection(n), t.revealRangeInCenter(n), t.focus();
|
|
205
207
|
});
|
|
206
208
|
}
|
|
207
|
-
function
|
|
208
|
-
n > 0 && (e = n + e),
|
|
209
|
+
function sn(t, e, n = 0) {
|
|
210
|
+
n > 0 && (e = n + e), ne(() => {
|
|
209
211
|
t.setPosition({ lineNumber: e, column: 1 }), t.revealLineInCenter(e), t.focus();
|
|
210
212
|
});
|
|
211
213
|
}
|
|
212
|
-
function
|
|
214
|
+
function rt(t, e, n) {
|
|
213
215
|
const r = t.getModel();
|
|
214
216
|
if (r && e) {
|
|
215
217
|
const a = r.getLineCount();
|
|
216
218
|
for (let g = 1; g <= a; g++) {
|
|
217
|
-
const
|
|
218
|
-
if (new RegExp(`(?:Function|function) ${n}`).test(
|
|
219
|
+
const C = r.getLineContent(g);
|
|
220
|
+
if (new RegExp(`(?:Function|function) ${n}`).test(C))
|
|
219
221
|
return g;
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
return 0;
|
|
223
225
|
}
|
|
224
|
-
const
|
|
226
|
+
const ln = {
|
|
225
227
|
provideCompletionItems: async (t, e) => {
|
|
226
228
|
const n = t.getWordUntilPosition(e);
|
|
227
229
|
return {
|
|
@@ -338,7 +340,7 @@ const tn = {
|
|
|
338
340
|
]
|
|
339
341
|
};
|
|
340
342
|
}
|
|
341
|
-
},
|
|
343
|
+
}, an = {
|
|
342
344
|
provideCompletionItems: async (t, e) => {
|
|
343
345
|
const n = t.getWordUntilPosition(e);
|
|
344
346
|
return {
|
|
@@ -453,44 +455,44 @@ const tn = {
|
|
|
453
455
|
]
|
|
454
456
|
};
|
|
455
457
|
}
|
|
456
|
-
},
|
|
458
|
+
}, gn = [
|
|
457
459
|
// zoom in
|
|
458
460
|
{
|
|
459
|
-
keybinding:
|
|
461
|
+
keybinding: G.CtrlCmd | O.NumpadAdd,
|
|
460
462
|
command: "editor.action.fontZoomIn"
|
|
461
463
|
},
|
|
462
464
|
{
|
|
463
|
-
keybinding:
|
|
465
|
+
keybinding: G.CtrlCmd | O.Equal,
|
|
464
466
|
command: "editor.action.fontZoomIn"
|
|
465
467
|
},
|
|
466
468
|
// zoom out
|
|
467
469
|
{
|
|
468
|
-
keybinding:
|
|
470
|
+
keybinding: G.CtrlCmd | O.NumpadSubtract,
|
|
469
471
|
command: "editor.action.fontZoomOut"
|
|
470
472
|
},
|
|
471
473
|
{
|
|
472
|
-
keybinding:
|
|
474
|
+
keybinding: G.CtrlCmd | O.Minus,
|
|
473
475
|
command: "editor.action.fontZoomOut"
|
|
474
476
|
},
|
|
475
477
|
// zoom reset
|
|
476
478
|
{
|
|
477
|
-
keybinding:
|
|
479
|
+
keybinding: G.CtrlCmd | O.Numpad0,
|
|
478
480
|
command: "editor.action.fontZoomReset"
|
|
479
481
|
},
|
|
480
482
|
{
|
|
481
|
-
keybinding:
|
|
483
|
+
keybinding: G.CtrlCmd | O.Digit0,
|
|
482
484
|
command: "editor.action.fontZoomReset"
|
|
483
485
|
}
|
|
484
|
-
],
|
|
485
|
-
t !== void 0 &&
|
|
486
|
+
], cn = ({ defaultZoom: t }) => (J(() => {
|
|
487
|
+
t !== void 0 && ee.EditorZoom.setZoomLevel(t);
|
|
486
488
|
}, []), null);
|
|
487
|
-
({}).VITE_DISABLE_MONACO_LOADER ||
|
|
489
|
+
({}).VITE_DISABLE_MONACO_LOADER || me.config({
|
|
488
490
|
monaco: o
|
|
489
491
|
// paths: {
|
|
490
492
|
// vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.41.0/min/vs",
|
|
491
493
|
// },
|
|
492
494
|
});
|
|
493
|
-
const
|
|
495
|
+
const te = U(void 0), st = ({
|
|
494
496
|
children: t,
|
|
495
497
|
url: e,
|
|
496
498
|
qodly: n,
|
|
@@ -499,207 +501,232 @@ const ee = z(void 0), nt = ({
|
|
|
499
501
|
language: a = "4d",
|
|
500
502
|
defaultInited: g = !1
|
|
501
503
|
}) => {
|
|
502
|
-
const
|
|
504
|
+
const C = fe(), [m, h] = V(g), [Z, y] = V(null), f = $(), b = $(0);
|
|
503
505
|
J(() => {
|
|
504
|
-
e &&
|
|
505
|
-
}, [e,
|
|
506
|
+
e && C && v();
|
|
507
|
+
}, [e, C]);
|
|
506
508
|
const v = async () => {
|
|
507
|
-
if (!
|
|
509
|
+
if (!C)
|
|
508
510
|
return;
|
|
509
|
-
const
|
|
511
|
+
const c = new Ze({
|
|
510
512
|
enabled: process.env.NODE_ENV === "development",
|
|
511
513
|
debugEnabled: process.env.NODE_ENV === "development"
|
|
512
|
-
}), d = await
|
|
513
|
-
logger:
|
|
514
|
+
}), d = await nn({
|
|
515
|
+
logger: c
|
|
514
516
|
});
|
|
515
|
-
await
|
|
517
|
+
await Se({
|
|
516
518
|
caller: "Qodly Code Editor",
|
|
517
|
-
logger:
|
|
519
|
+
logger: c,
|
|
518
520
|
serviceConfig: d
|
|
519
|
-
}), r &&
|
|
521
|
+
}), r && He.get($e).registerCodeEditorOpenHandler(r), C.languages.registerCompletionItemProvider(
|
|
520
522
|
a,
|
|
521
|
-
n ?
|
|
522
|
-
)
|
|
523
|
+
n ? an : ln
|
|
524
|
+
);
|
|
525
|
+
const I = P.getDefaultKeybindings.bind(P);
|
|
526
|
+
P.getDefaultKeybindings = () => I().filter(
|
|
527
|
+
(B) => ![
|
|
528
|
+
"workbench.action.files.saveAs",
|
|
529
|
+
"workbench.action.files.save"
|
|
530
|
+
].includes(B.command)
|
|
531
|
+
), ee.addKeybindingRules(gn), p();
|
|
523
532
|
}, p = () => {
|
|
524
533
|
y(null);
|
|
525
|
-
let
|
|
534
|
+
let c;
|
|
526
535
|
try {
|
|
527
|
-
|
|
536
|
+
c = new WebSocket(localStorage.LSP_SERVER || e);
|
|
528
537
|
} catch {
|
|
529
538
|
y(new Event("INVALID_URL"));
|
|
530
539
|
return;
|
|
531
540
|
}
|
|
532
|
-
|
|
541
|
+
c.onopen = N, c.onclose = A, c.onerror = u, b.current = 0;
|
|
533
542
|
}, N = async function() {
|
|
534
|
-
const
|
|
543
|
+
const c = Ee(this), d = new tn(c), I = new on(c), R = new he({
|
|
535
544
|
name: "4D Language Client",
|
|
536
545
|
clientOptions: {
|
|
537
546
|
workspaceFolder: {
|
|
538
|
-
uri:
|
|
547
|
+
uri: Fe.parse("file:///PACKAGE")
|
|
539
548
|
},
|
|
540
549
|
// use a language id as a document selector
|
|
541
550
|
documentSelector: [{ scheme: "file", language: a }],
|
|
542
551
|
// disable the default error handler
|
|
543
552
|
errorHandler: {
|
|
544
|
-
error: () => ({ action:
|
|
545
|
-
closed: () => ({ action:
|
|
553
|
+
error: () => ({ action: je.Continue }),
|
|
554
|
+
closed: () => ({ action: Xe.DoNotRestart })
|
|
546
555
|
}
|
|
547
556
|
},
|
|
548
557
|
// create a language client connection from the JSON RPC connection on demand
|
|
549
558
|
connectionProvider: {
|
|
550
559
|
get: () => Promise.resolve({
|
|
551
560
|
reader: d,
|
|
552
|
-
writer:
|
|
561
|
+
writer: I
|
|
553
562
|
})
|
|
554
563
|
}
|
|
555
564
|
});
|
|
556
|
-
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
return typeof
|
|
560
|
-
|
|
561
|
-
) ? Promise.resolve() :
|
|
565
|
+
f.current = R;
|
|
566
|
+
const B = R.sendRequest.bind(R);
|
|
567
|
+
f.current.sendRequest = function(M, H, ce) {
|
|
568
|
+
return typeof M == "object" && M.method === "textDocument/diagnostic" && /file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(
|
|
569
|
+
H.textDocument.uri
|
|
570
|
+
) ? Promise.resolve() : B(M, H, ce);
|
|
562
571
|
}, d.onClose(() => {
|
|
563
|
-
|
|
572
|
+
R.stop(), b.current < 3 ? setTimeout(() => {
|
|
564
573
|
b.current++, p();
|
|
565
574
|
}, 1e3) : y(new Event("WEBSOCKET_CLOSED"));
|
|
566
|
-
}),
|
|
567
|
-
},
|
|
568
|
-
},
|
|
569
|
-
y(
|
|
575
|
+
}), R.needsStart() && await R.start(), h(!0);
|
|
576
|
+
}, A = () => {
|
|
577
|
+
}, u = (c) => {
|
|
578
|
+
y(c);
|
|
570
579
|
};
|
|
571
580
|
J(() => {
|
|
572
|
-
const
|
|
581
|
+
const c = pe.subscribe(({ action: d, payload: I }) => {
|
|
573
582
|
switch (d) {
|
|
574
|
-
case
|
|
575
|
-
|
|
583
|
+
case j.WILL_SAVE:
|
|
584
|
+
l(I.filePath);
|
|
576
585
|
break;
|
|
577
|
-
case
|
|
578
|
-
|
|
586
|
+
case j.DID_SAVE:
|
|
587
|
+
w(I.filePath, I.content);
|
|
579
588
|
break;
|
|
580
|
-
case
|
|
581
|
-
|
|
589
|
+
case j.WILL_CREATE:
|
|
590
|
+
W(I.filePath);
|
|
582
591
|
break;
|
|
583
|
-
case
|
|
584
|
-
|
|
592
|
+
case j.DID_CREATE:
|
|
593
|
+
le(I.filePath);
|
|
585
594
|
break;
|
|
586
|
-
case
|
|
587
|
-
|
|
595
|
+
case j.WILL_RENAME:
|
|
596
|
+
E(I.oldPath, I.newPath);
|
|
588
597
|
break;
|
|
589
|
-
case
|
|
590
|
-
|
|
598
|
+
case j.DID_RENAME:
|
|
599
|
+
ae(I.oldPath, I.newPath);
|
|
591
600
|
break;
|
|
592
|
-
case
|
|
593
|
-
|
|
601
|
+
case j.WILL_DELETE:
|
|
602
|
+
L(I.filePath);
|
|
594
603
|
break;
|
|
595
|
-
case
|
|
596
|
-
|
|
604
|
+
case j.DID_DELETE:
|
|
605
|
+
ge(I.filePath);
|
|
606
|
+
break;
|
|
607
|
+
case j.DIAGNOSTIC_REFRESH:
|
|
608
|
+
s(I.filePath);
|
|
597
609
|
break;
|
|
598
610
|
}
|
|
599
611
|
});
|
|
600
|
-
return () =>
|
|
612
|
+
return () => c.unsubscribe();
|
|
601
613
|
}, []);
|
|
602
|
-
const
|
|
603
|
-
var
|
|
604
|
-
(
|
|
614
|
+
const K = (c) => {
|
|
615
|
+
var d, I;
|
|
616
|
+
return (I = (d = f.current) == null ? void 0 : d._features) == null ? void 0 : I.find(
|
|
617
|
+
(R) => {
|
|
618
|
+
var B;
|
|
619
|
+
return ((B = R._registrationType) == null ? void 0 : B.method) === c;
|
|
620
|
+
}
|
|
621
|
+
);
|
|
622
|
+
}, s = (c) => {
|
|
623
|
+
if (f.current) {
|
|
624
|
+
const d = K(Be.method);
|
|
625
|
+
if (d)
|
|
626
|
+
for (const [I, R] of d._registrations)
|
|
627
|
+
R.provider && R.provider.onDidChangeDiagnosticsEmitter.fire();
|
|
628
|
+
}
|
|
629
|
+
}, l = (c, d = Oe.Manual) => {
|
|
630
|
+
var I;
|
|
631
|
+
(I = f.current) == null || I.sendNotification(Ge.type, {
|
|
605
632
|
textDocument: {
|
|
606
|
-
uri:
|
|
633
|
+
uri: F(c)
|
|
607
634
|
},
|
|
608
635
|
reason: d
|
|
609
636
|
});
|
|
610
|
-
},
|
|
611
|
-
var
|
|
612
|
-
(
|
|
637
|
+
}, w = (c, d) => {
|
|
638
|
+
var I;
|
|
639
|
+
(I = f.current) == null || I.sendNotification(Te.type, {
|
|
613
640
|
textDocument: {
|
|
614
|
-
uri:
|
|
641
|
+
uri: F(c)
|
|
615
642
|
},
|
|
616
643
|
text: d
|
|
617
644
|
});
|
|
618
|
-
},
|
|
645
|
+
}, W = (c) => {
|
|
619
646
|
var d;
|
|
620
|
-
(d =
|
|
647
|
+
(d = f.current) == null || d.sendRequest(Je.type, {
|
|
621
648
|
files: [
|
|
622
649
|
{
|
|
623
|
-
uri:
|
|
650
|
+
uri: F(c)
|
|
624
651
|
}
|
|
625
652
|
]
|
|
626
653
|
});
|
|
627
|
-
},
|
|
628
|
-
var
|
|
629
|
-
(
|
|
654
|
+
}, E = (c, d) => {
|
|
655
|
+
var I;
|
|
656
|
+
(I = f.current) == null || I.sendRequest(De.type, {
|
|
630
657
|
files: [
|
|
631
658
|
{
|
|
632
|
-
oldUri:
|
|
633
|
-
newUri:
|
|
659
|
+
oldUri: F(c),
|
|
660
|
+
newUri: F(d)
|
|
634
661
|
}
|
|
635
662
|
]
|
|
636
663
|
});
|
|
637
|
-
},
|
|
664
|
+
}, L = (c) => {
|
|
638
665
|
var d;
|
|
639
|
-
(d =
|
|
666
|
+
(d = f.current) == null || d.sendRequest(Ve.type, {
|
|
640
667
|
files: [
|
|
641
668
|
{
|
|
642
|
-
uri:
|
|
669
|
+
uri: F(c)
|
|
643
670
|
}
|
|
644
671
|
]
|
|
645
672
|
});
|
|
646
|
-
},
|
|
673
|
+
}, le = (c) => {
|
|
647
674
|
var d;
|
|
648
|
-
(d =
|
|
675
|
+
(d = f.current) == null || d.sendNotification(Ye.type, {
|
|
649
676
|
files: [
|
|
650
677
|
{
|
|
651
|
-
uri:
|
|
678
|
+
uri: F(c)
|
|
652
679
|
}
|
|
653
680
|
]
|
|
654
681
|
});
|
|
655
|
-
},
|
|
656
|
-
var
|
|
657
|
-
(
|
|
682
|
+
}, ae = (c, d) => {
|
|
683
|
+
var I;
|
|
684
|
+
(I = f.current) == null || I.sendNotification(Me.type, {
|
|
658
685
|
files: [
|
|
659
686
|
{
|
|
660
|
-
oldUri:
|
|
661
|
-
newUri:
|
|
687
|
+
oldUri: F(c),
|
|
688
|
+
newUri: F(d)
|
|
662
689
|
}
|
|
663
690
|
]
|
|
664
691
|
});
|
|
665
|
-
},
|
|
692
|
+
}, ge = (c) => {
|
|
666
693
|
var d;
|
|
667
|
-
(d =
|
|
694
|
+
(d = f.current) == null || d.sendNotification(Pe.type, {
|
|
668
695
|
files: [
|
|
669
696
|
{
|
|
670
|
-
uri:
|
|
697
|
+
uri: F(c)
|
|
671
698
|
}
|
|
672
699
|
]
|
|
673
700
|
});
|
|
674
701
|
};
|
|
675
|
-
return /* @__PURE__ */
|
|
676
|
-
|
|
702
|
+
return /* @__PURE__ */ T(
|
|
703
|
+
te.Provider,
|
|
677
704
|
{
|
|
678
705
|
value: {
|
|
679
|
-
inited: m || !!
|
|
680
|
-
clientRef:
|
|
681
|
-
lastError:
|
|
706
|
+
inited: m || !!Z,
|
|
707
|
+
clientRef: f,
|
|
708
|
+
lastError: Z,
|
|
682
709
|
reload: p
|
|
683
710
|
},
|
|
684
711
|
children: [
|
|
685
712
|
t,
|
|
686
|
-
/* @__PURE__ */ S(
|
|
713
|
+
/* @__PURE__ */ S(cn, { defaultZoom: i })
|
|
687
714
|
]
|
|
688
715
|
}
|
|
689
716
|
);
|
|
690
717
|
};
|
|
691
|
-
function
|
|
692
|
-
const t =
|
|
718
|
+
function lt() {
|
|
719
|
+
const t = q(te);
|
|
693
720
|
if (t === void 0)
|
|
694
721
|
throw new Error("useLSP must be used within an LSPContext");
|
|
695
722
|
return t;
|
|
696
723
|
}
|
|
697
|
-
const
|
|
724
|
+
const ie = U(
|
|
698
725
|
void 0
|
|
699
|
-
),
|
|
700
|
-
const [e, n] =
|
|
726
|
+
), at = Ce(({ children: t }) => {
|
|
727
|
+
const [e, n] = V(null);
|
|
701
728
|
return /* @__PURE__ */ S(
|
|
702
|
-
|
|
729
|
+
ie.Provider,
|
|
703
730
|
{
|
|
704
731
|
value: {
|
|
705
732
|
editor: e,
|
|
@@ -709,8 +736,8 @@ const ne = z(
|
|
|
709
736
|
}
|
|
710
737
|
);
|
|
711
738
|
});
|
|
712
|
-
function
|
|
713
|
-
const t =
|
|
739
|
+
function dn() {
|
|
740
|
+
const t = q(ie), e = V(null);
|
|
714
741
|
if (t === void 0) {
|
|
715
742
|
const [n, i] = e;
|
|
716
743
|
return {
|
|
@@ -720,22 +747,22 @@ function ln() {
|
|
|
720
747
|
}
|
|
721
748
|
return t;
|
|
722
749
|
}
|
|
723
|
-
var
|
|
750
|
+
var oe = {
|
|
724
751
|
color: void 0,
|
|
725
752
|
size: void 0,
|
|
726
753
|
className: void 0,
|
|
727
754
|
style: void 0,
|
|
728
755
|
attr: void 0
|
|
729
|
-
},
|
|
730
|
-
return
|
|
756
|
+
}, z = k.createContext && k.createContext(oe), X = globalThis && globalThis.__assign || function() {
|
|
757
|
+
return X = Object.assign || function(t) {
|
|
731
758
|
for (var e, n = 1, i = arguments.length; n < i; n++) {
|
|
732
759
|
e = arguments[n];
|
|
733
760
|
for (var r in e)
|
|
734
761
|
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
735
762
|
}
|
|
736
763
|
return t;
|
|
737
|
-
},
|
|
738
|
-
},
|
|
764
|
+
}, X.apply(this, arguments);
|
|
765
|
+
}, In = globalThis && globalThis.__rest || function(t, e) {
|
|
739
766
|
var n = {};
|
|
740
767
|
for (var i in t)
|
|
741
768
|
Object.prototype.hasOwnProperty.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
|
|
@@ -744,59 +771,59 @@ var te = {
|
|
|
744
771
|
e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[r]) && (n[i[r]] = t[i[r]]);
|
|
745
772
|
return n;
|
|
746
773
|
};
|
|
747
|
-
function
|
|
774
|
+
function re(t) {
|
|
748
775
|
return t && t.map(function(e, n) {
|
|
749
|
-
return
|
|
776
|
+
return k.createElement(e.tag, X({
|
|
750
777
|
key: n
|
|
751
|
-
}, e.attr),
|
|
778
|
+
}, e.attr), re(e.child));
|
|
752
779
|
});
|
|
753
780
|
}
|
|
754
|
-
function
|
|
781
|
+
function se(t) {
|
|
755
782
|
return function(e) {
|
|
756
|
-
return
|
|
757
|
-
attr:
|
|
758
|
-
}, e),
|
|
783
|
+
return k.createElement(un, X({
|
|
784
|
+
attr: X({}, t.attr)
|
|
785
|
+
}, e), re(t.child));
|
|
759
786
|
};
|
|
760
787
|
}
|
|
761
|
-
function
|
|
788
|
+
function un(t) {
|
|
762
789
|
var e = function(n) {
|
|
763
|
-
var i = t.attr, r = t.size, a = t.title, g =
|
|
764
|
-
return n.className && (m = n.className), t.className && (m = (m ? m + " " : "") + t.className),
|
|
790
|
+
var i = t.attr, r = t.size, a = t.title, g = In(t, ["attr", "size", "title"]), C = r || n.size || "1em", m;
|
|
791
|
+
return n.className && (m = n.className), t.className && (m = (m ? m + " " : "") + t.className), k.createElement("svg", X({
|
|
765
792
|
stroke: "currentColor",
|
|
766
793
|
fill: "currentColor",
|
|
767
794
|
strokeWidth: "0"
|
|
768
795
|
}, n.attr, i, g, {
|
|
769
796
|
className: m,
|
|
770
|
-
style:
|
|
797
|
+
style: X(X({
|
|
771
798
|
color: t.color || n.color
|
|
772
799
|
}, n.style), t.style),
|
|
773
|
-
height:
|
|
774
|
-
width:
|
|
800
|
+
height: C,
|
|
801
|
+
width: C,
|
|
775
802
|
xmlns: "http://www.w3.org/2000/svg"
|
|
776
|
-
}), a &&
|
|
803
|
+
}), a && k.createElement("title", null, a), t.children);
|
|
777
804
|
};
|
|
778
|
-
return
|
|
805
|
+
return z !== void 0 ? k.createElement(z.Consumer, null, function(n) {
|
|
779
806
|
return e(n);
|
|
780
|
-
}) : e(
|
|
807
|
+
}) : e(oe);
|
|
781
808
|
}
|
|
782
|
-
function
|
|
783
|
-
return
|
|
809
|
+
function Cn(t) {
|
|
810
|
+
return se({ tag: "svg", 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" } }] })(t);
|
|
784
811
|
}
|
|
785
|
-
function
|
|
786
|
-
return
|
|
812
|
+
function mn(t) {
|
|
813
|
+
return se({ tag: "svg", 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" } }] })(t);
|
|
787
814
|
}
|
|
788
|
-
const
|
|
789
|
-
const [n, i] =
|
|
815
|
+
const fn = ({ lspProps: { lastError: t, reload: e } }) => {
|
|
816
|
+
const [n, i] = V(!1), r = () => {
|
|
790
817
|
e();
|
|
791
818
|
}, a = () => {
|
|
792
819
|
i(!1);
|
|
793
820
|
};
|
|
794
821
|
return J(() => {
|
|
795
822
|
i(!!t);
|
|
796
|
-
}, [t]), n ? /* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
/* @__PURE__ */ S(
|
|
799
|
-
/* @__PURE__ */
|
|
823
|
+
}, [t]), n ? /* @__PURE__ */ T("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: [
|
|
824
|
+
/* @__PURE__ */ T("span", { className: "flex flex-1 justify-center gap-1", children: [
|
|
825
|
+
/* @__PURE__ */ S(mn, { className: "h-4 w-4 text-yellow-600" }),
|
|
826
|
+
/* @__PURE__ */ T("span", { children: [
|
|
800
827
|
"LSP not loaded.",
|
|
801
828
|
" ",
|
|
802
829
|
/* @__PURE__ */ S(
|
|
@@ -810,14 +837,14 @@ const dn = ({ lspProps: { lastError: t, reload: e } }) => {
|
|
|
810
837
|
] })
|
|
811
838
|
] }),
|
|
812
839
|
/* @__PURE__ */ S("button", { className: "focus:outline-none", children: /* @__PURE__ */ S(
|
|
813
|
-
|
|
840
|
+
Cn,
|
|
814
841
|
{
|
|
815
842
|
className: "h-4 w-4 text-white",
|
|
816
843
|
onClick: a
|
|
817
844
|
}
|
|
818
845
|
) })
|
|
819
846
|
] }) : null;
|
|
820
|
-
},
|
|
847
|
+
}, An = {
|
|
821
848
|
provideCompletionItems: (t, e) => {
|
|
822
849
|
const n = t.getWordUntilPosition(e);
|
|
823
850
|
return {
|
|
@@ -845,7 +872,7 @@ const dn = ({ lspProps: { lastError: t, reload: e } }) => {
|
|
|
845
872
|
]
|
|
846
873
|
};
|
|
847
874
|
}
|
|
848
|
-
},
|
|
875
|
+
}, pn = "#/definitions/Condition", bn = {
|
|
849
876
|
Base: {
|
|
850
877
|
type: "object",
|
|
851
878
|
properties: {
|
|
@@ -1113,32 +1140,32 @@ const dn = ({ lspProps: { lastError: t, reload: e } }) => {
|
|
|
1113
1140
|
"ref"
|
|
1114
1141
|
]
|
|
1115
1142
|
}
|
|
1116
|
-
},
|
|
1117
|
-
$ref:
|
|
1118
|
-
definitions:
|
|
1143
|
+
}, hn = {
|
|
1144
|
+
$ref: pn,
|
|
1145
|
+
definitions: bn
|
|
1119
1146
|
};
|
|
1120
|
-
function
|
|
1147
|
+
function vn(t, e) {
|
|
1121
1148
|
const n = document.createElement("style");
|
|
1122
1149
|
n.dataset.id = e, n.textContent = t, document.head.append(n);
|
|
1123
1150
|
}
|
|
1124
|
-
function
|
|
1151
|
+
function Sn(t) {
|
|
1125
1152
|
return Array.from(document.styleSheets).find(
|
|
1126
1153
|
(e) => e.ownerNode.getAttribute("data-id") === t
|
|
1127
1154
|
);
|
|
1128
1155
|
}
|
|
1129
|
-
function
|
|
1156
|
+
function yn(t, e) {
|
|
1130
1157
|
const n = [];
|
|
1131
1158
|
let i = [];
|
|
1132
|
-
const r = [], a = (s, l, w,
|
|
1159
|
+
const r = [], a = (s, l, w, W) => {
|
|
1133
1160
|
n.push({
|
|
1134
1161
|
startLineNumber: s,
|
|
1135
1162
|
endLineNumber: w,
|
|
1136
1163
|
startColumn: l,
|
|
1137
|
-
endColumn:
|
|
1164
|
+
endColumn: W
|
|
1138
1165
|
}), h(), m();
|
|
1139
1166
|
}, g = (s) => {
|
|
1140
1167
|
r.indexOf(s) < 0 && r.push(s);
|
|
1141
|
-
},
|
|
1168
|
+
}, C = (s) => {
|
|
1142
1169
|
const l = r.indexOf(s);
|
|
1143
1170
|
l < 0 || r.splice(l, 1);
|
|
1144
1171
|
}, m = () => {
|
|
@@ -1150,7 +1177,7 @@ function bn(t, e) {
|
|
|
1150
1177
|
}
|
|
1151
1178
|
}, h = () => {
|
|
1152
1179
|
const s = t.getModel();
|
|
1153
|
-
s && (i =
|
|
1180
|
+
s && (i = wn(
|
|
1154
1181
|
n.map((l) => [
|
|
1155
1182
|
s.getOffsetAt({
|
|
1156
1183
|
lineNumber: l.startLineNumber,
|
|
@@ -1164,7 +1191,7 @@ function bn(t, e) {
|
|
|
1164
1191
|
/*mergeJoins*/
|
|
1165
1192
|
!0
|
|
1166
1193
|
), i.length > 0 && (i[0][0] <= 0 && (i[0][0] = Number.NEGATIVE_INFINITY), i[i.length - 1][1] >= s.getValueLength() && (i[i.length - 1][1] = Number.POSITIVE_INFINITY)));
|
|
1167
|
-
},
|
|
1194
|
+
}, Z = (s) => {
|
|
1168
1195
|
const l = {
|
|
1169
1196
|
isDeletion: !1,
|
|
1170
1197
|
isAddition: !1,
|
|
@@ -1172,26 +1199,26 @@ function bn(t, e) {
|
|
|
1172
1199
|
};
|
|
1173
1200
|
return s.text === "" ? l.isDeletion = !0 : s.range.startLineNumber === s.range.endLineNumber && s.range.startColumn === s.range.endColumn ? l.isAddition = !0 : l.isReplacement = !0, l;
|
|
1174
1201
|
}, y = t.onDidChangeModel((s) => {
|
|
1175
|
-
h(),
|
|
1176
|
-
}),
|
|
1202
|
+
h(), u();
|
|
1203
|
+
}), f = t.onDidChangeModelContent((s) => {
|
|
1177
1204
|
if (!s.isUndoing)
|
|
1178
1205
|
for (const l of s.changes) {
|
|
1179
|
-
const w =
|
|
1206
|
+
const w = Z(l);
|
|
1180
1207
|
if (w.isReplacement || w.isDeletion || w.isAddition) {
|
|
1181
|
-
const
|
|
1182
|
-
(
|
|
1183
|
-
),
|
|
1184
|
-
if (
|
|
1185
|
-
const
|
|
1186
|
-
if (
|
|
1187
|
-
|
|
1208
|
+
const W = n.some(
|
|
1209
|
+
(L) => l.range.startLineNumber >= L.startLineNumber && l.range.endLineNumber <= L.endLineNumber && l.range.startColumn >= L.startColumn && l.range.endColumn <= L.endColumn
|
|
1210
|
+
), E = !W && e && l.range.startLineNumber === 1 && l.range.startColumn === 1 && !Q(l.text);
|
|
1211
|
+
if (W || E) {
|
|
1212
|
+
const L = t.getModel();
|
|
1213
|
+
if (L) {
|
|
1214
|
+
L.undo();
|
|
1188
1215
|
return;
|
|
1189
1216
|
}
|
|
1190
1217
|
}
|
|
1191
1218
|
}
|
|
1192
1219
|
}
|
|
1193
1220
|
}), b = () => {
|
|
1194
|
-
y.dispose(),
|
|
1221
|
+
y.dispose(), f.dispose();
|
|
1195
1222
|
};
|
|
1196
1223
|
let v = [], p = `
|
|
1197
1224
|
.idoc-readonly-mark {
|
|
@@ -1201,26 +1228,26 @@ function bn(t, e) {
|
|
|
1201
1228
|
`;
|
|
1202
1229
|
if (p) {
|
|
1203
1230
|
const s = "monaco-read-only";
|
|
1204
|
-
|
|
1231
|
+
Sn(s) || vn(p, s), p = null;
|
|
1205
1232
|
}
|
|
1206
1233
|
const N = () => {
|
|
1207
|
-
g(
|
|
1208
|
-
},
|
|
1209
|
-
u
|
|
1210
|
-
},
|
|
1234
|
+
g(u), u();
|
|
1235
|
+
}, A = () => {
|
|
1236
|
+
C(u), v = t.deltaDecorations(v, []);
|
|
1237
|
+
}, u = () => {
|
|
1211
1238
|
const s = t.getModel();
|
|
1212
1239
|
s && (v = t.deltaDecorations(
|
|
1213
1240
|
v,
|
|
1214
|
-
i.map(
|
|
1241
|
+
i.map(K(s))
|
|
1215
1242
|
));
|
|
1216
|
-
},
|
|
1217
|
-
const w = s.getPositionAt(l[0]),
|
|
1243
|
+
}, K = (s) => (l) => {
|
|
1244
|
+
const w = s.getPositionAt(l[0]), W = s.getPositionAt(l[1]);
|
|
1218
1245
|
return {
|
|
1219
1246
|
range: new o.Range(
|
|
1220
1247
|
w.lineNumber,
|
|
1221
1248
|
w.column,
|
|
1222
|
-
|
|
1223
|
-
|
|
1249
|
+
W.lineNumber,
|
|
1250
|
+
W.column
|
|
1224
1251
|
),
|
|
1225
1252
|
options: {
|
|
1226
1253
|
className: "idoc-readonly-mark"
|
|
@@ -1233,55 +1260,55 @@ function bn(t, e) {
|
|
|
1233
1260
|
},
|
|
1234
1261
|
exclude: a,
|
|
1235
1262
|
attach: g,
|
|
1236
|
-
detach:
|
|
1263
|
+
detach: C,
|
|
1237
1264
|
dispose: b,
|
|
1238
1265
|
show: N,
|
|
1239
|
-
hide:
|
|
1266
|
+
hide: A
|
|
1240
1267
|
};
|
|
1241
1268
|
}
|
|
1242
|
-
function
|
|
1269
|
+
function Nn(t, e, n) {
|
|
1243
1270
|
let i = !1;
|
|
1244
|
-
const r = (
|
|
1271
|
+
const r = (A) => A[1] < A[0] ? (i = !0, [[A[1], A[0]]]) : [[...A]], a = (A) => i ? A.map((u) => u[1] > u[0] ? C(u) : u).reverse() : A;
|
|
1245
1272
|
let g;
|
|
1246
|
-
const
|
|
1247
|
-
let h,
|
|
1273
|
+
const C = (A) => (g = A[1], A[1] = A[0], A[0] = g, A), m = r(t);
|
|
1274
|
+
let h, Z, y, f, b, v, p, N;
|
|
1248
1275
|
y = m[0];
|
|
1249
|
-
for (
|
|
1250
|
-
for (p =
|
|
1251
|
-
if (y = m[
|
|
1276
|
+
for (Z of e)
|
|
1277
|
+
for (p = Z[0], N = Z[1], f = 0; f < m.length; f++) {
|
|
1278
|
+
if (y = m[f], b = y[0], v = y[1], b < p)
|
|
1252
1279
|
v < p ? h = [y] : v <= N ? h = [[b, p - 1]] : h = [
|
|
1253
1280
|
[b, p - 1],
|
|
1254
1281
|
[N + 1, v]
|
|
1255
1282
|
];
|
|
1256
1283
|
else if (b <= N)
|
|
1257
1284
|
if (p === Number.NEGATIVE_INFINITY) {
|
|
1258
|
-
const
|
|
1259
|
-
h = n === 0 ? [] : [[
|
|
1285
|
+
const A = N + 1;
|
|
1286
|
+
h = n === 0 ? [] : [[A, v > A ? v : A]];
|
|
1260
1287
|
} else
|
|
1261
1288
|
N === Number.POSITIVE_INFINITY ? h = n === 0 ? [] : [[p - 1, p - 1]] : v <= N ? h = n < 0 ? [[p - 1, p - 1]] : n > 0 ? [[N + 1, N + 1]] : [] : h = [[N + 1, v]];
|
|
1262
1289
|
else
|
|
1263
1290
|
h = [y];
|
|
1264
|
-
if (m.splice(
|
|
1291
|
+
if (m.splice(f, 1, ...h), m.length === 1 && m[0][1] < p)
|
|
1265
1292
|
return a(m);
|
|
1266
1293
|
}
|
|
1267
1294
|
return a(m);
|
|
1268
1295
|
}
|
|
1269
|
-
function
|
|
1296
|
+
function wn(t, e) {
|
|
1270
1297
|
if (t.length < 2)
|
|
1271
1298
|
return t;
|
|
1272
1299
|
const n = [];
|
|
1273
1300
|
let i = null, r, a;
|
|
1274
1301
|
t = t.map(
|
|
1275
1302
|
(g) => (g[1] < g[0] && (r = g[1], g[1] = g[0], g[1] = r), g)
|
|
1276
|
-
).sort((g,
|
|
1303
|
+
).sort((g, C) => g[0] - C[0]), n.push(t[0]);
|
|
1277
1304
|
for (let g = 1; g < t.length; g++)
|
|
1278
1305
|
i = n[n.length - 1], a = t[g], i[1] === a[0] && !e ? n.push(a) : i[1] === a[0] - 1 && e ? (i[1] = a[1], n.splice(n.length - 1, 1, i)) : i[1] < a[0] ? n.push(a) : i[1] < a[1] && (i[1] = a[1], n.splice(n.length - 1, 1, i));
|
|
1279
1306
|
return n;
|
|
1280
1307
|
}
|
|
1281
|
-
function
|
|
1308
|
+
function D(t, e) {
|
|
1282
1309
|
return e.bind(t);
|
|
1283
1310
|
}
|
|
1284
|
-
class
|
|
1311
|
+
class Rn {
|
|
1285
1312
|
constructor(e, n) {
|
|
1286
1313
|
x(this, "editor");
|
|
1287
1314
|
x(this, "intervals");
|
|
@@ -1294,7 +1321,7 @@ class Sn {
|
|
|
1294
1321
|
/**
|
|
1295
1322
|
* Linked to ICodeEditor.onDidChangeCursorPosition event.
|
|
1296
1323
|
*/
|
|
1297
|
-
x(this, "onCursor",
|
|
1324
|
+
x(this, "onCursor", D(
|
|
1298
1325
|
this,
|
|
1299
1326
|
function(e) {
|
|
1300
1327
|
if (e.source === "api")
|
|
@@ -1303,16 +1330,16 @@ class Sn {
|
|
|
1303
1330
|
n.length !== 0 && this.editor.setSelections(n);
|
|
1304
1331
|
}
|
|
1305
1332
|
));
|
|
1306
|
-
x(this, "onRectangleSelectionStart",
|
|
1333
|
+
x(this, "onRectangleSelectionStart", D(this, function({ event: e }) {
|
|
1307
1334
|
e.middleButton && (this.lastPrefer = this.prefer, this.prefer = 0, window.addEventListener("pointerup", this.onRectangleSelectionStop));
|
|
1308
1335
|
}));
|
|
1309
|
-
x(this, "onRectangleSelectionStop",
|
|
1336
|
+
x(this, "onRectangleSelectionStop", D(this, function() {
|
|
1310
1337
|
this.prefer = this.lastPrefer, window.removeEventListener("pointerup", this.onRectangleSelectionStop);
|
|
1311
1338
|
}));
|
|
1312
1339
|
/**
|
|
1313
1340
|
* Linked to ICodeEditor.onKeyDown event.
|
|
1314
1341
|
*/
|
|
1315
|
-
x(this, "onKey",
|
|
1342
|
+
x(this, "onKey", D(this, function(e) {
|
|
1316
1343
|
const n = e.keyCode, i = o.KeyCode;
|
|
1317
1344
|
if (e.altKey || i.F1 <= n && n <= i.F19 || e.ctrlKey && n !== i.Backspace)
|
|
1318
1345
|
return;
|
|
@@ -1327,21 +1354,21 @@ class Sn {
|
|
|
1327
1354
|
const r = this.getSelections(), a = this.intervals.buffer;
|
|
1328
1355
|
let g;
|
|
1329
1356
|
if (n === i.Delete)
|
|
1330
|
-
g = (
|
|
1357
|
+
g = (C) => C[0] === C[1] && a.find((m) => C[1] + 1 === m[0]) != null;
|
|
1331
1358
|
else if (n === i.Backspace)
|
|
1332
|
-
g = (
|
|
1359
|
+
g = (C) => C[0] === C[1] && a.find((m) => m[1] + 1 === C[0]) != null;
|
|
1333
1360
|
else
|
|
1334
1361
|
return;
|
|
1335
1362
|
r.findIndex(g) !== -1 && (e.stopPropagation(), e.preventDefault());
|
|
1336
1363
|
}));
|
|
1337
|
-
x(this, "getOffsetAt",
|
|
1364
|
+
x(this, "getOffsetAt", D(this, function(e) {
|
|
1338
1365
|
let n;
|
|
1339
1366
|
for (let i = 0; i < this.intervals.buffer.length; i++)
|
|
1340
1367
|
if (n = this.intervals.buffer[i], e <= n[1])
|
|
1341
1368
|
return n[0] - e < e - n[1] ? n[0] : n[1];
|
|
1342
1369
|
}));
|
|
1343
1370
|
var i;
|
|
1344
|
-
this.editor = e, this.intervals =
|
|
1371
|
+
this.editor = e, this.intervals = yn(e, n), (i = this.editor.getModel()) == null || i.setEOL(o.editor.EndOfLineSequence.LF);
|
|
1345
1372
|
}
|
|
1346
1373
|
enable() {
|
|
1347
1374
|
this.disposables.push(
|
|
@@ -1361,7 +1388,7 @@ class Sn {
|
|
|
1361
1388
|
getApprovedSelections() {
|
|
1362
1389
|
const e = this.editor.getModel();
|
|
1363
1390
|
return this.getSelections().map(
|
|
1364
|
-
(i) =>
|
|
1391
|
+
(i) => Nn(
|
|
1365
1392
|
i,
|
|
1366
1393
|
this.intervals.buffer,
|
|
1367
1394
|
this.prefer
|
|
@@ -1390,13 +1417,13 @@ class Sn {
|
|
|
1390
1417
|
]);
|
|
1391
1418
|
}
|
|
1392
1419
|
}
|
|
1393
|
-
const
|
|
1420
|
+
const xn = new RegExp("^[ s]+(exposed|Function)", "i"), _ = () => /* @__PURE__ */ S("div", { className: "absolute inset-0 animate-pulse", children: /* @__PURE__ */ S("div", { className: "w-full space-y-4 px-4 py-1", children: /* @__PURE__ */ T("div", { className: "space-y-2", children: [
|
|
1394
1421
|
/* @__PURE__ */ S("div", { className: "h-3 w-3/4 rounded bg-grey-200" }),
|
|
1395
1422
|
/* @__PURE__ */ S("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1396
1423
|
/* @__PURE__ */ S("div", { className: "h-3 w-5/6 rounded bg-grey-200" }),
|
|
1397
1424
|
/* @__PURE__ */ S("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1398
1425
|
/* @__PURE__ */ S("div", { className: "h-3 rounded bg-grey-200" })
|
|
1399
|
-
] }) }) }),
|
|
1426
|
+
] }) }) }), gt = ({
|
|
1400
1427
|
path: t,
|
|
1401
1428
|
initialValue: e,
|
|
1402
1429
|
theme: n = "fd-dark",
|
|
@@ -1404,66 +1431,66 @@ const yn = new RegExp("^[ s]+(exposed|Function)", "i"), $ = () => /* @__PURE__ *
|
|
|
1404
1431
|
language: r,
|
|
1405
1432
|
onChange: a,
|
|
1406
1433
|
options: g = {},
|
|
1407
|
-
extra:
|
|
1434
|
+
extra: C = {},
|
|
1408
1435
|
showAlerts: m = !1,
|
|
1409
1436
|
lspProps: h,
|
|
1410
|
-
...
|
|
1437
|
+
...Z
|
|
1411
1438
|
}) => {
|
|
1412
|
-
const { initialLineInfo: y, initialSelectionInfo:
|
|
1413
|
-
function N(
|
|
1414
|
-
r === "css" &&
|
|
1439
|
+
const { initialLineInfo: y, initialSelectionInfo: f } = C, { editor: b, setEditor: v } = dn(), { inited: p } = h;
|
|
1440
|
+
function N(u) {
|
|
1441
|
+
r === "css" && u.languages.registerCompletionItemProvider("css", An), r === "json" && u.languages.json && u.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
1415
1442
|
validate: !0,
|
|
1416
1443
|
schemas: [
|
|
1417
1444
|
{
|
|
1418
1445
|
uri: "condition-schema.json",
|
|
1419
1446
|
fileMatch: ["*.condition.json"],
|
|
1420
|
-
schema:
|
|
1447
|
+
schema: hn
|
|
1421
1448
|
}
|
|
1422
1449
|
]
|
|
1423
1450
|
});
|
|
1424
1451
|
}
|
|
1425
|
-
function
|
|
1426
|
-
v(
|
|
1427
|
-
const s =
|
|
1428
|
-
if (s && (s.updateOptions({ insertSpaces: !1 }),
|
|
1452
|
+
function A(u, K) {
|
|
1453
|
+
v(u);
|
|
1454
|
+
const s = u.getModel();
|
|
1455
|
+
if (s && (s.updateOptions({ insertSpaces: !1 }), u.onKeyUp(() => {
|
|
1429
1456
|
var w;
|
|
1430
|
-
const l = (w =
|
|
1457
|
+
const l = (w = u.getPosition()) == null ? void 0 : w.lineNumber;
|
|
1431
1458
|
if (l) {
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1459
|
+
const W = s.getLineFirstNonWhitespaceColumn(l), E = s.getLineLength(l), L = s.getLineContent(l);
|
|
1460
|
+
xn.test(L) && u.executeEdits("edit-handler", [
|
|
1434
1461
|
{
|
|
1435
|
-
range: new
|
|
1462
|
+
range: new K.Range(
|
|
1436
1463
|
l,
|
|
1437
1464
|
0,
|
|
1438
1465
|
l,
|
|
1439
|
-
|
|
1466
|
+
E
|
|
1440
1467
|
),
|
|
1441
|
-
text:
|
|
1442
|
-
|
|
1443
|
-
|
|
1468
|
+
text: L.substr(
|
|
1469
|
+
W - 1,
|
|
1470
|
+
E - W
|
|
1444
1471
|
)
|
|
1445
1472
|
}
|
|
1446
1473
|
]);
|
|
1447
1474
|
}
|
|
1448
|
-
})), i ===
|
|
1449
|
-
const l = new
|
|
1475
|
+
})), i === be.METHOD && Q(e)) {
|
|
1476
|
+
const l = new Rn(u, !0);
|
|
1450
1477
|
l.exclude(1, 1, 1, Number.POSITIVE_INFINITY), l.enable();
|
|
1451
1478
|
}
|
|
1452
1479
|
}
|
|
1453
1480
|
return J(() => {
|
|
1454
1481
|
if (!b)
|
|
1455
1482
|
return;
|
|
1456
|
-
const { line:
|
|
1457
|
-
|
|
1483
|
+
const { line: u, offset: K } = y || {};
|
|
1484
|
+
u && sn(b, u, K);
|
|
1458
1485
|
}, [y, b]), J(() => {
|
|
1459
1486
|
if (!b)
|
|
1460
1487
|
return;
|
|
1461
|
-
const { selection:
|
|
1462
|
-
|
|
1463
|
-
}, [
|
|
1464
|
-
m ? /* @__PURE__ */ S(
|
|
1488
|
+
const { selection: u } = f || {};
|
|
1489
|
+
u && rn(b, u);
|
|
1490
|
+
}, [f, b]), p ? /* @__PURE__ */ T(ue, { children: [
|
|
1491
|
+
m ? /* @__PURE__ */ S(fn, { lspProps: h }) : null,
|
|
1465
1492
|
/* @__PURE__ */ S(
|
|
1466
|
-
|
|
1493
|
+
Ae,
|
|
1467
1494
|
{
|
|
1468
1495
|
options: {
|
|
1469
1496
|
readOnly: !0,
|
|
@@ -1472,19 +1499,19 @@ const yn = new RegExp("^[ s]+(exposed|Function)", "i"), $ = () => /* @__PURE__ *
|
|
|
1472
1499
|
padding: { top: 10 },
|
|
1473
1500
|
...g
|
|
1474
1501
|
},
|
|
1475
|
-
path:
|
|
1502
|
+
path: F(t),
|
|
1476
1503
|
value: e,
|
|
1477
1504
|
theme: "fd-dark",
|
|
1478
|
-
onChange: (
|
|
1505
|
+
onChange: (u) => a && a(u || ""),
|
|
1479
1506
|
language: r,
|
|
1480
1507
|
beforeMount: N,
|
|
1481
|
-
onMount:
|
|
1482
|
-
loading: /* @__PURE__ */ S(
|
|
1483
|
-
...
|
|
1508
|
+
onMount: A,
|
|
1509
|
+
loading: /* @__PURE__ */ S(_, {}),
|
|
1510
|
+
...Z
|
|
1484
1511
|
}
|
|
1485
1512
|
)
|
|
1486
|
-
] }) : /* @__PURE__ */ S(
|
|
1487
|
-
},
|
|
1513
|
+
] }) : /* @__PURE__ */ S(_, {});
|
|
1514
|
+
}, Wn = {
|
|
1488
1515
|
name: "4d",
|
|
1489
1516
|
displayName: "%displayName%",
|
|
1490
1517
|
description: "%description%",
|
|
@@ -1509,42 +1536,42 @@ const yn = new RegExp("^[ s]+(exposed|Function)", "i"), $ = () => /* @__PURE__ *
|
|
|
1509
1536
|
}
|
|
1510
1537
|
]
|
|
1511
1538
|
}
|
|
1512
|
-
}, { registerFileUrl:
|
|
1539
|
+
}, { registerFileUrl: Y, whenReady: ct } = ze(Wn, void 0, {
|
|
1513
1540
|
system: !0
|
|
1514
1541
|
});
|
|
1515
|
-
|
|
1542
|
+
Y(
|
|
1516
1543
|
"./syntaxes/4d.tmLanguage.json",
|
|
1517
1544
|
new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=", self.location).toString(),
|
|
1518
1545
|
{ mimeType: "application/json", size: 1592 }
|
|
1519
1546
|
);
|
|
1520
|
-
|
|
1547
|
+
Y(
|
|
1521
1548
|
"./language-configuration.json",
|
|
1522
1549
|
new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==", self.location).toString(),
|
|
1523
1550
|
{ mimeType: "application/json", size: 1723 }
|
|
1524
1551
|
);
|
|
1525
|
-
|
|
1552
|
+
Y(
|
|
1526
1553
|
"package.json",
|
|
1527
1554
|
new URL("data:application/json;base64,ewogICAgIm5hbWUiOiAiNGQiLAogICAgImRpc3BsYXlOYW1lIjogIiVkaXNwbGF5TmFtZSUiLAogICAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICAgInZlcnNpb24iOiAiMS4wLjAiLAogICAgInB1Ymxpc2hlciI6ICJ2c2NvZGUiLAogICAgImxpY2Vuc2UiOiAiTUlUIiwKICAgICJlbmdpbmVzIjogewogICAgICAgICJ2c2NvZGUiOiAiMC4xMC54IgogICAgfSwKICAgICJzY3JpcHRzIjogewogICAgICAgICJ1cGRhdGUtZ3JhbW1hciI6ICJub2RlIC4uL25vZGVfbW9kdWxlcy92c2NvZGUtZ3JhbW1hci11cGRhdGVyL2JpbiBtaWNyb3NvZnQvdnNjb2RlLTRkIGdyYW1tYXJzLzRkLmNzb24gLi9zeW50YXhlcy80ZC50bUxhbmd1YWdlLmpzb24iCiAgICB9LAogICAgImNhdGVnb3JpZXMiOiBbCiAgICAgICAgIlByb2dyYW1taW5nIExhbmd1YWdlcyIKICAgIF0sCiAgICAiY29udHJpYnV0ZXMiOiB7CiAgICAgICAgImxhbmd1YWdlcyI6IFsKICAgICAgICAgICAgewogICAgICAgICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgICAgICAgImFsaWFzZXMiOiBbIjREIiwgIjRkIl0sCiAgICAgICAgICAgICAgImV4dGVuc2lvbnMiOiBbIi40ZG0iLCAiLjRxcyJdLAogICAgICAgICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdLAogICAgICAgICAgImdyYW1tYXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdCiAgICB9LAogICAgInJlcG9zaXRvcnkiOiB7CiAgICAgICAgInR5cGUiOiAiZ2l0IiwKICAgICAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICAgIH0KfQ==", self.location).toString(),
|
|
1528
1555
|
{ mimeType: "application/json", size: 1006 }
|
|
1529
1556
|
);
|
|
1530
|
-
|
|
1557
|
+
Y(
|
|
1531
1558
|
"package.nls.json",
|
|
1532
1559
|
new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K", self.location).toString(),
|
|
1533
1560
|
{ mimeType: "application/json", size: 135 }
|
|
1534
1561
|
);
|
|
1535
1562
|
export {
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1563
|
+
fn as Alerts,
|
|
1564
|
+
gt as CodeEditor,
|
|
1565
|
+
at as CodeEditorProvider,
|
|
1566
|
+
st as LSPProvider,
|
|
1567
|
+
ne as _await,
|
|
1568
|
+
nn as configureServices,
|
|
1569
|
+
F as getFileSystemPath,
|
|
1570
|
+
rt as getFunctionOffset,
|
|
1571
|
+
en as initMonacoUserConfiguration,
|
|
1572
|
+
sn as jumpToLine,
|
|
1573
|
+
rn as jumpToSelection,
|
|
1574
|
+
dn as useCodeEditor,
|
|
1575
|
+
lt as useLSP
|
|
1549
1576
|
};
|
|
1550
1577
|
//# sourceMappingURL=index.es.js.map
|