@ws-ui/code-editor 0.3.8 → 0.3.9
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/README.md +27 -0
- package/dist/demo/LSPDemo.d.ts +1 -1
- package/dist/editor/index.d.ts +3 -3
- package/dist/editor/loader/monaco-workers.d.ts +1 -0
- package/dist/editor/plugins/readonly/index.d.ts +1 -1
- package/dist/editor/providers/CodeEditorProvider.d.ts +1 -1
- package/dist/editor/providers/LSPProvider/WebSocketMessageWriter.d.ts +1 -1
- package/dist/editor/providers/LSPProvider/index.d.ts +5 -5
- package/dist/editor/services/index.d.ts +1 -1
- package/dist/editor/utils/semanticTokens.d.ts +2 -2
- package/dist/editor/utils/textmateTokens.d.ts +2 -2
- package/dist/editor/utils.d.ts +2 -2
- package/dist/index.cjs.js +19 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +680 -694
- package/dist/index.es.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +51 -12
- package/dist/package.json +0 -67
- /package/dist/{assets → studio/assets}/css.worker.bundle.js +0 -0
- /package/dist/{assets → studio/assets}/editor.worker.bundle.js +0 -0
- /package/dist/{assets → studio/assets}/html.worker.bundle.js +0 -0
- /package/dist/{assets → studio/assets}/json.worker.bundle.js +0 -0
- /package/dist/{assets → studio/assets}/textmate.worker.bundle.js +0 -0
- /package/dist/{assets → studio/assets}/ts.worker.bundle.js +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
var Se = Object.defineProperty;
|
|
2
|
+
var ye = (n, e, t) => e in n ? Se(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var F = (n, e, t) => (ye(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { jsxs as J, jsx as w, Fragment as Ne } from "react/jsx-runtime";
|
|
5
|
+
import T, { useEffect as M, createContext as re, useState as _, useRef as ne, useContext as se, memo as Re } from "react";
|
|
6
|
+
import { loader as xe, useMonaco as we, Editor as ke } from "@monaco-editor/react";
|
|
7
|
+
import { lspSubject as Le, LspActions as X, hasAttributesString as le, HTTP_HANDLERS_PATH as We, FileFolderType as Fe } from "@ws-ui/shared";
|
|
8
|
+
import { MonacoLanguageClient as Ze } from "monaco-languageclient";
|
|
9
|
+
import { mergeServices as je, initServices as Xe } from "monaco-languageclient/vscode/services";
|
|
10
|
+
import Ee, { initUserConfiguration as Ke } from "@codingame/monaco-vscode-configuration-service-override";
|
|
11
|
+
import Be from "@codingame/monaco-vscode-languages-service-override";
|
|
12
|
+
import Te from "@codingame/monaco-vscode-textmate-service-override";
|
|
10
13
|
import "@codingame/monaco-vscode-theme-defaults-default-extension";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import { Selection as
|
|
15
|
-
import { Logger as
|
|
16
|
-
import { ErrorAction as
|
|
17
|
-
import { WebSocketMessageReader as
|
|
18
|
-
import { DocumentDiagnosticRequest as
|
|
19
|
-
import { StandaloneServices as at, ICodeEditorService as
|
|
14
|
+
import Oe from "@codingame/monaco-vscode-editor-service-override";
|
|
15
|
+
import De from "@codingame/monaco-vscode-theme-service-override";
|
|
16
|
+
import * as s from "monaco-editor";
|
|
17
|
+
import { Selection as Ge, KeyMod as D, KeyCode as G, editor as ae, Range as Je, Uri as Me, CancellationTokenSource as Pe } from "monaco-editor";
|
|
18
|
+
import { Logger as Ve } from "monaco-languageclient/tools";
|
|
19
|
+
import { ErrorAction as Ye, CloseAction as He } from "vscode-languageclient";
|
|
20
|
+
import { WebSocketMessageReader as ze, WebSocketMessageWriter as _e, toSocket as $e } from "vscode-ws-jsonrpc";
|
|
21
|
+
import { DocumentDiagnosticRequest as Ue, WillSaveTextDocumentNotification as qe, TextDocumentSaveReason as Qe, DidSaveTextDocumentNotification as et, WillCreateFilesRequest as tt, WillRenameFilesRequest as nt, WillDeleteFilesRequest as it, DidCreateFilesNotification as ot, DidRenameFilesNotification as rt, DidDeleteFilesNotification as st, SemanticTokensRegistrationType as lt } from "vscode-languageserver-protocol";
|
|
22
|
+
import { StandaloneServices as at, ICodeEditorService as gt } from "vscode/services";
|
|
20
23
|
import { KeybindingsRegistry as q } from "vscode/monaco";
|
|
21
24
|
import "@codingame/monaco-vscode-standalone-languages";
|
|
22
25
|
import "@codingame/monaco-vscode-standalone-html-language-features";
|
|
@@ -27,14 +30,14 @@ import "@codingame/monaco-vscode-css-default-extension";
|
|
|
27
30
|
import "@codingame/monaco-vscode-json-default-extension";
|
|
28
31
|
import "@codingame/monaco-vscode-html-default-extension";
|
|
29
32
|
import "@codingame/monaco-vscode-javascript-default-extension";
|
|
30
|
-
import { registerExtension as
|
|
31
|
-
const
|
|
33
|
+
import { registerExtension as ct } from "vscode/extensions";
|
|
34
|
+
const ut = () => Ee(), dt = () => Oe(
|
|
32
35
|
() => Promise.resolve(void 0)
|
|
33
|
-
),
|
|
34
|
-
const
|
|
36
|
+
), It = () => {
|
|
37
|
+
const n = De(), e = n.themeService.ctor.prototype;
|
|
35
38
|
return e.defineTheme = () => {
|
|
36
|
-
},
|
|
37
|
-
},
|
|
39
|
+
}, n;
|
|
40
|
+
}, Ct = `{
|
|
38
41
|
"workbench.colorTheme": "Default Dark+",
|
|
39
42
|
"workbench.iconTheme": "vs-seti",
|
|
40
43
|
"editor.autoClosingBrackets": "languageDefined",
|
|
@@ -119,31 +122,31 @@ const ct = () => Xe(), ut = () => Be(
|
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
|
-
`,
|
|
125
|
+
`, mt = () => Ke(Ct), ft = async (n) => {
|
|
123
126
|
var o;
|
|
124
|
-
const e =
|
|
125
|
-
e.debugLogging = ((o =
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
127
|
+
const e = n.serviceConfig ?? {};
|
|
128
|
+
e.debugLogging = ((o = n.logger) == null ? void 0 : o.isEnabled()) === !0 && (e.debugLogging === !0 || n.logger.isDebugEnabled() === !0), await mt(), e.userServices = e.userServices ?? {};
|
|
129
|
+
const t = e.userServices.configurationService ?? void 0, i = e.workspaceConfig ?? void 0;
|
|
130
|
+
if (t === void 0) {
|
|
128
131
|
if (i)
|
|
129
132
|
throw new Error(
|
|
130
133
|
"You provided a workspaceConfig without using the configurationServiceOverride"
|
|
131
134
|
);
|
|
132
|
-
const
|
|
135
|
+
const l = {
|
|
133
136
|
// @see https://github.com/CodinGame/monaco-vscode-api#monaco-standalone-services
|
|
134
|
-
...
|
|
135
|
-
...
|
|
136
|
-
...
|
|
137
|
-
...
|
|
138
|
-
...
|
|
137
|
+
...ut(),
|
|
138
|
+
...It(),
|
|
139
|
+
...Te(),
|
|
140
|
+
...Be(),
|
|
141
|
+
...dt()
|
|
139
142
|
};
|
|
140
|
-
je(
|
|
143
|
+
je(l, e.userServices);
|
|
141
144
|
}
|
|
142
145
|
return i || (e.workspaceConfig = {
|
|
143
146
|
workspaceProvider: {
|
|
144
147
|
trusted: !0,
|
|
145
148
|
workspace: {
|
|
146
|
-
workspaceUri:
|
|
149
|
+
workspaceUri: s.Uri.file("/workspace")
|
|
147
150
|
},
|
|
148
151
|
async open() {
|
|
149
152
|
return !1;
|
|
@@ -151,97 +154,101 @@ const ct = () => Xe(), ut = () => Be(
|
|
|
151
154
|
}
|
|
152
155
|
}), e;
|
|
153
156
|
};
|
|
154
|
-
class
|
|
155
|
-
constructor(
|
|
156
|
-
super(
|
|
157
|
+
class At extends ze {
|
|
158
|
+
constructor(t, i) {
|
|
159
|
+
super(t);
|
|
160
|
+
F(this, "onMessage");
|
|
161
|
+
this.onMessage = i;
|
|
157
162
|
}
|
|
158
|
-
readMessage(
|
|
163
|
+
readMessage(t) {
|
|
159
164
|
this.onMessage && this.onMessage();
|
|
160
|
-
const [,
|
|
165
|
+
const [, i] = t.split(`\r
|
|
161
166
|
\r
|
|
162
167
|
`);
|
|
163
168
|
if (this.state === "initial")
|
|
164
|
-
this.events.splice(0, 0, { message:
|
|
169
|
+
this.events.splice(0, 0, { message: i });
|
|
165
170
|
else if (this.state === "listening") {
|
|
166
|
-
const
|
|
167
|
-
this.callback(
|
|
171
|
+
const o = JSON.parse(i);
|
|
172
|
+
this.callback(o);
|
|
168
173
|
}
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
|
-
class pt extends
|
|
172
|
-
constructor(
|
|
173
|
-
super(
|
|
176
|
+
class pt extends _e {
|
|
177
|
+
constructor(t, i) {
|
|
178
|
+
super(t);
|
|
179
|
+
F(this, "onSend");
|
|
180
|
+
this.onSend = i;
|
|
174
181
|
}
|
|
175
|
-
async write(
|
|
182
|
+
async write(t) {
|
|
176
183
|
try {
|
|
177
|
-
const
|
|
178
|
-
this.socket.send(
|
|
179
|
-
} catch (
|
|
180
|
-
this.errorCount++, this.fireError(
|
|
184
|
+
const i = JSON.stringify(t);
|
|
185
|
+
this.socket.send(i), this.onSend && this.onSend();
|
|
186
|
+
} catch (i) {
|
|
187
|
+
this.errorCount++, this.fireError(i, t, this.errorCount);
|
|
181
188
|
}
|
|
182
189
|
}
|
|
183
190
|
}
|
|
184
|
-
function j(
|
|
185
|
-
const
|
|
186
|
-
return e ? `file://${
|
|
191
|
+
function j(n, e = !0) {
|
|
192
|
+
const t = `/PACKAGE/Project/Sources/${n}`;
|
|
193
|
+
return e ? `file://${t}` : t;
|
|
187
194
|
}
|
|
188
|
-
function
|
|
189
|
-
setTimeout(
|
|
195
|
+
function ge(n, e = 0) {
|
|
196
|
+
setTimeout(n, e);
|
|
190
197
|
}
|
|
191
|
-
function
|
|
192
|
-
const
|
|
198
|
+
function bt(n, e) {
|
|
199
|
+
const t = new Ge(
|
|
193
200
|
e.startLineNumber,
|
|
194
201
|
e.startColumn,
|
|
195
202
|
e.endLineNumber || e.startLineNumber,
|
|
196
203
|
e.endColumn || e.startColumn
|
|
197
204
|
);
|
|
198
|
-
|
|
199
|
-
|
|
205
|
+
ge(() => {
|
|
206
|
+
n.setSelection(t), n.revealRangeInCenter(t), n.focus();
|
|
200
207
|
});
|
|
201
208
|
}
|
|
202
|
-
function
|
|
203
|
-
|
|
204
|
-
|
|
209
|
+
function ht(n, e, t = 0) {
|
|
210
|
+
t > 0 && (e = t + e), ge(() => {
|
|
211
|
+
n.setPosition({ lineNumber: e, column: 1 }), n.revealLineInCenter(e), n.focus();
|
|
205
212
|
});
|
|
206
213
|
}
|
|
207
|
-
function
|
|
208
|
-
const o =
|
|
214
|
+
function wn(n, e, t) {
|
|
215
|
+
const o = n.getModel();
|
|
209
216
|
if (o && e) {
|
|
210
|
-
const
|
|
211
|
-
for (let
|
|
212
|
-
const
|
|
213
|
-
if (new RegExp(`(?:Function|function) ${
|
|
214
|
-
return
|
|
217
|
+
const l = o.getLineCount();
|
|
218
|
+
for (let r = 1; r <= l; r++) {
|
|
219
|
+
const I = o.getLineContent(r);
|
|
220
|
+
if (new RegExp(`(?:Function|function) ${t}`).test(I))
|
|
221
|
+
return r;
|
|
215
222
|
}
|
|
216
223
|
}
|
|
217
224
|
return 0;
|
|
218
225
|
}
|
|
219
|
-
const
|
|
220
|
-
provideCompletionItems: async (
|
|
221
|
-
const
|
|
226
|
+
const vt = {
|
|
227
|
+
provideCompletionItems: async (n, e) => {
|
|
228
|
+
const t = n.getWordUntilPosition(e);
|
|
222
229
|
return {
|
|
223
230
|
suggestions: [
|
|
224
231
|
{
|
|
225
232
|
label: "var",
|
|
226
|
-
kind:
|
|
227
|
-
range: new
|
|
233
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
234
|
+
range: new s.Range(
|
|
228
235
|
e.lineNumber,
|
|
229
|
-
|
|
236
|
+
t.startColumn,
|
|
230
237
|
e.lineNumber,
|
|
231
|
-
|
|
238
|
+
t.endColumn
|
|
232
239
|
),
|
|
233
240
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
234
241
|
`),
|
|
235
|
-
insertTextRules:
|
|
242
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
236
243
|
},
|
|
237
244
|
{
|
|
238
245
|
label: "While",
|
|
239
|
-
kind:
|
|
240
|
-
range: new
|
|
246
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
247
|
+
range: new s.Range(
|
|
241
248
|
e.lineNumber,
|
|
242
|
-
|
|
249
|
+
t.startColumn,
|
|
243
250
|
e.lineNumber,
|
|
244
|
-
|
|
251
|
+
t.endColumn
|
|
245
252
|
),
|
|
246
253
|
insertText: [
|
|
247
254
|
"While(${1:expression})",
|
|
@@ -249,16 +256,16 @@ const ht = {
|
|
|
249
256
|
"End while"
|
|
250
257
|
].join(`
|
|
251
258
|
`),
|
|
252
|
-
insertTextRules:
|
|
259
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
253
260
|
},
|
|
254
261
|
{
|
|
255
262
|
label: "Case of",
|
|
256
|
-
kind:
|
|
257
|
-
range: new
|
|
263
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
264
|
+
range: new s.Range(
|
|
258
265
|
e.lineNumber,
|
|
259
|
-
|
|
266
|
+
t.startColumn,
|
|
260
267
|
e.lineNumber,
|
|
261
|
-
|
|
268
|
+
t.endColumn
|
|
262
269
|
),
|
|
263
270
|
insertText: [
|
|
264
271
|
"Case of",
|
|
@@ -267,44 +274,44 @@ const ht = {
|
|
|
267
274
|
"End case"
|
|
268
275
|
].join(`
|
|
269
276
|
`),
|
|
270
|
-
insertTextRules:
|
|
277
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
271
278
|
},
|
|
272
279
|
{
|
|
273
280
|
label: "Else",
|
|
274
|
-
kind:
|
|
275
|
-
range: new
|
|
281
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
282
|
+
range: new s.Range(
|
|
276
283
|
e.lineNumber,
|
|
277
|
-
|
|
284
|
+
t.startColumn,
|
|
278
285
|
e.lineNumber,
|
|
279
|
-
|
|
286
|
+
t.endColumn
|
|
280
287
|
),
|
|
281
288
|
insertText: ["Else", " "].join(`
|
|
282
289
|
`),
|
|
283
|
-
insertTextRules:
|
|
290
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
284
291
|
},
|
|
285
292
|
{
|
|
286
293
|
label: "If",
|
|
287
|
-
kind:
|
|
288
|
-
range: new
|
|
294
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
295
|
+
range: new s.Range(
|
|
289
296
|
e.lineNumber,
|
|
290
|
-
|
|
297
|
+
t.startColumn,
|
|
291
298
|
e.lineNumber,
|
|
292
|
-
|
|
299
|
+
t.endColumn
|
|
293
300
|
),
|
|
294
301
|
insertText: ["If (${1:expression})", " ${5:body}", "End if"].join(
|
|
295
302
|
`
|
|
296
303
|
`
|
|
297
304
|
),
|
|
298
|
-
insertTextRules:
|
|
305
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
299
306
|
},
|
|
300
307
|
{
|
|
301
308
|
label: "For",
|
|
302
|
-
kind:
|
|
303
|
-
range: new
|
|
309
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
310
|
+
range: new s.Range(
|
|
304
311
|
e.lineNumber,
|
|
305
|
-
|
|
312
|
+
t.startColumn,
|
|
306
313
|
e.lineNumber,
|
|
307
|
-
|
|
314
|
+
t.endColumn
|
|
308
315
|
),
|
|
309
316
|
insertText: [
|
|
310
317
|
"For(${1:counter};${2:start};${3:end}${4:;increment})",
|
|
@@ -312,68 +319,68 @@ const ht = {
|
|
|
312
319
|
"End for"
|
|
313
320
|
].join(`
|
|
314
321
|
`),
|
|
315
|
-
insertTextRules:
|
|
322
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
316
323
|
},
|
|
317
324
|
{
|
|
318
325
|
label: "Function",
|
|
319
|
-
kind:
|
|
320
|
-
range: new
|
|
326
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
327
|
+
range: new s.Range(
|
|
321
328
|
e.lineNumber,
|
|
322
|
-
|
|
329
|
+
t.startColumn,
|
|
323
330
|
e.lineNumber,
|
|
324
|
-
|
|
331
|
+
t.endColumn
|
|
325
332
|
),
|
|
326
333
|
insertText: [
|
|
327
334
|
"Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}",
|
|
328
335
|
" ${5:body}"
|
|
329
336
|
].join(`
|
|
330
337
|
`),
|
|
331
|
-
insertTextRules:
|
|
338
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
332
339
|
}
|
|
333
340
|
]
|
|
334
341
|
};
|
|
335
342
|
}
|
|
336
|
-
},
|
|
337
|
-
provideCompletionItems: async (
|
|
338
|
-
const
|
|
343
|
+
}, St = {
|
|
344
|
+
provideCompletionItems: async (n, e) => {
|
|
345
|
+
const t = n.getWordUntilPosition(e);
|
|
339
346
|
return {
|
|
340
347
|
suggestions: [
|
|
341
348
|
{
|
|
342
349
|
label: "var",
|
|
343
|
-
kind:
|
|
344
|
-
range: new
|
|
350
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
351
|
+
range: new s.Range(
|
|
345
352
|
e.lineNumber,
|
|
346
|
-
|
|
353
|
+
t.startColumn,
|
|
347
354
|
e.lineNumber,
|
|
348
|
-
|
|
355
|
+
t.endColumn
|
|
349
356
|
),
|
|
350
357
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
351
358
|
`),
|
|
352
|
-
insertTextRules:
|
|
359
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
353
360
|
},
|
|
354
361
|
{
|
|
355
362
|
label: "while",
|
|
356
|
-
kind:
|
|
357
|
-
range: new
|
|
363
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
364
|
+
range: new s.Range(
|
|
358
365
|
e.lineNumber,
|
|
359
|
-
|
|
366
|
+
t.startColumn,
|
|
360
367
|
e.lineNumber,
|
|
361
|
-
|
|
368
|
+
t.endColumn
|
|
362
369
|
),
|
|
363
370
|
insertText: ["while(${1:expression})", " ${2:body}", "end"].join(
|
|
364
371
|
`
|
|
365
372
|
`
|
|
366
373
|
),
|
|
367
|
-
insertTextRules:
|
|
374
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
368
375
|
},
|
|
369
376
|
{
|
|
370
377
|
label: "switch",
|
|
371
|
-
kind:
|
|
372
|
-
range: new
|
|
378
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
379
|
+
range: new s.Range(
|
|
373
380
|
e.lineNumber,
|
|
374
|
-
|
|
381
|
+
t.startColumn,
|
|
375
382
|
e.lineNumber,
|
|
376
|
-
|
|
383
|
+
t.endColumn
|
|
377
384
|
),
|
|
378
385
|
insertText: [
|
|
379
386
|
"switch",
|
|
@@ -382,44 +389,44 @@ const ht = {
|
|
|
382
389
|
"end"
|
|
383
390
|
].join(`
|
|
384
391
|
`),
|
|
385
|
-
insertTextRules:
|
|
392
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
386
393
|
},
|
|
387
394
|
{
|
|
388
395
|
label: "else",
|
|
389
|
-
kind:
|
|
390
|
-
range: new
|
|
396
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
397
|
+
range: new s.Range(
|
|
391
398
|
e.lineNumber,
|
|
392
|
-
|
|
399
|
+
t.startColumn,
|
|
393
400
|
e.lineNumber,
|
|
394
|
-
|
|
401
|
+
t.endColumn
|
|
395
402
|
),
|
|
396
403
|
insertText: ["else", " "].join(`
|
|
397
404
|
`),
|
|
398
|
-
insertTextRules:
|
|
405
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
399
406
|
},
|
|
400
407
|
{
|
|
401
408
|
label: "if",
|
|
402
|
-
kind:
|
|
403
|
-
range: new
|
|
409
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
410
|
+
range: new s.Range(
|
|
404
411
|
e.lineNumber,
|
|
405
|
-
|
|
412
|
+
t.startColumn,
|
|
406
413
|
e.lineNumber,
|
|
407
|
-
|
|
414
|
+
t.endColumn
|
|
408
415
|
),
|
|
409
416
|
insertText: ["if (${1:expression})", " ${5:body}", "end"].join(
|
|
410
417
|
`
|
|
411
418
|
`
|
|
412
419
|
),
|
|
413
|
-
insertTextRules:
|
|
420
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
414
421
|
},
|
|
415
422
|
{
|
|
416
423
|
label: "for",
|
|
417
|
-
kind:
|
|
418
|
-
range: new
|
|
424
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
425
|
+
range: new s.Range(
|
|
419
426
|
e.lineNumber,
|
|
420
|
-
|
|
427
|
+
t.startColumn,
|
|
421
428
|
e.lineNumber,
|
|
422
|
-
|
|
429
|
+
t.endColumn
|
|
423
430
|
),
|
|
424
431
|
insertText: [
|
|
425
432
|
"for(${1:counter},${2:start},${3:end}${4:,increment})",
|
|
@@ -427,66 +434,66 @@ const ht = {
|
|
|
427
434
|
"end"
|
|
428
435
|
].join(`
|
|
429
436
|
`),
|
|
430
|
-
insertTextRules:
|
|
437
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
431
438
|
},
|
|
432
439
|
{
|
|
433
440
|
label: "function",
|
|
434
|
-
kind:
|
|
435
|
-
range: new
|
|
441
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
442
|
+
range: new s.Range(
|
|
436
443
|
e.lineNumber,
|
|
437
|
-
|
|
444
|
+
t.startColumn,
|
|
438
445
|
e.lineNumber,
|
|
439
|
-
|
|
446
|
+
t.endColumn
|
|
440
447
|
),
|
|
441
448
|
insertText: [
|
|
442
449
|
"function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}",
|
|
443
450
|
" ${5:body}"
|
|
444
451
|
].join(`
|
|
445
452
|
`),
|
|
446
|
-
insertTextRules:
|
|
453
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
447
454
|
}
|
|
448
455
|
]
|
|
449
456
|
};
|
|
450
457
|
}
|
|
451
|
-
},
|
|
458
|
+
}, yt = [
|
|
452
459
|
// zoom in
|
|
453
460
|
{
|
|
454
|
-
keybinding:
|
|
461
|
+
keybinding: D.CtrlCmd | G.NumpadAdd,
|
|
455
462
|
command: "editor.action.fontZoomIn"
|
|
456
463
|
},
|
|
457
464
|
{
|
|
458
|
-
keybinding:
|
|
465
|
+
keybinding: D.CtrlCmd | G.Equal,
|
|
459
466
|
command: "editor.action.fontZoomIn"
|
|
460
467
|
},
|
|
461
468
|
// zoom out
|
|
462
469
|
{
|
|
463
|
-
keybinding:
|
|
470
|
+
keybinding: D.CtrlCmd | G.NumpadSubtract,
|
|
464
471
|
command: "editor.action.fontZoomOut"
|
|
465
472
|
},
|
|
466
473
|
{
|
|
467
|
-
keybinding:
|
|
474
|
+
keybinding: D.CtrlCmd | G.Minus,
|
|
468
475
|
command: "editor.action.fontZoomOut"
|
|
469
476
|
},
|
|
470
477
|
// zoom reset
|
|
471
478
|
{
|
|
472
|
-
keybinding:
|
|
479
|
+
keybinding: D.CtrlCmd | G.Numpad0,
|
|
473
480
|
command: "editor.action.fontZoomReset"
|
|
474
481
|
},
|
|
475
482
|
{
|
|
476
|
-
keybinding:
|
|
483
|
+
keybinding: D.CtrlCmd | G.Digit0,
|
|
477
484
|
command: "editor.action.fontZoomReset"
|
|
478
485
|
}
|
|
479
|
-
],
|
|
480
|
-
|
|
486
|
+
], Nt = ({ defaultZoom: n }) => (M(() => {
|
|
487
|
+
n !== void 0 && ae.EditorZoom.setZoomLevel(n);
|
|
481
488
|
}, []), null);
|
|
482
|
-
|
|
483
|
-
monaco:
|
|
489
|
+
({}).VITE_DISABLE_MONACO_LOADER || xe.config({
|
|
490
|
+
monaco: s
|
|
484
491
|
// paths: {
|
|
485
|
-
// vs:
|
|
492
|
+
// vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.41.0/min/vs",
|
|
486
493
|
// },
|
|
487
494
|
});
|
|
488
|
-
var
|
|
489
|
-
class
|
|
495
|
+
var z = /* @__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))(z || {}), ce = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.DefaultForeground = 1] = "DefaultForeground", n[n.DefaultBackground = 2] = "DefaultBackground", n))(ce || {}), ue = /* @__PURE__ */ ((n) => (n[n.Other = 0] = "Other", n[n.Comment = 1] = "Comment", n[n.String = 2] = "String", n[n.RegEx = 3] = "RegEx", n))(ue || {});
|
|
496
|
+
class Y {
|
|
490
497
|
static getLanguageId(e) {
|
|
491
498
|
return (e & 255) >>> 0;
|
|
492
499
|
}
|
|
@@ -510,17 +517,17 @@ class M {
|
|
|
510
517
|
const o = this.getFontStyle(e);
|
|
511
518
|
return o & 1 && (i += " mtki"), o & 2 && (i += " mtkb"), o & 4 && (i += " mtku"), o & 8 && (i += " mtks"), i;
|
|
512
519
|
}
|
|
513
|
-
static getInlineStyleFromMetadata(e,
|
|
520
|
+
static getInlineStyleFromMetadata(e, t) {
|
|
514
521
|
const i = this.getForeground(e), o = this.getFontStyle(e);
|
|
515
|
-
let
|
|
516
|
-
o & 1 && (
|
|
517
|
-
let
|
|
518
|
-
return o & 4 && (
|
|
522
|
+
let l = `color: ${t[i]};`;
|
|
523
|
+
o & 1 && (l += "font-style: italic;"), o & 2 && (l += "font-weight: bold;");
|
|
524
|
+
let r = "";
|
|
525
|
+
return o & 4 && (r += " underline"), o & 8 && (r += " line-through"), r && (l += `text-decoration:${r};`), l;
|
|
519
526
|
}
|
|
520
527
|
static getPresentationFromMetadata(e) {
|
|
521
|
-
const
|
|
528
|
+
const t = this.getForeground(e), i = this.getFontStyle(e);
|
|
522
529
|
return {
|
|
523
|
-
foreground:
|
|
530
|
+
foreground: t,
|
|
524
531
|
italic: !!(i & 1),
|
|
525
532
|
bold: !!(i & 2),
|
|
526
533
|
underline: !!(i & 4),
|
|
@@ -528,158 +535,159 @@ class M {
|
|
|
528
535
|
};
|
|
529
536
|
}
|
|
530
537
|
}
|
|
531
|
-
function
|
|
532
|
-
const o =
|
|
533
|
-
let
|
|
534
|
-
const
|
|
535
|
-
for (let
|
|
536
|
-
const
|
|
537
|
-
if (
|
|
538
|
-
const k =
|
|
539
|
-
let
|
|
540
|
-
for (let P = 0;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
const u = new
|
|
544
|
-
|
|
538
|
+
function Rt(n, e, t, i) {
|
|
539
|
+
const o = t.tokens.data, l = n.getLanguageId();
|
|
540
|
+
let r = 0, I = 0;
|
|
541
|
+
const C = i.lineNumber - 1, S = i.column - 1;
|
|
542
|
+
for (let y = 0; y < o.length; y += 5) {
|
|
543
|
+
const p = o[y], m = o[y + 1], N = o[y + 2], x = o[y + 3], h = o[y + 4], R = r + p, f = p === 0 ? I + m : m;
|
|
544
|
+
if (C === R && f <= S && S < f + N) {
|
|
545
|
+
const k = t.legend.tokenTypes[x] || "not in legend (ignored)", A = [];
|
|
546
|
+
let a = h;
|
|
547
|
+
for (let P = 0; a > 0 && P < t.legend.tokenModifiers.length; P++)
|
|
548
|
+
a & 1 && A.push(t.legend.tokenModifiers[P]), a = a >> 1;
|
|
549
|
+
a > 0 && A.push("not in legend (ignored)");
|
|
550
|
+
const u = new Je(
|
|
551
|
+
R + 1,
|
|
545
552
|
f + 1,
|
|
546
|
-
|
|
553
|
+
R + 1,
|
|
547
554
|
f + 1 + N
|
|
548
|
-
),
|
|
555
|
+
), v = {}, L = e.getColorTheme().tokenColorMap, b = e.getColorTheme().getTokenStyleMetadata(
|
|
549
556
|
k,
|
|
550
|
-
|
|
551
|
-
|
|
557
|
+
A,
|
|
558
|
+
l,
|
|
552
559
|
!0,
|
|
553
|
-
|
|
560
|
+
v
|
|
554
561
|
);
|
|
555
|
-
let
|
|
556
|
-
return
|
|
562
|
+
let B;
|
|
563
|
+
return b && (B = {
|
|
557
564
|
languageId: void 0,
|
|
558
|
-
tokenType:
|
|
559
|
-
bold:
|
|
560
|
-
italic:
|
|
561
|
-
underline:
|
|
562
|
-
strikethrough:
|
|
563
|
-
foreground:
|
|
565
|
+
tokenType: ue.Other,
|
|
566
|
+
bold: b == null ? void 0 : b.bold,
|
|
567
|
+
italic: b == null ? void 0 : b.italic,
|
|
568
|
+
underline: b == null ? void 0 : b.underline,
|
|
569
|
+
strikethrough: b == null ? void 0 : b.strikethrough,
|
|
570
|
+
foreground: L[(b == null ? void 0 : b.foreground) || ce.None],
|
|
564
571
|
background: void 0
|
|
565
|
-
}), { type: k, modifiers:
|
|
572
|
+
}), { type: k, modifiers: A, range: u, metadata: B, definitions: v };
|
|
566
573
|
}
|
|
567
|
-
|
|
574
|
+
r = R, I = f;
|
|
568
575
|
}
|
|
569
576
|
return null;
|
|
570
577
|
}
|
|
571
|
-
function
|
|
578
|
+
function xt(n, e, t) {
|
|
572
579
|
let i = null;
|
|
573
|
-
for (let o = 1; o <
|
|
580
|
+
for (let o = 1; o < t; o++)
|
|
574
581
|
i = e.tokenizeLine(
|
|
575
|
-
|
|
582
|
+
n.getLineContent(o),
|
|
576
583
|
i
|
|
577
584
|
).ruleStack;
|
|
578
585
|
return i;
|
|
579
586
|
}
|
|
580
|
-
function
|
|
581
|
-
const i =
|
|
587
|
+
function wt(n, e, t) {
|
|
588
|
+
const i = n.getColorTheme().tokenColorMap, o = Y.getLanguageId(t), l = Y.getTokenType(t), r = Y.getFontStyle(t), I = Y.getForeground(t), C = Y.getBackground(t);
|
|
582
589
|
return {
|
|
583
590
|
languageId: e.languageIdCodec.decodeLanguageId(o),
|
|
584
|
-
tokenType:
|
|
585
|
-
bold:
|
|
586
|
-
italic:
|
|
587
|
-
underline:
|
|
588
|
-
strikethrough:
|
|
589
|
-
foreground: i[
|
|
590
|
-
background: i[
|
|
591
|
+
tokenType: l,
|
|
592
|
+
bold: r & z.Bold ? !0 : void 0,
|
|
593
|
+
italic: r & z.Italic ? !0 : void 0,
|
|
594
|
+
underline: r & z.Underline ? !0 : void 0,
|
|
595
|
+
strikethrough: r & z.Strikethrough ? !0 : void 0,
|
|
596
|
+
foreground: i[I],
|
|
597
|
+
background: i[C]
|
|
591
598
|
};
|
|
592
599
|
}
|
|
593
|
-
function
|
|
594
|
-
const i =
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
),
|
|
598
|
-
|
|
599
|
-
|
|
600
|
+
function kt(n, e, t) {
|
|
601
|
+
const i = t.lineNumber, o = n, l = o._tokenizationTextModelPart.grammarTokens._tokenizer.tokenizationSupport._actual._grammar, r = xt(n, l, i), I = l.tokenizeLine(
|
|
602
|
+
n.getLineContent(i),
|
|
603
|
+
r
|
|
604
|
+
), C = l.tokenizeLine2(
|
|
605
|
+
n.getLineContent(i),
|
|
606
|
+
r
|
|
600
607
|
);
|
|
601
|
-
let
|
|
602
|
-
for (let
|
|
603
|
-
const m =
|
|
604
|
-
if (
|
|
605
|
-
|
|
608
|
+
let S = 0;
|
|
609
|
+
for (let p = I.tokens.length - 1; p >= 0; p--) {
|
|
610
|
+
const m = I.tokens[p];
|
|
611
|
+
if (t.column - 1 >= m.startIndex) {
|
|
612
|
+
S = p;
|
|
606
613
|
break;
|
|
607
614
|
}
|
|
608
615
|
}
|
|
609
|
-
let
|
|
610
|
-
for (let
|
|
611
|
-
if (
|
|
612
|
-
|
|
616
|
+
let y = 0;
|
|
617
|
+
for (let p = C.tokens.length >>> 1; p >= 0; p--)
|
|
618
|
+
if (t.column - 1 >= C.tokens[p << 1]) {
|
|
619
|
+
y = p;
|
|
613
620
|
break;
|
|
614
621
|
}
|
|
615
622
|
return {
|
|
616
|
-
token:
|
|
617
|
-
metadata:
|
|
623
|
+
token: I.tokens[S],
|
|
624
|
+
metadata: wt(
|
|
618
625
|
e,
|
|
619
626
|
o._languageService,
|
|
620
|
-
|
|
627
|
+
C.tokens[(y << 1) + 1]
|
|
621
628
|
)
|
|
622
629
|
};
|
|
623
630
|
}
|
|
624
|
-
const
|
|
625
|
-
children:
|
|
631
|
+
const de = re(void 0), kn = ({
|
|
632
|
+
children: n,
|
|
626
633
|
url: e,
|
|
627
|
-
qodly:
|
|
634
|
+
qodly: t,
|
|
628
635
|
defaultZoom: i,
|
|
629
636
|
openHandler: o,
|
|
630
|
-
language:
|
|
631
|
-
defaultInited:
|
|
637
|
+
language: l = "4d",
|
|
638
|
+
defaultInited: r = !1
|
|
632
639
|
}) => {
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
e &&
|
|
636
|
-
}, [e,
|
|
640
|
+
const I = we(), [C, S] = _(r), [y, p] = _(null), m = ne(), N = ne(0);
|
|
641
|
+
M(() => {
|
|
642
|
+
e && I && x();
|
|
643
|
+
}, [e, I]);
|
|
637
644
|
const x = async () => {
|
|
638
|
-
if (!
|
|
639
|
-
|
|
645
|
+
if (!I)
|
|
646
|
+
return;
|
|
647
|
+
const d = new Ve({
|
|
640
648
|
enabled: process.env.NODE_ENV === "development",
|
|
641
649
|
debugEnabled: process.env.NODE_ENV === "development"
|
|
642
|
-
}), g = await
|
|
650
|
+
}), g = await ft({
|
|
643
651
|
logger: d
|
|
644
652
|
});
|
|
645
|
-
await
|
|
653
|
+
await Xe({
|
|
646
654
|
caller: "Qodly Code Editor",
|
|
647
655
|
logger: d,
|
|
648
656
|
serviceConfig: g
|
|
649
|
-
}), o && at.get(
|
|
650
|
-
|
|
651
|
-
|
|
657
|
+
}), o && at.get(gt).registerCodeEditorOpenHandler(o), I.languages.registerCompletionItemProvider(
|
|
658
|
+
l,
|
|
659
|
+
t ? St : vt
|
|
652
660
|
);
|
|
653
661
|
const c = q.getDefaultKeybindings.bind(q);
|
|
654
662
|
q.getDefaultKeybindings = () => c().filter(
|
|
655
|
-
(
|
|
663
|
+
(Z) => ![
|
|
656
664
|
"workbench.action.files.saveAs",
|
|
657
665
|
"workbench.action.files.save"
|
|
658
|
-
].includes(
|
|
659
|
-
),
|
|
660
|
-
},
|
|
661
|
-
|
|
666
|
+
].includes(Z.command)
|
|
667
|
+
), ae.addKeybindingRules(yt), h();
|
|
668
|
+
}, h = () => {
|
|
669
|
+
p(null);
|
|
662
670
|
let d;
|
|
663
671
|
try {
|
|
664
672
|
d = new WebSocket(localStorage.LSP_SERVER || e);
|
|
665
673
|
} catch {
|
|
666
|
-
|
|
674
|
+
p(new Event("INVALID_URL"));
|
|
667
675
|
return;
|
|
668
676
|
}
|
|
669
|
-
d.onopen =
|
|
670
|
-
},
|
|
671
|
-
const d = $e(this), g = new
|
|
677
|
+
d.onopen = R, d.onclose = f, d.onerror = k, N.current = 0;
|
|
678
|
+
}, R = async function() {
|
|
679
|
+
const d = $e(this), g = new At(d), c = new pt(d), W = new Ze({
|
|
672
680
|
name: "4D Language Client",
|
|
673
681
|
clientOptions: {
|
|
674
682
|
workspaceFolder: {
|
|
675
|
-
uri:
|
|
683
|
+
uri: Me.parse("file:///PACKAGE")
|
|
676
684
|
},
|
|
677
685
|
// use a language id as a document selector
|
|
678
|
-
documentSelector: [{ scheme: "file", language:
|
|
686
|
+
documentSelector: [{ scheme: "file", language: l }],
|
|
679
687
|
// disable the default error handler
|
|
680
688
|
errorHandler: {
|
|
681
|
-
error: () => ({ action:
|
|
682
|
-
closed: () => ({ action:
|
|
689
|
+
error: () => ({ action: Ye.Continue }),
|
|
690
|
+
closed: () => ({ action: He.DoNotRestart })
|
|
683
691
|
}
|
|
684
692
|
},
|
|
685
693
|
// create a language client connection from the JSON RPC connection on demand
|
|
@@ -690,135 +698,135 @@ const Ie = se(void 0), Fn = ({
|
|
|
690
698
|
})
|
|
691
699
|
}
|
|
692
700
|
});
|
|
693
|
-
m.current =
|
|
694
|
-
const
|
|
695
|
-
m.current.sendRequest = function(O,
|
|
701
|
+
m.current = W;
|
|
702
|
+
const Z = W.sendRequest.bind(W);
|
|
703
|
+
m.current.sendRequest = function(O, V, U) {
|
|
696
704
|
return typeof O == "object" && O.method === "textDocument/diagnostic" && /file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(
|
|
697
|
-
|
|
698
|
-
) ? Promise.resolve() :
|
|
705
|
+
V.textDocument.uri
|
|
706
|
+
) ? Promise.resolve() : Z(O, V, U);
|
|
699
707
|
}, g.onClose(() => {
|
|
700
|
-
|
|
701
|
-
N.current++,
|
|
702
|
-
}, 1e3) :
|
|
703
|
-
}),
|
|
708
|
+
W.stop(), N.current < 3 ? setTimeout(() => {
|
|
709
|
+
N.current++, h();
|
|
710
|
+
}, 1e3) : p(new Event("WEBSOCKET_CLOSED"));
|
|
711
|
+
}), W.needsStart() && await W.start(), S(!0);
|
|
704
712
|
}, f = () => {
|
|
705
713
|
}, k = (d) => {
|
|
706
|
-
|
|
714
|
+
p(d);
|
|
707
715
|
};
|
|
708
|
-
|
|
709
|
-
const d =
|
|
716
|
+
M(() => {
|
|
717
|
+
const d = Le.subscribe(({ action: g, payload: c }) => {
|
|
710
718
|
switch (g) {
|
|
711
|
-
case
|
|
712
|
-
|
|
719
|
+
case X.WILL_SAVE:
|
|
720
|
+
L(c.filePath);
|
|
713
721
|
break;
|
|
714
|
-
case
|
|
715
|
-
|
|
722
|
+
case X.DID_SAVE:
|
|
723
|
+
K(c.filePath, c.content);
|
|
716
724
|
break;
|
|
717
|
-
case
|
|
718
|
-
|
|
725
|
+
case X.WILL_CREATE:
|
|
726
|
+
b(c.filePath);
|
|
719
727
|
break;
|
|
720
|
-
case
|
|
728
|
+
case X.DID_CREATE:
|
|
721
729
|
Ae(c.filePath);
|
|
722
730
|
break;
|
|
723
|
-
case
|
|
724
|
-
|
|
731
|
+
case X.WILL_RENAME:
|
|
732
|
+
B(c.oldPath, c.newPath);
|
|
725
733
|
break;
|
|
726
|
-
case
|
|
727
|
-
|
|
734
|
+
case X.DID_RENAME:
|
|
735
|
+
pe(c.oldPath, c.newPath);
|
|
728
736
|
break;
|
|
729
|
-
case
|
|
737
|
+
case X.WILL_DELETE:
|
|
730
738
|
P(c.filePath);
|
|
731
739
|
break;
|
|
732
|
-
case
|
|
733
|
-
|
|
740
|
+
case X.DID_DELETE:
|
|
741
|
+
be(c.filePath);
|
|
734
742
|
break;
|
|
735
|
-
case
|
|
736
|
-
|
|
743
|
+
case X.DIAGNOSTIC_REFRESH:
|
|
744
|
+
v(c.filePath);
|
|
737
745
|
break;
|
|
738
746
|
}
|
|
739
747
|
});
|
|
740
748
|
return () => d.unsubscribe();
|
|
741
749
|
}, []);
|
|
742
|
-
const
|
|
750
|
+
const A = (d) => {
|
|
743
751
|
var g, c;
|
|
744
752
|
return (c = (g = m.current) == null ? void 0 : g._features) == null ? void 0 : c.find(
|
|
745
|
-
(
|
|
746
|
-
var
|
|
747
|
-
return ((
|
|
753
|
+
(W) => {
|
|
754
|
+
var Z;
|
|
755
|
+
return ((Z = W._registrationType) == null ? void 0 : Z.method) === d;
|
|
748
756
|
}
|
|
749
757
|
);
|
|
750
|
-
},
|
|
751
|
-
const g = [], c =
|
|
758
|
+
}, a = (d) => {
|
|
759
|
+
const g = [], c = A(d);
|
|
752
760
|
if (c)
|
|
753
|
-
for (const [
|
|
754
|
-
|
|
761
|
+
for (const [W, Z] of c._registrations)
|
|
762
|
+
Z.provider && g.push(Z.provider);
|
|
755
763
|
return g;
|
|
756
764
|
}, u = async (d, g, c) => {
|
|
757
|
-
var
|
|
758
|
-
const
|
|
759
|
-
|
|
765
|
+
var Z, O, V;
|
|
766
|
+
const W = a(
|
|
767
|
+
lt.method
|
|
760
768
|
);
|
|
761
|
-
if (
|
|
762
|
-
const U = new
|
|
763
|
-
|
|
769
|
+
if (W[0]) {
|
|
770
|
+
const U = new Pe(), ee = await Promise.resolve(
|
|
771
|
+
W[0].full.provideDocumentSemanticTokens(
|
|
764
772
|
g,
|
|
765
773
|
U.token
|
|
766
774
|
)
|
|
767
|
-
), te = d,
|
|
775
|
+
), te = d, he = ee ? Rt(
|
|
768
776
|
g,
|
|
769
777
|
te._themeService,
|
|
770
778
|
{
|
|
771
779
|
tokens: ee,
|
|
772
|
-
legend: (
|
|
780
|
+
legend: (V = (O = (Z = m.current) == null ? void 0 : Z._capabilities) == null ? void 0 : O.semanticTokensProvider) == null ? void 0 : V.legend
|
|
773
781
|
},
|
|
774
782
|
c
|
|
775
|
-
) : null,
|
|
783
|
+
) : null, ve = kt(
|
|
776
784
|
g,
|
|
777
785
|
te._themeService,
|
|
778
786
|
c
|
|
779
787
|
);
|
|
780
788
|
return {
|
|
781
|
-
semanticTokenInfo:
|
|
782
|
-
textmateTokenInfo:
|
|
789
|
+
semanticTokenInfo: he,
|
|
790
|
+
textmateTokenInfo: ve
|
|
783
791
|
};
|
|
784
792
|
}
|
|
785
793
|
return null;
|
|
786
|
-
},
|
|
794
|
+
}, v = (d) => {
|
|
787
795
|
if (m.current) {
|
|
788
|
-
const g =
|
|
789
|
-
|
|
796
|
+
const g = a(
|
|
797
|
+
Ue.method
|
|
790
798
|
);
|
|
791
799
|
for (const c of g)
|
|
792
800
|
c.onDidChangeDiagnosticsEmitter.fire();
|
|
793
801
|
}
|
|
794
|
-
},
|
|
802
|
+
}, L = (d, g = Qe.Manual) => {
|
|
795
803
|
var c;
|
|
796
|
-
(c = m.current) == null || c.sendNotification(
|
|
804
|
+
(c = m.current) == null || c.sendNotification(qe.type, {
|
|
797
805
|
textDocument: {
|
|
798
806
|
uri: j(d)
|
|
799
807
|
},
|
|
800
808
|
reason: g
|
|
801
809
|
});
|
|
802
|
-
},
|
|
810
|
+
}, K = (d, g) => {
|
|
803
811
|
var c;
|
|
804
|
-
(c = m.current) == null || c.sendNotification(
|
|
812
|
+
(c = m.current) == null || c.sendNotification(et.type, {
|
|
805
813
|
textDocument: {
|
|
806
814
|
uri: j(d)
|
|
807
815
|
},
|
|
808
816
|
text: g
|
|
809
817
|
});
|
|
810
|
-
},
|
|
818
|
+
}, b = (d) => {
|
|
811
819
|
var g;
|
|
812
|
-
(g = m.current) == null || g.sendRequest(
|
|
820
|
+
(g = m.current) == null || g.sendRequest(tt.type, {
|
|
813
821
|
files: [
|
|
814
822
|
{
|
|
815
823
|
uri: j(d)
|
|
816
824
|
}
|
|
817
825
|
]
|
|
818
826
|
});
|
|
819
|
-
},
|
|
827
|
+
}, B = (d, g) => {
|
|
820
828
|
var c;
|
|
821
|
-
(c = m.current) == null || c.sendRequest(
|
|
829
|
+
(c = m.current) == null || c.sendRequest(nt.type, {
|
|
822
830
|
files: [
|
|
823
831
|
{
|
|
824
832
|
oldUri: j(d),
|
|
@@ -828,7 +836,7 @@ const Ie = se(void 0), Fn = ({
|
|
|
828
836
|
});
|
|
829
837
|
}, P = (d) => {
|
|
830
838
|
var g;
|
|
831
|
-
(g = m.current) == null || g.sendRequest(
|
|
839
|
+
(g = m.current) == null || g.sendRequest(it.type, {
|
|
832
840
|
files: [
|
|
833
841
|
{
|
|
834
842
|
uri: j(d)
|
|
@@ -837,16 +845,16 @@ const Ie = se(void 0), Fn = ({
|
|
|
837
845
|
});
|
|
838
846
|
}, Ae = (d) => {
|
|
839
847
|
var g;
|
|
840
|
-
(g = m.current) == null || g.sendNotification(
|
|
848
|
+
(g = m.current) == null || g.sendNotification(ot.type, {
|
|
841
849
|
files: [
|
|
842
850
|
{
|
|
843
851
|
uri: j(d)
|
|
844
852
|
}
|
|
845
853
|
]
|
|
846
854
|
});
|
|
847
|
-
},
|
|
855
|
+
}, pe = (d, g) => {
|
|
848
856
|
var c;
|
|
849
|
-
(c = m.current) == null || c.sendNotification(
|
|
857
|
+
(c = m.current) == null || c.sendNotification(rt.type, {
|
|
850
858
|
files: [
|
|
851
859
|
{
|
|
852
860
|
oldUri: j(d),
|
|
@@ -854,9 +862,9 @@ const Ie = se(void 0), Fn = ({
|
|
|
854
862
|
}
|
|
855
863
|
]
|
|
856
864
|
});
|
|
857
|
-
},
|
|
865
|
+
}, be = (d) => {
|
|
858
866
|
var g;
|
|
859
|
-
(g = m.current) == null || g.sendNotification(
|
|
867
|
+
(g = m.current) == null || g.sendNotification(st.type, {
|
|
860
868
|
files: [
|
|
861
869
|
{
|
|
862
870
|
uri: j(d)
|
|
@@ -864,186 +872,137 @@ const Ie = se(void 0), Fn = ({
|
|
|
864
872
|
]
|
|
865
873
|
});
|
|
866
874
|
};
|
|
867
|
-
return /* @__PURE__ */
|
|
868
|
-
|
|
875
|
+
return /* @__PURE__ */ J(
|
|
876
|
+
de.Provider,
|
|
869
877
|
{
|
|
870
878
|
value: {
|
|
871
|
-
inited:
|
|
879
|
+
inited: C || !!y,
|
|
872
880
|
clientRef: m,
|
|
873
|
-
lastError:
|
|
874
|
-
reload:
|
|
881
|
+
lastError: y,
|
|
882
|
+
reload: h,
|
|
875
883
|
getTokenAtPosition: u
|
|
876
884
|
},
|
|
877
885
|
children: [
|
|
878
|
-
|
|
879
|
-
/* @__PURE__ */
|
|
886
|
+
n,
|
|
887
|
+
/* @__PURE__ */ w(Nt, { defaultZoom: i })
|
|
880
888
|
]
|
|
881
889
|
}
|
|
882
890
|
);
|
|
883
891
|
};
|
|
884
|
-
function
|
|
885
|
-
const
|
|
886
|
-
if (
|
|
892
|
+
function Ln() {
|
|
893
|
+
const n = se(de);
|
|
894
|
+
if (n === void 0)
|
|
887
895
|
throw new Error("useLSP must be used within an LSPContext");
|
|
888
|
-
return
|
|
896
|
+
return n;
|
|
889
897
|
}
|
|
890
|
-
const
|
|
898
|
+
const Ie = re(
|
|
891
899
|
void 0
|
|
892
|
-
),
|
|
893
|
-
const [e,
|
|
894
|
-
return /* @__PURE__ */
|
|
895
|
-
|
|
900
|
+
), Wn = Re(({ children: n }) => {
|
|
901
|
+
const [e, t] = _(null);
|
|
902
|
+
return /* @__PURE__ */ w(
|
|
903
|
+
Ie.Provider,
|
|
896
904
|
{
|
|
897
905
|
value: {
|
|
898
906
|
editor: e,
|
|
899
|
-
setEditor:
|
|
907
|
+
setEditor: t
|
|
900
908
|
},
|
|
901
|
-
children:
|
|
909
|
+
children: n
|
|
902
910
|
}
|
|
903
911
|
);
|
|
904
912
|
});
|
|
905
|
-
function
|
|
906
|
-
const
|
|
907
|
-
if (
|
|
908
|
-
const [
|
|
913
|
+
function Lt() {
|
|
914
|
+
const n = se(Ie), e = _(null);
|
|
915
|
+
if (n === void 0) {
|
|
916
|
+
const [t, i] = e;
|
|
909
917
|
return {
|
|
910
|
-
editor:
|
|
918
|
+
editor: t,
|
|
911
919
|
setEditor: i
|
|
912
920
|
};
|
|
913
921
|
}
|
|
914
|
-
return
|
|
922
|
+
return n;
|
|
915
923
|
}
|
|
916
|
-
var
|
|
924
|
+
var Ce = {
|
|
917
925
|
color: void 0,
|
|
918
926
|
size: void 0,
|
|
919
927
|
className: void 0,
|
|
920
928
|
style: void 0,
|
|
921
929
|
attr: void 0
|
|
922
|
-
}, ie =
|
|
923
|
-
function
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
for (o = 0; o < r.length; o++)
|
|
929
|
-
i = r[o], !(e.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (n[i] = t[i]);
|
|
930
|
-
}
|
|
931
|
-
return n;
|
|
932
|
-
}
|
|
933
|
-
function Ft(t, e) {
|
|
934
|
-
if (t == null) return {};
|
|
935
|
-
var n = {};
|
|
936
|
-
for (var i in t)
|
|
937
|
-
if (Object.prototype.hasOwnProperty.call(t, i)) {
|
|
938
|
-
if (e.indexOf(i) >= 0) continue;
|
|
939
|
-
n[i] = t[i];
|
|
940
|
-
}
|
|
941
|
-
return n;
|
|
942
|
-
}
|
|
943
|
-
function z() {
|
|
944
|
-
return z = Object.assign ? Object.assign.bind() : function(t) {
|
|
945
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
946
|
-
var n = arguments[e];
|
|
947
|
-
for (var i in n)
|
|
948
|
-
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
930
|
+
}, ie = T.createContext && T.createContext(Ce), E = globalThis && globalThis.__assign || function() {
|
|
931
|
+
return E = Object.assign || function(n) {
|
|
932
|
+
for (var e, t = 1, i = arguments.length; t < i; t++) {
|
|
933
|
+
e = arguments[t];
|
|
934
|
+
for (var o in e)
|
|
935
|
+
Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o]);
|
|
949
936
|
}
|
|
950
|
-
return
|
|
951
|
-
},
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
var
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
})), n.push.apply(n, i);
|
|
960
|
-
}
|
|
961
|
-
return n;
|
|
962
|
-
}
|
|
963
|
-
function $(t) {
|
|
964
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
965
|
-
var n = arguments[e] != null ? arguments[e] : {};
|
|
966
|
-
e % 2 ? oe(Object(n), !0).forEach(function(i) {
|
|
967
|
-
jt(t, i, n[i]);
|
|
968
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : oe(Object(n)).forEach(function(i) {
|
|
969
|
-
Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
|
|
970
|
-
});
|
|
971
|
-
}
|
|
937
|
+
return n;
|
|
938
|
+
}, E.apply(this, arguments);
|
|
939
|
+
}, Wt = globalThis && globalThis.__rest || function(n, e) {
|
|
940
|
+
var t = {};
|
|
941
|
+
for (var i in n)
|
|
942
|
+
Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
|
|
943
|
+
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
944
|
+
for (var o = 0, i = Object.getOwnPropertySymbols(n); o < i.length; o++)
|
|
945
|
+
e.indexOf(i[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[o]) && (t[i[o]] = n[i[o]]);
|
|
972
946
|
return t;
|
|
947
|
+
};
|
|
948
|
+
function me(n) {
|
|
949
|
+
return n && n.map(function(e, t) {
|
|
950
|
+
return T.createElement(e.tag, E({
|
|
951
|
+
key: t
|
|
952
|
+
}, e.attr), me(e.child));
|
|
953
|
+
});
|
|
973
954
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
}
|
|
981
|
-
function Xt(t, e) {
|
|
982
|
-
if (typeof t != "object" || !t) return t;
|
|
983
|
-
var n = t[Symbol.toPrimitive];
|
|
984
|
-
if (n !== void 0) {
|
|
985
|
-
var i = n.call(t, e || "default");
|
|
986
|
-
if (typeof i != "object") return i;
|
|
987
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
988
|
-
}
|
|
989
|
-
return (e === "string" ? String : Number)(t);
|
|
990
|
-
}
|
|
991
|
-
function fe(t) {
|
|
992
|
-
return t && t.map((e, n) => /* @__PURE__ */ E.createElement(e.tag, $({
|
|
993
|
-
key: n
|
|
994
|
-
}, e.attr), fe(e.child)));
|
|
995
|
-
}
|
|
996
|
-
function pe(t) {
|
|
997
|
-
return (e) => /* @__PURE__ */ E.createElement(Kt, z({
|
|
998
|
-
attr: $({}, t.attr)
|
|
999
|
-
}, e), fe(t.child));
|
|
955
|
+
function fe(n) {
|
|
956
|
+
return function(e) {
|
|
957
|
+
return T.createElement(Ft, E({
|
|
958
|
+
attr: E({}, n.attr)
|
|
959
|
+
}, e), me(n.child));
|
|
960
|
+
};
|
|
1000
961
|
}
|
|
1001
|
-
function
|
|
1002
|
-
var e = (
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1005
|
-
size: o,
|
|
1006
|
-
title: r
|
|
1007
|
-
} = t, s = Lt(t, Wt), A = o || n.size || "1em", I;
|
|
1008
|
-
return n.className && (I = n.className), t.className && (I = (I ? I + " " : "") + t.className), /* @__PURE__ */ E.createElement("svg", z({
|
|
962
|
+
function Ft(n) {
|
|
963
|
+
var e = function(t) {
|
|
964
|
+
var i = n.attr, o = n.size, l = n.title, r = Wt(n, ["attr", "size", "title"]), I = o || t.size || "1em", C;
|
|
965
|
+
return t.className && (C = t.className), n.className && (C = (C ? C + " " : "") + n.className), T.createElement("svg", E({
|
|
1009
966
|
stroke: "currentColor",
|
|
1010
967
|
fill: "currentColor",
|
|
1011
968
|
strokeWidth: "0"
|
|
1012
|
-
},
|
|
1013
|
-
className:
|
|
1014
|
-
style:
|
|
1015
|
-
color:
|
|
1016
|
-
},
|
|
1017
|
-
height:
|
|
1018
|
-
width:
|
|
969
|
+
}, t.attr, i, r, {
|
|
970
|
+
className: C,
|
|
971
|
+
style: E(E({
|
|
972
|
+
color: n.color || t.color
|
|
973
|
+
}, t.style), n.style),
|
|
974
|
+
height: I,
|
|
975
|
+
width: I,
|
|
1019
976
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1020
|
-
}),
|
|
977
|
+
}), l && T.createElement("title", null, l), n.children);
|
|
1021
978
|
};
|
|
1022
|
-
return ie !== void 0 ?
|
|
979
|
+
return ie !== void 0 ? T.createElement(ie.Consumer, null, function(t) {
|
|
980
|
+
return e(t);
|
|
981
|
+
}) : e(Ce);
|
|
1023
982
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return
|
|
983
|
+
function Zt(n) {
|
|
984
|
+
return fe({ 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" } }] })(n);
|
|
1026
985
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
986
|
+
function jt(n) {
|
|
987
|
+
return fe({ 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" } }] })(n);
|
|
1029
988
|
}
|
|
1030
|
-
const
|
|
1031
|
-
lspProps: { lastError:
|
|
989
|
+
const Xt = ({
|
|
990
|
+
lspProps: { lastError: n, reload: e }
|
|
1032
991
|
}) => {
|
|
1033
|
-
const [
|
|
992
|
+
const [t, i] = _(!1), o = () => {
|
|
1034
993
|
e();
|
|
1035
|
-
},
|
|
994
|
+
}, l = () => {
|
|
1036
995
|
i(!1);
|
|
1037
996
|
};
|
|
1038
|
-
return
|
|
1039
|
-
i(!!
|
|
1040
|
-
}, [
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */
|
|
1043
|
-
/* @__PURE__ */
|
|
997
|
+
return M(() => {
|
|
998
|
+
i(!!n);
|
|
999
|
+
}, [n]), t ? /* @__PURE__ */ J("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: [
|
|
1000
|
+
/* @__PURE__ */ J("span", { className: "flex flex-1 justify-center gap-1", children: [
|
|
1001
|
+
/* @__PURE__ */ w(jt, { className: "h-4 w-4 text-yellow-600" }),
|
|
1002
|
+
/* @__PURE__ */ J("span", { children: [
|
|
1044
1003
|
"LSP not loaded.",
|
|
1045
1004
|
" ",
|
|
1046
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ w(
|
|
1047
1006
|
"button",
|
|
1048
1007
|
{
|
|
1049
1008
|
className: "text-primary-dark underline",
|
|
@@ -1053,28 +1012,28 @@ const Bt = ({
|
|
|
1053
1012
|
)
|
|
1054
1013
|
] })
|
|
1055
1014
|
] }),
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
|
|
1015
|
+
/* @__PURE__ */ w("button", { className: "focus:outline-none", children: /* @__PURE__ */ w(
|
|
1016
|
+
Zt,
|
|
1058
1017
|
{
|
|
1059
1018
|
className: "h-4 w-4 text-white",
|
|
1060
|
-
onClick:
|
|
1019
|
+
onClick: l
|
|
1061
1020
|
}
|
|
1062
1021
|
) })
|
|
1063
1022
|
] }) : null;
|
|
1064
|
-
},
|
|
1065
|
-
provideCompletionItems: (
|
|
1066
|
-
const
|
|
1023
|
+
}, Et = {
|
|
1024
|
+
provideCompletionItems: (n, e) => {
|
|
1025
|
+
const t = n.getWordUntilPosition(e);
|
|
1067
1026
|
return {
|
|
1068
1027
|
suggestions: [
|
|
1069
1028
|
{
|
|
1070
1029
|
label: "device:xs",
|
|
1071
|
-
kind:
|
|
1030
|
+
kind: s.languages.CompletionItemKind.Snippet,
|
|
1072
1031
|
documentation: "Media query for phone device",
|
|
1073
|
-
range: new
|
|
1032
|
+
range: new s.Range(
|
|
1074
1033
|
e.lineNumber,
|
|
1075
|
-
|
|
1034
|
+
t.startColumn,
|
|
1076
1035
|
e.lineNumber,
|
|
1077
|
-
|
|
1036
|
+
t.endColumn
|
|
1078
1037
|
),
|
|
1079
1038
|
insertText: [
|
|
1080
1039
|
"@media screen and (max-width: ${1:365px}) {",
|
|
@@ -1084,12 +1043,12 @@ const Bt = ({
|
|
|
1084
1043
|
"}"
|
|
1085
1044
|
].join(`
|
|
1086
1045
|
`),
|
|
1087
|
-
insertTextRules:
|
|
1046
|
+
insertTextRules: s.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
1088
1047
|
}
|
|
1089
1048
|
]
|
|
1090
1049
|
};
|
|
1091
1050
|
}
|
|
1092
|
-
},
|
|
1051
|
+
}, Kt = "#/definitions/Condition", Bt = {
|
|
1093
1052
|
Base: {
|
|
1094
1053
|
type: "object",
|
|
1095
1054
|
properties: {
|
|
@@ -1357,10 +1316,10 @@ const Bt = ({
|
|
|
1357
1316
|
"ref"
|
|
1358
1317
|
]
|
|
1359
1318
|
}
|
|
1360
|
-
},
|
|
1361
|
-
$ref:
|
|
1362
|
-
definitions:
|
|
1363
|
-
},
|
|
1319
|
+
}, Tt = {
|
|
1320
|
+
$ref: Kt,
|
|
1321
|
+
definitions: Bt
|
|
1322
|
+
}, Ot = "array", Dt = {
|
|
1364
1323
|
type: "object",
|
|
1365
1324
|
properties: {
|
|
1366
1325
|
class: {
|
|
@@ -1376,114 +1335,114 @@ const Bt = ({
|
|
|
1376
1335
|
type: "string"
|
|
1377
1336
|
}
|
|
1378
1337
|
}
|
|
1379
|
-
},
|
|
1380
|
-
type:
|
|
1381
|
-
items:
|
|
1338
|
+
}, Gt = {
|
|
1339
|
+
type: Ot,
|
|
1340
|
+
items: Dt
|
|
1382
1341
|
};
|
|
1383
|
-
function
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1342
|
+
function Jt(n, e) {
|
|
1343
|
+
const t = document.createElement("style");
|
|
1344
|
+
t.dataset.id = e, t.textContent = n, document.head.append(t);
|
|
1386
1345
|
}
|
|
1387
|
-
function
|
|
1346
|
+
function Mt(n) {
|
|
1388
1347
|
return Array.from(document.styleSheets).find(
|
|
1389
|
-
(e) => e.ownerNode.getAttribute("data-id") ===
|
|
1348
|
+
(e) => e.ownerNode.getAttribute("data-id") === n
|
|
1390
1349
|
);
|
|
1391
1350
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const
|
|
1351
|
+
function Pt(n, e) {
|
|
1352
|
+
const t = [];
|
|
1394
1353
|
let i = [];
|
|
1395
|
-
const o = [],
|
|
1396
|
-
|
|
1397
|
-
startLineNumber:
|
|
1398
|
-
endLineNumber:
|
|
1354
|
+
const o = [], l = (a, u, v, L) => {
|
|
1355
|
+
t.push({
|
|
1356
|
+
startLineNumber: a,
|
|
1357
|
+
endLineNumber: v,
|
|
1399
1358
|
startColumn: u,
|
|
1400
|
-
endColumn:
|
|
1401
|
-
}),
|
|
1402
|
-
},
|
|
1403
|
-
o.indexOf(
|
|
1404
|
-
},
|
|
1405
|
-
const u = o.indexOf(
|
|
1359
|
+
endColumn: L
|
|
1360
|
+
}), S(), C();
|
|
1361
|
+
}, r = (a) => {
|
|
1362
|
+
o.indexOf(a) < 0 && o.push(a);
|
|
1363
|
+
}, I = (a) => {
|
|
1364
|
+
const u = o.indexOf(a);
|
|
1406
1365
|
u < 0 || o.splice(u, 1);
|
|
1407
|
-
},
|
|
1408
|
-
for (const
|
|
1366
|
+
}, C = () => {
|
|
1367
|
+
for (const a of o)
|
|
1409
1368
|
try {
|
|
1410
|
-
|
|
1369
|
+
a(i);
|
|
1411
1370
|
} catch (u) {
|
|
1412
1371
|
console.error(u);
|
|
1413
1372
|
}
|
|
1414
|
-
},
|
|
1415
|
-
const
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1373
|
+
}, S = () => {
|
|
1374
|
+
const a = n.getModel();
|
|
1375
|
+
a && (i = Yt(
|
|
1376
|
+
t.map((u) => [
|
|
1377
|
+
a.getOffsetAt({
|
|
1419
1378
|
lineNumber: u.startLineNumber,
|
|
1420
1379
|
column: u.startColumn
|
|
1421
1380
|
}),
|
|
1422
|
-
|
|
1381
|
+
a.getOffsetAt({
|
|
1423
1382
|
lineNumber: u.endLineNumber,
|
|
1424
1383
|
column: u.endColumn
|
|
1425
1384
|
})
|
|
1426
1385
|
]),
|
|
1427
1386
|
/*mergeJoins*/
|
|
1428
1387
|
!0
|
|
1429
|
-
), i.length > 0 && (i[0][0] <= 0 && (i[0][0] = Number.NEGATIVE_INFINITY), i[i.length - 1][1] >=
|
|
1430
|
-
},
|
|
1388
|
+
), i.length > 0 && (i[0][0] <= 0 && (i[0][0] = Number.NEGATIVE_INFINITY), i[i.length - 1][1] >= a.getValueLength() && (i[i.length - 1][1] = Number.POSITIVE_INFINITY)));
|
|
1389
|
+
}, y = (a) => {
|
|
1431
1390
|
const u = {
|
|
1432
1391
|
isDeletion: !1,
|
|
1433
1392
|
isAddition: !1,
|
|
1434
1393
|
isReplacement: !1
|
|
1435
1394
|
};
|
|
1436
|
-
return
|
|
1437
|
-
},
|
|
1438
|
-
|
|
1439
|
-
}), m =
|
|
1440
|
-
if (!
|
|
1441
|
-
for (const u of
|
|
1442
|
-
const
|
|
1443
|
-
if (
|
|
1444
|
-
const
|
|
1445
|
-
(
|
|
1446
|
-
),
|
|
1447
|
-
if (
|
|
1448
|
-
const
|
|
1449
|
-
if (
|
|
1450
|
-
|
|
1395
|
+
return a.text === "" ? u.isDeletion = !0 : a.range.startLineNumber === a.range.endLineNumber && a.range.startColumn === a.range.endColumn ? u.isAddition = !0 : u.isReplacement = !0, u;
|
|
1396
|
+
}, p = n.onDidChangeModel((a) => {
|
|
1397
|
+
S(), k();
|
|
1398
|
+
}), m = n.onDidChangeModelContent((a) => {
|
|
1399
|
+
if (!a.isUndoing)
|
|
1400
|
+
for (const u of a.changes) {
|
|
1401
|
+
const v = y(u);
|
|
1402
|
+
if (v.isReplacement || v.isDeletion || v.isAddition) {
|
|
1403
|
+
const L = t.some(
|
|
1404
|
+
(b) => u.range.startLineNumber >= b.startLineNumber && u.range.endLineNumber <= b.endLineNumber && u.range.startColumn >= b.startColumn && u.range.endColumn <= b.endColumn
|
|
1405
|
+
), K = !L && e && u.range.startLineNumber === 1 && u.range.startColumn === 1 && !le(u.text);
|
|
1406
|
+
if (L || K) {
|
|
1407
|
+
const b = n.getModel();
|
|
1408
|
+
if (b) {
|
|
1409
|
+
b.undo();
|
|
1451
1410
|
return;
|
|
1452
1411
|
}
|
|
1453
1412
|
}
|
|
1454
1413
|
}
|
|
1455
1414
|
}
|
|
1456
1415
|
}), N = () => {
|
|
1457
|
-
|
|
1416
|
+
p.dispose(), m.dispose();
|
|
1458
1417
|
};
|
|
1459
|
-
let x = [],
|
|
1418
|
+
let x = [], h = `
|
|
1460
1419
|
.idoc-readonly-mark {
|
|
1461
1420
|
cursor: not-allowed;
|
|
1462
1421
|
z-index: 1;
|
|
1463
1422
|
}
|
|
1464
1423
|
`;
|
|
1465
|
-
if (
|
|
1466
|
-
const
|
|
1467
|
-
|
|
1424
|
+
if (h) {
|
|
1425
|
+
const a = "monaco-read-only";
|
|
1426
|
+
Mt(a) || Jt(h, a), h = null;
|
|
1468
1427
|
}
|
|
1469
|
-
const
|
|
1470
|
-
|
|
1428
|
+
const R = () => {
|
|
1429
|
+
r(k), k();
|
|
1471
1430
|
}, f = () => {
|
|
1472
|
-
|
|
1431
|
+
I(k), x = n.deltaDecorations(x, []);
|
|
1473
1432
|
}, k = () => {
|
|
1474
|
-
const
|
|
1475
|
-
|
|
1433
|
+
const a = n.getModel();
|
|
1434
|
+
a && (x = n.deltaDecorations(
|
|
1476
1435
|
x,
|
|
1477
|
-
i.map(
|
|
1436
|
+
i.map(A(a))
|
|
1478
1437
|
));
|
|
1479
|
-
},
|
|
1480
|
-
const
|
|
1438
|
+
}, A = (a) => (u) => {
|
|
1439
|
+
const v = a.getPositionAt(u[0]), L = a.getPositionAt(u[1]);
|
|
1481
1440
|
return {
|
|
1482
|
-
range: new
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1441
|
+
range: new s.Range(
|
|
1442
|
+
v.lineNumber,
|
|
1443
|
+
v.column,
|
|
1444
|
+
L.lineNumber,
|
|
1445
|
+
L.column
|
|
1487
1446
|
),
|
|
1488
1447
|
options: {
|
|
1489
1448
|
className: "idoc-readonly-mark"
|
|
@@ -1494,93 +1453,117 @@ function zt(t, e) {
|
|
|
1494
1453
|
get buffer() {
|
|
1495
1454
|
return i;
|
|
1496
1455
|
},
|
|
1497
|
-
exclude:
|
|
1498
|
-
attach:
|
|
1499
|
-
detach:
|
|
1456
|
+
exclude: l,
|
|
1457
|
+
attach: r,
|
|
1458
|
+
detach: I,
|
|
1500
1459
|
dispose: N,
|
|
1501
|
-
show:
|
|
1460
|
+
show: R,
|
|
1502
1461
|
hide: f
|
|
1503
1462
|
};
|
|
1504
1463
|
}
|
|
1505
|
-
function
|
|
1464
|
+
function Vt(n, e, t) {
|
|
1506
1465
|
let i = !1;
|
|
1507
|
-
const o = (f) => f[1] < f[0] ? (i = !0, [[f[1], f[0]]]) : [[...f]],
|
|
1508
|
-
let
|
|
1509
|
-
const
|
|
1510
|
-
let
|
|
1511
|
-
|
|
1512
|
-
for (
|
|
1513
|
-
for (
|
|
1514
|
-
if (
|
|
1515
|
-
x <
|
|
1516
|
-
[N,
|
|
1517
|
-
[
|
|
1466
|
+
const o = (f) => f[1] < f[0] ? (i = !0, [[f[1], f[0]]]) : [[...f]], l = (f) => i ? f.map((k) => k[1] > k[0] ? I(k) : k).reverse() : f;
|
|
1467
|
+
let r;
|
|
1468
|
+
const I = (f) => (r = f[1], f[1] = f[0], f[0] = r, f), C = o(n);
|
|
1469
|
+
let S, y, p, m, N, x, h, R;
|
|
1470
|
+
p = C[0];
|
|
1471
|
+
for (y of e)
|
|
1472
|
+
for (h = y[0], R = y[1], m = 0; m < C.length; m++) {
|
|
1473
|
+
if (p = C[m], N = p[0], x = p[1], N < h)
|
|
1474
|
+
x < h ? S = [p] : x <= R ? S = [[N, h - 1]] : S = [
|
|
1475
|
+
[N, h - 1],
|
|
1476
|
+
[R + 1, x]
|
|
1518
1477
|
];
|
|
1519
|
-
else if (N <=
|
|
1520
|
-
if (
|
|
1521
|
-
const f =
|
|
1522
|
-
|
|
1523
|
-
} else
|
|
1478
|
+
else if (N <= R)
|
|
1479
|
+
if (h === Number.NEGATIVE_INFINITY) {
|
|
1480
|
+
const f = R + 1;
|
|
1481
|
+
S = t === 0 ? [] : [[f, x > f ? x : f]];
|
|
1482
|
+
} else
|
|
1483
|
+
R === Number.POSITIVE_INFINITY ? S = t === 0 ? [] : [[h - 1, h - 1]] : x <= R ? S = t < 0 ? [[h - 1, h - 1]] : t > 0 ? [[R + 1, R + 1]] : [] : S = [[R + 1, x]];
|
|
1524
1484
|
else
|
|
1525
|
-
|
|
1526
|
-
if (
|
|
1485
|
+
S = [p];
|
|
1486
|
+
if (C.splice(m, 1, ...S), C.length === 1 && C[0][1] < h)
|
|
1487
|
+
return l(C);
|
|
1527
1488
|
}
|
|
1528
|
-
return
|
|
1489
|
+
return l(C);
|
|
1529
1490
|
}
|
|
1530
|
-
function
|
|
1531
|
-
if (
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1491
|
+
function Yt(n, e) {
|
|
1492
|
+
if (n.length < 2)
|
|
1493
|
+
return n;
|
|
1494
|
+
const t = [];
|
|
1495
|
+
let i = null, o, l;
|
|
1496
|
+
n = n.map(
|
|
1497
|
+
(r) => (r[1] < r[0] && (o = r[1], r[1] = r[0], r[1] = o), r)
|
|
1498
|
+
).sort((r, I) => r[0] - I[0]), t.push(n[0]);
|
|
1499
|
+
for (let r = 1; r < n.length; r++)
|
|
1500
|
+
i = t[t.length - 1], l = n[r], i[1] === l[0] && !e ? t.push(l) : i[1] === l[0] - 1 && e ? (i[1] = l[1], t.splice(t.length - 1, 1, i)) : i[1] < l[0] ? t.push(l) : i[1] < l[1] && (i[1] = l[1], t.splice(t.length - 1, 1, i));
|
|
1501
|
+
return t;
|
|
1540
1502
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return e.bind(
|
|
1503
|
+
function H(n, e) {
|
|
1504
|
+
return e.bind(n);
|
|
1543
1505
|
}
|
|
1544
|
-
class
|
|
1545
|
-
constructor(e,
|
|
1546
|
-
|
|
1547
|
-
this
|
|
1506
|
+
class Ht {
|
|
1507
|
+
constructor(e, t) {
|
|
1508
|
+
F(this, "editor");
|
|
1509
|
+
F(this, "intervals");
|
|
1510
|
+
F(this, "disposables", []);
|
|
1511
|
+
/**
|
|
1512
|
+
* Flag for `excludeIntervals`
|
|
1513
|
+
*/
|
|
1514
|
+
F(this, "prefer", 1);
|
|
1515
|
+
F(this, "lastPrefer", 1);
|
|
1516
|
+
/**
|
|
1517
|
+
* Linked to ICodeEditor.onDidChangeCursorPosition event.
|
|
1518
|
+
*/
|
|
1519
|
+
F(this, "onCursor", H(
|
|
1548
1520
|
this,
|
|
1549
|
-
function(
|
|
1550
|
-
if (
|
|
1551
|
-
|
|
1552
|
-
|
|
1521
|
+
function(e) {
|
|
1522
|
+
if (e.source === "api")
|
|
1523
|
+
return;
|
|
1524
|
+
const t = this.getApprovedSelections();
|
|
1525
|
+
t.length !== 0 && this.editor.setSelections(t);
|
|
1553
1526
|
}
|
|
1554
|
-
)
|
|
1555
|
-
|
|
1556
|
-
|
|
1527
|
+
));
|
|
1528
|
+
F(this, "onRectangleSelectionStart", H(this, function({ event: e }) {
|
|
1529
|
+
e.middleButton && (this.lastPrefer = this.prefer, this.prefer = 0, window.addEventListener("pointerup", this.onRectangleSelectionStop));
|
|
1530
|
+
}));
|
|
1531
|
+
F(this, "onRectangleSelectionStop", H(this, function() {
|
|
1557
1532
|
this.prefer = this.lastPrefer, window.removeEventListener("pointerup", this.onRectangleSelectionStop);
|
|
1558
|
-
})
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1533
|
+
}));
|
|
1534
|
+
/**
|
|
1535
|
+
* Linked to ICodeEditor.onKeyDown event.
|
|
1536
|
+
*/
|
|
1537
|
+
F(this, "onKey", H(this, function(e) {
|
|
1538
|
+
const t = e.keyCode, i = s.KeyCode;
|
|
1539
|
+
if (e.altKey || i.F1 <= t && t <= i.F19 || e.ctrlKey && t !== i.Backspace)
|
|
1540
|
+
return;
|
|
1541
|
+
if (t === i.UpArrow || t === i.LeftArrow || t === i.Home || t === i.PageUp) {
|
|
1562
1542
|
this.prefer = -1;
|
|
1563
1543
|
return;
|
|
1564
1544
|
}
|
|
1565
|
-
if (
|
|
1545
|
+
if (t === i.DownArrow || t === i.RightArrow || t === i.End || t === i.PageDown) {
|
|
1566
1546
|
this.prefer = 1;
|
|
1567
1547
|
return;
|
|
1568
1548
|
}
|
|
1569
|
-
const
|
|
1570
|
-
let
|
|
1571
|
-
if (
|
|
1572
|
-
|
|
1573
|
-
else if (
|
|
1574
|
-
|
|
1549
|
+
const o = this.getSelections(), l = this.intervals.buffer;
|
|
1550
|
+
let r;
|
|
1551
|
+
if (t === i.Delete)
|
|
1552
|
+
r = (I) => I[0] === I[1] && l.find((C) => I[1] + 1 === C[0]) != null;
|
|
1553
|
+
else if (t === i.Backspace)
|
|
1554
|
+
r = (I) => I[0] === I[1] && l.find((C) => C[1] + 1 === I[0]) != null;
|
|
1575
1555
|
else
|
|
1576
1556
|
return;
|
|
1577
|
-
|
|
1578
|
-
})
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1557
|
+
o.findIndex(r) !== -1 && (e.stopPropagation(), e.preventDefault());
|
|
1558
|
+
}));
|
|
1559
|
+
F(this, "getOffsetAt", H(this, function(e) {
|
|
1560
|
+
let t;
|
|
1561
|
+
for (let i = 0; i < this.intervals.buffer.length; i++)
|
|
1562
|
+
if (t = this.intervals.buffer[i], e <= t[1])
|
|
1563
|
+
return t[0] - e < e - t[1] ? t[0] : t[1];
|
|
1564
|
+
}));
|
|
1565
|
+
var i;
|
|
1566
|
+
this.editor = e, this.intervals = Pt(e, t), (i = this.editor.getModel()) == null || i.setEOL(s.editor.EndOfLineSequence.LF);
|
|
1584
1567
|
}
|
|
1585
1568
|
enable() {
|
|
1586
1569
|
this.disposables.push(
|
|
@@ -1590,144 +1573,147 @@ class Ut {
|
|
|
1590
1573
|
), this.intervals.show();
|
|
1591
1574
|
}
|
|
1592
1575
|
dispose() {
|
|
1593
|
-
for (const e of this.disposables)
|
|
1576
|
+
for (const e of this.disposables)
|
|
1577
|
+
e.dispose();
|
|
1594
1578
|
this.disposables.splice(0);
|
|
1595
1579
|
}
|
|
1596
|
-
exclude(e,
|
|
1597
|
-
arguments.length === 1 ? this.intervals.exclude(e, 0, e, Number.MAX_SAFE_INTEGER) : this.intervals.exclude(e,
|
|
1580
|
+
exclude(e, t, i, o) {
|
|
1581
|
+
arguments.length === 1 ? this.intervals.exclude(e, 0, e, Number.MAX_SAFE_INTEGER) : this.intervals.exclude(e, t, i, o);
|
|
1598
1582
|
}
|
|
1599
1583
|
getApprovedSelections() {
|
|
1600
1584
|
const e = this.editor.getModel();
|
|
1601
1585
|
return this.getSelections().map(
|
|
1602
|
-
(i) =>
|
|
1586
|
+
(i) => Vt(
|
|
1603
1587
|
i,
|
|
1604
1588
|
this.intervals.buffer,
|
|
1605
1589
|
this.prefer
|
|
1606
1590
|
)
|
|
1607
1591
|
).flat().map((i) => {
|
|
1608
|
-
const o = e.getPositionAt(i[0]),
|
|
1609
|
-
return new
|
|
1592
|
+
const o = e.getPositionAt(i[0]), l = e.getPositionAt(i[1]);
|
|
1593
|
+
return new s.Selection(
|
|
1610
1594
|
o.lineNumber,
|
|
1611
1595
|
o.column,
|
|
1612
|
-
|
|
1613
|
-
|
|
1596
|
+
l.lineNumber,
|
|
1597
|
+
l.column
|
|
1614
1598
|
);
|
|
1615
1599
|
});
|
|
1616
1600
|
}
|
|
1617
1601
|
getSelections() {
|
|
1618
1602
|
const e = this.editor.getModel();
|
|
1619
|
-
return (this.editor.getSelections() || []).map((
|
|
1603
|
+
return (this.editor.getSelections() || []).map((t) => [
|
|
1620
1604
|
e.getOffsetAt({
|
|
1621
|
-
lineNumber:
|
|
1622
|
-
column:
|
|
1605
|
+
lineNumber: t.selectionStartLineNumber,
|
|
1606
|
+
column: t.selectionStartColumn
|
|
1623
1607
|
}),
|
|
1624
1608
|
e.getOffsetAt({
|
|
1625
|
-
lineNumber:
|
|
1626
|
-
column:
|
|
1609
|
+
lineNumber: t.positionLineNumber,
|
|
1610
|
+
column: t.positionColumn
|
|
1627
1611
|
})
|
|
1628
1612
|
]);
|
|
1629
1613
|
}
|
|
1630
1614
|
}
|
|
1631
|
-
const
|
|
1632
|
-
/* @__PURE__ */
|
|
1633
|
-
/* @__PURE__ */
|
|
1634
|
-
/* @__PURE__ */
|
|
1635
|
-
/* @__PURE__ */
|
|
1636
|
-
/* @__PURE__ */
|
|
1637
|
-
] }) }) }), Q = ["fd-dark"],
|
|
1638
|
-
path:
|
|
1615
|
+
const zt = new RegExp("^[ s]+(exposed|Function)", "i"), oe = () => /* @__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__ */ J("div", { className: "space-y-2", children: [
|
|
1616
|
+
/* @__PURE__ */ w("div", { className: "h-3 w-3/4 rounded bg-grey-200" }),
|
|
1617
|
+
/* @__PURE__ */ w("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1618
|
+
/* @__PURE__ */ w("div", { className: "h-3 w-5/6 rounded bg-grey-200" }),
|
|
1619
|
+
/* @__PURE__ */ w("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1620
|
+
/* @__PURE__ */ w("div", { className: "h-3 rounded bg-grey-200" })
|
|
1621
|
+
] }) }) }), Q = ["fd-dark"], Fn = ({
|
|
1622
|
+
path: n,
|
|
1639
1623
|
initialValue: e,
|
|
1640
|
-
type:
|
|
1624
|
+
type: t,
|
|
1641
1625
|
language: i,
|
|
1642
1626
|
onChange: o,
|
|
1643
|
-
options:
|
|
1644
|
-
extra:
|
|
1645
|
-
showAlerts:
|
|
1646
|
-
lspProps:
|
|
1647
|
-
theme:
|
|
1648
|
-
...
|
|
1627
|
+
options: l = {},
|
|
1628
|
+
extra: r = {},
|
|
1629
|
+
showAlerts: I = !1,
|
|
1630
|
+
lspProps: C,
|
|
1631
|
+
theme: S = Q[0],
|
|
1632
|
+
...y
|
|
1649
1633
|
}) => {
|
|
1650
|
-
const { initialLineInfo:
|
|
1651
|
-
function
|
|
1652
|
-
i === "css" &&
|
|
1634
|
+
const { initialLineInfo: p, initialSelectionInfo: m } = r, { editor: N, setEditor: x } = Lt(), { inited: h } = C;
|
|
1635
|
+
function R(A) {
|
|
1636
|
+
i === "css" && A.languages.registerCompletionItemProvider("css", Et), i === "json" && A.languages.json && A.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
1653
1637
|
validate: !0,
|
|
1654
1638
|
schemas: [
|
|
1655
1639
|
{
|
|
1656
1640
|
uri: "condition-schema.json",
|
|
1657
1641
|
fileMatch: ["*.condition.json"],
|
|
1658
|
-
schema:
|
|
1642
|
+
schema: Tt
|
|
1659
1643
|
},
|
|
1660
1644
|
{
|
|
1661
1645
|
uri: "handlers-schema.json",
|
|
1662
1646
|
fileMatch: [We],
|
|
1663
|
-
schema:
|
|
1647
|
+
schema: Gt
|
|
1664
1648
|
}
|
|
1665
1649
|
]
|
|
1666
1650
|
});
|
|
1667
1651
|
}
|
|
1668
|
-
function f(
|
|
1669
|
-
x(
|
|
1670
|
-
const u =
|
|
1671
|
-
if (u && (u.updateOptions({ insertSpaces: !1 }),
|
|
1672
|
-
var
|
|
1673
|
-
const
|
|
1674
|
-
if (
|
|
1675
|
-
const
|
|
1676
|
-
|
|
1652
|
+
function f(A, a) {
|
|
1653
|
+
x(A);
|
|
1654
|
+
const u = A.getModel();
|
|
1655
|
+
if (u && (u.updateOptions({ insertSpaces: !1 }), A.onKeyUp(() => {
|
|
1656
|
+
var L;
|
|
1657
|
+
const v = (L = A.getPosition()) == null ? void 0 : L.lineNumber;
|
|
1658
|
+
if (v) {
|
|
1659
|
+
const K = u.getLineFirstNonWhitespaceColumn(v), b = u.getLineLength(v), B = u.getLineContent(v);
|
|
1660
|
+
zt.test(B) && A.executeEdits("edit-handler", [
|
|
1677
1661
|
{
|
|
1678
|
-
range: new
|
|
1679
|
-
|
|
1662
|
+
range: new a.Range(
|
|
1663
|
+
v,
|
|
1680
1664
|
0,
|
|
1681
|
-
|
|
1682
|
-
|
|
1665
|
+
v,
|
|
1666
|
+
b
|
|
1683
1667
|
),
|
|
1684
|
-
text:
|
|
1685
|
-
|
|
1686
|
-
|
|
1668
|
+
text: B.substr(
|
|
1669
|
+
K - 1,
|
|
1670
|
+
b - K
|
|
1687
1671
|
)
|
|
1688
1672
|
}
|
|
1689
1673
|
]);
|
|
1690
1674
|
}
|
|
1691
|
-
})),
|
|
1692
|
-
const
|
|
1693
|
-
|
|
1675
|
+
})), t === Fe.METHOD && le(e)) {
|
|
1676
|
+
const v = new Ht(A, !0);
|
|
1677
|
+
v.exclude(1, 1, 1, Number.POSITIVE_INFINITY), v.enable();
|
|
1694
1678
|
}
|
|
1695
1679
|
}
|
|
1696
|
-
|
|
1697
|
-
if (!N)
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1680
|
+
M(() => {
|
|
1681
|
+
if (!N)
|
|
1682
|
+
return;
|
|
1683
|
+
const { line: A, offset: a } = p || {};
|
|
1684
|
+
A && ht(N, A, a);
|
|
1685
|
+
}, [p, N]), M(() => {
|
|
1686
|
+
if (!N)
|
|
1687
|
+
return;
|
|
1688
|
+
const { selection: A } = m || {};
|
|
1689
|
+
A && bt(N, A);
|
|
1704
1690
|
}, [m, N]);
|
|
1705
|
-
const k = (
|
|
1706
|
-
return
|
|
1707
|
-
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
|
|
1691
|
+
const k = (A) => Q.includes(A) ? A : Q[0];
|
|
1692
|
+
return h ? /* @__PURE__ */ J(Ne, { children: [
|
|
1693
|
+
I ? /* @__PURE__ */ w(Xt, { lspProps: C }) : null,
|
|
1694
|
+
/* @__PURE__ */ w(
|
|
1695
|
+
ke,
|
|
1710
1696
|
{
|
|
1711
1697
|
options: {
|
|
1712
1698
|
readOnly: !0,
|
|
1713
1699
|
fontSize: 12,
|
|
1714
1700
|
"semanticHighlighting.enabled": !0,
|
|
1715
1701
|
padding: { top: 10 },
|
|
1716
|
-
...
|
|
1702
|
+
...l
|
|
1717
1703
|
},
|
|
1718
|
-
path: j(
|
|
1704
|
+
path: j(n),
|
|
1719
1705
|
value: e,
|
|
1720
|
-
theme: k(
|
|
1721
|
-
onChange: (
|
|
1706
|
+
theme: k(S),
|
|
1707
|
+
onChange: (A) => o && o(A || ""),
|
|
1722
1708
|
language: i,
|
|
1723
|
-
beforeMount:
|
|
1709
|
+
beforeMount: R,
|
|
1724
1710
|
onMount: f,
|
|
1725
|
-
loading: /* @__PURE__ */
|
|
1726
|
-
...
|
|
1711
|
+
loading: /* @__PURE__ */ w(oe, {}),
|
|
1712
|
+
...y
|
|
1727
1713
|
}
|
|
1728
1714
|
)
|
|
1729
|
-
] }) : /* @__PURE__ */
|
|
1730
|
-
},
|
|
1715
|
+
] }) : /* @__PURE__ */ w(oe, {});
|
|
1716
|
+
}, _t = {
|
|
1731
1717
|
name: "4d",
|
|
1732
1718
|
displayName: "%displayName%",
|
|
1733
1719
|
description: "%description%",
|
|
@@ -1752,43 +1738,43 @@ const qt = new RegExp("^[ s]+(exposed|Function)", "i"), re = () => /* @__PURE__
|
|
|
1752
1738
|
}
|
|
1753
1739
|
]
|
|
1754
1740
|
}
|
|
1755
|
-
}, { registerFileUrl:
|
|
1741
|
+
}, { registerFileUrl: $, whenReady: Zn } = ct(_t, void 0, {
|
|
1756
1742
|
system: !0
|
|
1757
1743
|
});
|
|
1758
|
-
|
|
1744
|
+
$(
|
|
1759
1745
|
"./syntaxes/4d.tmLanguage.json",
|
|
1760
|
-
new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=",
|
|
1746
|
+
new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=", self.location).toString(),
|
|
1761
1747
|
{ mimeType: "application/json", size: 1592 }
|
|
1762
1748
|
);
|
|
1763
|
-
|
|
1749
|
+
$(
|
|
1764
1750
|
"./language-configuration.json",
|
|
1765
|
-
new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==",
|
|
1751
|
+
new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==", self.location).toString(),
|
|
1766
1752
|
{ mimeType: "application/json", size: 1723 }
|
|
1767
1753
|
);
|
|
1768
|
-
|
|
1754
|
+
$(
|
|
1769
1755
|
"package.json",
|
|
1770
|
-
new URL("data:application/json;base64,ewogICJuYW1lIjogIjRkIiwKICAiZGlzcGxheU5hbWUiOiAiJWRpc3BsYXlOYW1lJSIsCiAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICJ2ZXJzaW9uIjogIjEuMC4wIiwKICAicHVibGlzaGVyIjogInZzY29kZSIsCiAgImxpY2Vuc2UiOiAiTUlUIiwKICAiZW5naW5lcyI6IHsKICAgICJ2c2NvZGUiOiAiMC4xMC54IgogIH0sCiAgInNjcmlwdHMiOiB7CiAgICAidXBkYXRlLWdyYW1tYXIiOiAibm9kZSAuLi9ub2RlX21vZHVsZXMvdnNjb2RlLWdyYW1tYXItdXBkYXRlci9iaW4gbWljcm9zb2Z0L3ZzY29kZS00ZCBncmFtbWFycy80ZC5jc29uIC4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogIH0sCiAgImNhdGVnb3JpZXMiOiBbCiAgICAiUHJvZ3JhbW1pbmcgTGFuZ3VhZ2VzIgogIF0sCiAgImNvbnRyaWJ1dGVzIjogewogICAgImxhbmd1YWdlcyI6IFsKICAgICAgewogICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgImFsaWFzZXMiOiBbCiAgICAgICAgICAiNEQiLAogICAgICAgICAgIjRkIgogICAgICAgIF0sCiAgICAgICAgImV4dGVuc2lvbnMiOiBbCiAgICAgICAgICAiLjRkbSIsCiAgICAgICAgICAiLjRxcyIKICAgICAgICBdLAogICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICB9CiAgICBdLAogICAgImdyYW1tYXJzIjogWwogICAgICB7CiAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICB9CiAgICBdCiAgfSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJ0eXBlIjogImdpdCIsCiAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICB9Cn0K",
|
|
1756
|
+
new URL("data:application/json;base64,ewogICJuYW1lIjogIjRkIiwKICAiZGlzcGxheU5hbWUiOiAiJWRpc3BsYXlOYW1lJSIsCiAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICJ2ZXJzaW9uIjogIjEuMC4wIiwKICAicHVibGlzaGVyIjogInZzY29kZSIsCiAgImxpY2Vuc2UiOiAiTUlUIiwKICAiZW5naW5lcyI6IHsKICAgICJ2c2NvZGUiOiAiMC4xMC54IgogIH0sCiAgInNjcmlwdHMiOiB7CiAgICAidXBkYXRlLWdyYW1tYXIiOiAibm9kZSAuLi9ub2RlX21vZHVsZXMvdnNjb2RlLWdyYW1tYXItdXBkYXRlci9iaW4gbWljcm9zb2Z0L3ZzY29kZS00ZCBncmFtbWFycy80ZC5jc29uIC4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogIH0sCiAgImNhdGVnb3JpZXMiOiBbCiAgICAiUHJvZ3JhbW1pbmcgTGFuZ3VhZ2VzIgogIF0sCiAgImNvbnRyaWJ1dGVzIjogewogICAgImxhbmd1YWdlcyI6IFsKICAgICAgewogICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgImFsaWFzZXMiOiBbCiAgICAgICAgICAiNEQiLAogICAgICAgICAgIjRkIgogICAgICAgIF0sCiAgICAgICAgImV4dGVuc2lvbnMiOiBbCiAgICAgICAgICAiLjRkbSIsCiAgICAgICAgICAiLjRxcyIKICAgICAgICBdLAogICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICB9CiAgICBdLAogICAgImdyYW1tYXJzIjogWwogICAgICB7CiAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICB9CiAgICBdCiAgfSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJ0eXBlIjogImdpdCIsCiAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICB9Cn0K", self.location).toString(),
|
|
1771
1757
|
{ mimeType: "application/json", size: 1006 }
|
|
1772
1758
|
);
|
|
1773
|
-
|
|
1759
|
+
$(
|
|
1774
1760
|
"package.nls.json",
|
|
1775
|
-
new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K",
|
|
1761
|
+
new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K", self.location).toString(),
|
|
1776
1762
|
{ mimeType: "application/json", size: 135 }
|
|
1777
1763
|
);
|
|
1778
1764
|
export {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1765
|
+
Xt as Alerts,
|
|
1766
|
+
Fn as CodeEditor,
|
|
1767
|
+
Wn as CodeEditorProvider,
|
|
1768
|
+
kn as LSPProvider,
|
|
1783
1769
|
Q as SUPPORTED_THEMES,
|
|
1784
|
-
|
|
1785
|
-
|
|
1770
|
+
ge as _await,
|
|
1771
|
+
ft as configureServices,
|
|
1786
1772
|
j as getFileSystemPath,
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1773
|
+
wn as getFunctionOffset,
|
|
1774
|
+
mt as initMonacoUserConfiguration,
|
|
1775
|
+
ht as jumpToLine,
|
|
1776
|
+
bt as jumpToSelection,
|
|
1777
|
+
Lt as useCodeEditor,
|
|
1778
|
+
Ln as useLSP
|
|
1793
1779
|
};
|
|
1794
1780
|
//# sourceMappingURL=index.es.js.map
|