@ws-ui/code-editor 0.2.6 → 0.2.8
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 +0 -0
- package/dist/demo/LSPDemo.d.ts +0 -0
- package/dist/demo/common.d.ts +0 -0
- package/dist/demo/index.d.ts +0 -0
- package/dist/editor/Alerts.d.ts +0 -0
- package/dist/editor/extensions/4d-language-extension/index.d.ts +0 -0
- package/dist/editor/extensions/theme-defaults-extension/index.d.ts +0 -0
- package/dist/editor/extensions/theme-defaults-extension/types.d.ts +0 -0
- package/dist/editor/extensions/types.d.ts +0 -0
- package/dist/editor/index.d.ts +0 -0
- package/dist/editor/keybindings.d.ts +0 -0
- package/dist/editor/languages/index.d.ts +0 -0
- package/dist/editor/languages/utils.d.ts +0 -0
- package/dist/editor/loader/index.d.ts +0 -0
- package/dist/editor/loader/monaco-workers.d.ts +0 -0
- package/dist/editor/plugins/index.d.ts +0 -0
- package/dist/editor/plugins/readonly/dom.d.ts +0 -0
- package/dist/editor/plugins/readonly/index.d.ts +0 -0
- package/dist/editor/plugins/readonly/intervals.d.ts +0 -0
- package/dist/editor/plugins/readonly/types.d.ts +0 -0
- package/dist/editor/providers/CodeEditorProvider.d.ts +0 -0
- package/dist/editor/providers/LSPProvider/WebSocketMessageReader.d.ts +0 -0
- package/dist/editor/providers/LSPProvider/WebSocketMessageWriter.d.ts +0 -0
- package/dist/editor/providers/LSPProvider/ZoomInit.d.ts +0 -0
- package/dist/editor/providers/LSPProvider/index.d.ts +3 -0
- package/dist/editor/providers/index.d.ts +0 -0
- package/dist/editor/schemas/condition.schema.json.d.ts +0 -0
- package/dist/editor/semanticTokens.d.ts +32 -0
- package/dist/editor/services/configuration-service-override.d.ts +0 -0
- package/dist/editor/services/editor-service-override.d.ts +0 -0
- package/dist/editor/services/index.d.ts +0 -0
- package/dist/editor/services/model-service-override.d.ts +0 -0
- package/dist/editor/services/theme-service-override.d.ts +0 -0
- package/dist/editor/snippets/4d.d.ts +0 -0
- package/dist/editor/snippets/css.d.ts +0 -0
- package/dist/editor/snippets/qodly.d.ts +0 -0
- package/dist/editor/utils.d.ts +0 -0
- package/dist/index.cjs.js +19 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.es.js +696 -622
- package/dist/index.es.js.map +1 -1
- package/dist/main.d.ts +0 -0
- package/dist/monaco_theme.json +0 -0
- package/dist/studio/assets/css.worker.bundle.js +0 -0
- package/dist/studio/assets/editor.worker.bundle.js +0 -0
- package/dist/studio/assets/html.worker.bundle.js +0 -0
- package/dist/studio/assets/json.worker.bundle.js +0 -0
- package/dist/studio/assets/textmate.worker.bundle.js +0 -0
- package/dist/studio/assets/ts.worker.bundle.js +0 -0
- package/dist/style.css +1 -1
- package/dist/vite.svg +0 -0
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
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
|
|
1
|
+
var Ce = Object.defineProperty;
|
|
2
|
+
var me = (t, n, e) => n in t ? Ce(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
|
+
var F = (t, n, e) => (me(t, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
+
import { jsxs as J, jsx as R, Fragment as fe } from "react/jsx-runtime";
|
|
5
|
+
import T, { useEffect as D, createContext as ne, useState as M, useRef as q, useContext as te, memo as Ae } from "react";
|
|
6
|
+
import { loader as pe, useMonaco as be, Editor as he } from "@monaco-editor/react";
|
|
7
|
+
import { lspSubject as ve, LspActions as X, hasAttributesString as ie, FileFolderType as Se } from "@ws-ui/shared";
|
|
8
|
+
import { MonacoLanguageClient as ye } from "monaco-languageclient";
|
|
9
|
+
import { mergeServices as Ne, initServices as we } from "monaco-languageclient/vscode/services";
|
|
10
|
+
import Re, { initUserConfiguration as xe } from "@codingame/monaco-vscode-configuration-service-override";
|
|
11
|
+
import Le from "@codingame/monaco-vscode-languages-service-override";
|
|
12
|
+
import We from "@codingame/monaco-vscode-textmate-service-override";
|
|
13
13
|
import "@codingame/monaco-vscode-theme-defaults-default-extension";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import * as
|
|
17
|
-
import { Selection as
|
|
18
|
-
import { Logger as
|
|
19
|
-
import { ErrorAction as
|
|
20
|
-
import { WebSocketMessageReader as
|
|
21
|
-
import { DocumentDiagnosticRequest as
|
|
22
|
-
import { StandaloneServices as
|
|
23
|
-
import { KeybindingsRegistry as
|
|
14
|
+
import Fe from "@codingame/monaco-vscode-editor-service-override";
|
|
15
|
+
import Ze from "@codingame/monaco-vscode-theme-service-override";
|
|
16
|
+
import * as r from "monaco-editor";
|
|
17
|
+
import { Selection as ke, KeyMod as G, KeyCode as O, editor as oe, Range as je, Uri as Xe, CancellationTokenSource as Ke } from "monaco-editor";
|
|
18
|
+
import { Logger as Ee } from "monaco-languageclient/tools";
|
|
19
|
+
import { ErrorAction as Te, CloseAction as Be } from "vscode-languageclient";
|
|
20
|
+
import { WebSocketMessageReader as Ge, WebSocketMessageWriter as Oe, toSocket as Je } from "vscode-ws-jsonrpc";
|
|
21
|
+
import { DocumentDiagnosticRequest as De, WillSaveTextDocumentNotification as Ve, TextDocumentSaveReason as Ye, DidSaveTextDocumentNotification as Pe, WillCreateFilesRequest as Me, WillRenameFilesRequest as He, WillDeleteFilesRequest as $e, DidCreateFilesNotification as ze, DidRenameFilesNotification as _e, DidDeleteFilesNotification as Ue, SemanticTokensRegistrationType as qe } from "vscode-languageserver-protocol";
|
|
22
|
+
import { StandaloneServices as Qe, ICodeEditorService as en } from "vscode/services";
|
|
23
|
+
import { KeybindingsRegistry as _ } from "vscode/monaco";
|
|
24
24
|
import "@codingame/monaco-vscode-standalone-languages";
|
|
25
25
|
import "@codingame/monaco-vscode-standalone-html-language-features";
|
|
26
26
|
import "@codingame/monaco-vscode-standalone-css-language-features";
|
|
@@ -30,14 +30,14 @@ import "@codingame/monaco-vscode-css-default-extension";
|
|
|
30
30
|
import "@codingame/monaco-vscode-json-default-extension";
|
|
31
31
|
import "@codingame/monaco-vscode-html-default-extension";
|
|
32
32
|
import "@codingame/monaco-vscode-javascript-default-extension";
|
|
33
|
-
import { registerExtension as
|
|
34
|
-
const
|
|
33
|
+
import { registerExtension as nn } from "vscode/extensions";
|
|
34
|
+
const tn = () => Re(), on = () => Fe(
|
|
35
35
|
() => Promise.resolve(void 0)
|
|
36
|
-
),
|
|
37
|
-
const t =
|
|
38
|
-
return
|
|
36
|
+
), rn = () => {
|
|
37
|
+
const t = Ze(), n = t.themeService.ctor.prototype;
|
|
38
|
+
return n.defineTheme = () => {
|
|
39
39
|
}, t;
|
|
40
|
-
},
|
|
40
|
+
}, sn = `{
|
|
41
41
|
"workbench.colorTheme": "Default Dark+",
|
|
42
42
|
"workbench.iconTheme": "vs-seti",
|
|
43
43
|
"editor.autoClosingBrackets": "languageDefined",
|
|
@@ -122,133 +122,133 @@ const _e = () => ye(), Ue = () => xe(
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
`,
|
|
126
|
-
var
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
125
|
+
`, ln = () => xe(sn), an = async (t) => {
|
|
126
|
+
var o;
|
|
127
|
+
const n = t.serviceConfig ?? {};
|
|
128
|
+
n.debugLogging = ((o = t.logger) == null ? void 0 : o.isEnabled()) === !0 && (n.debugLogging === !0 || t.logger.isDebugEnabled() === !0), await ln(), n.userServices = n.userServices ?? {};
|
|
129
|
+
const e = n.userServices.configurationService ?? void 0, i = n.workspaceConfig ?? void 0;
|
|
130
|
+
if (e === void 0) {
|
|
131
131
|
if (i)
|
|
132
132
|
throw new Error(
|
|
133
133
|
"You provided a workspaceConfig without using the configurationServiceOverride"
|
|
134
134
|
);
|
|
135
|
-
const
|
|
135
|
+
const d = {
|
|
136
136
|
// @see https://github.com/CodinGame/monaco-vscode-api#monaco-standalone-services
|
|
137
|
-
...
|
|
138
|
-
...
|
|
139
|
-
...
|
|
140
|
-
...
|
|
141
|
-
...
|
|
137
|
+
...tn(),
|
|
138
|
+
...rn(),
|
|
139
|
+
...We(),
|
|
140
|
+
...Le(),
|
|
141
|
+
...on()
|
|
142
142
|
};
|
|
143
|
-
|
|
143
|
+
Ne(d, n.userServices);
|
|
144
144
|
}
|
|
145
|
-
return i || (
|
|
145
|
+
return i || (n.workspaceConfig = {
|
|
146
146
|
workspaceProvider: {
|
|
147
147
|
trusted: !0,
|
|
148
148
|
workspace: {
|
|
149
|
-
workspaceUri:
|
|
149
|
+
workspaceUri: r.Uri.file("/workspace")
|
|
150
150
|
},
|
|
151
151
|
async open() {
|
|
152
152
|
return !1;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), n;
|
|
156
156
|
};
|
|
157
|
-
class
|
|
158
|
-
constructor(
|
|
159
|
-
super(
|
|
160
|
-
|
|
157
|
+
class gn extends Ge {
|
|
158
|
+
constructor(e, i) {
|
|
159
|
+
super(e);
|
|
160
|
+
F(this, "onMessage");
|
|
161
161
|
this.onMessage = i;
|
|
162
162
|
}
|
|
163
|
-
readMessage(
|
|
163
|
+
readMessage(e) {
|
|
164
164
|
this.onMessage && this.onMessage();
|
|
165
|
-
const [, i] =
|
|
165
|
+
const [, i] = e.split(`\r
|
|
166
166
|
\r
|
|
167
167
|
`);
|
|
168
168
|
if (this.state === "initial")
|
|
169
169
|
this.events.splice(0, 0, { message: i });
|
|
170
170
|
else if (this.state === "listening") {
|
|
171
|
-
const
|
|
172
|
-
this.callback(
|
|
171
|
+
const o = JSON.parse(i);
|
|
172
|
+
this.callback(o);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
class
|
|
177
|
-
constructor(
|
|
178
|
-
super(
|
|
179
|
-
|
|
176
|
+
class cn extends Oe {
|
|
177
|
+
constructor(e, i) {
|
|
178
|
+
super(e);
|
|
179
|
+
F(this, "onSend");
|
|
180
180
|
this.onSend = i;
|
|
181
181
|
}
|
|
182
|
-
async write(
|
|
182
|
+
async write(e) {
|
|
183
183
|
try {
|
|
184
|
-
const i = JSON.stringify(
|
|
184
|
+
const i = JSON.stringify(e);
|
|
185
185
|
this.socket.send(i), this.onSend && this.onSend();
|
|
186
186
|
} catch (i) {
|
|
187
|
-
this.errorCount++, this.fireError(i,
|
|
187
|
+
this.errorCount++, this.fireError(i, e, this.errorCount);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const
|
|
193
|
-
return
|
|
191
|
+
function j(t, n = !0) {
|
|
192
|
+
const e = `/PACKAGE/Project/Sources/${t}`;
|
|
193
|
+
return n ? `file://${e}` : e;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
setTimeout(t,
|
|
195
|
+
function re(t, n = 0) {
|
|
196
|
+
setTimeout(t, n);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
198
|
+
function dn(t, n) {
|
|
199
|
+
const e = new ke(
|
|
200
|
+
n.startLineNumber,
|
|
201
|
+
n.startColumn,
|
|
202
|
+
n.endLineNumber || n.startLineNumber,
|
|
203
|
+
n.endColumn || n.startColumn
|
|
204
204
|
);
|
|
205
|
-
|
|
206
|
-
t.setSelection(
|
|
205
|
+
re(() => {
|
|
206
|
+
t.setSelection(e), t.revealRangeInCenter(e), t.focus();
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
|
|
211
|
-
t.setPosition({ lineNumber:
|
|
209
|
+
function un(t, n, e = 0) {
|
|
210
|
+
e > 0 && (n = e + n), re(() => {
|
|
211
|
+
t.setPosition({ lineNumber: n, column: 1 }), t.revealLineInCenter(n), t.focus();
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
for (let
|
|
219
|
-
const
|
|
220
|
-
if (new RegExp(`(?:Function|function) ${
|
|
221
|
-
return
|
|
214
|
+
function It(t, n, e) {
|
|
215
|
+
const o = t.getModel();
|
|
216
|
+
if (o && n) {
|
|
217
|
+
const d = o.getLineCount();
|
|
218
|
+
for (let a = 1; a <= d; a++) {
|
|
219
|
+
const m = o.getLineContent(a);
|
|
220
|
+
if (new RegExp(`(?:Function|function) ${e}`).test(m))
|
|
221
|
+
return a;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
return 0;
|
|
225
225
|
}
|
|
226
|
-
const
|
|
227
|
-
provideCompletionItems: async (t,
|
|
228
|
-
const
|
|
226
|
+
const In = {
|
|
227
|
+
provideCompletionItems: async (t, n) => {
|
|
228
|
+
const e = t.getWordUntilPosition(n);
|
|
229
229
|
return {
|
|
230
230
|
suggestions: [
|
|
231
231
|
{
|
|
232
232
|
label: "var",
|
|
233
|
-
kind:
|
|
234
|
-
range: new
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
233
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
234
|
+
range: new r.Range(
|
|
235
|
+
n.lineNumber,
|
|
236
|
+
e.startColumn,
|
|
237
|
+
n.lineNumber,
|
|
238
|
+
e.endColumn
|
|
239
239
|
),
|
|
240
240
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
241
241
|
`),
|
|
242
|
-
insertTextRules:
|
|
242
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
label: "While",
|
|
246
|
-
kind:
|
|
247
|
-
range: new
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
247
|
+
range: new r.Range(
|
|
248
|
+
n.lineNumber,
|
|
249
|
+
e.startColumn,
|
|
250
|
+
n.lineNumber,
|
|
251
|
+
e.endColumn
|
|
252
252
|
),
|
|
253
253
|
insertText: [
|
|
254
254
|
"While(${1:expression})",
|
|
@@ -256,16 +256,16 @@ const ln = {
|
|
|
256
256
|
"End while"
|
|
257
257
|
].join(`
|
|
258
258
|
`),
|
|
259
|
-
insertTextRules:
|
|
259
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
label: "Case of",
|
|
263
|
-
kind:
|
|
264
|
-
range: new
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
264
|
+
range: new r.Range(
|
|
265
|
+
n.lineNumber,
|
|
266
|
+
e.startColumn,
|
|
267
|
+
n.lineNumber,
|
|
268
|
+
e.endColumn
|
|
269
269
|
),
|
|
270
270
|
insertText: [
|
|
271
271
|
"Case of",
|
|
@@ -274,44 +274,44 @@ const ln = {
|
|
|
274
274
|
"End case"
|
|
275
275
|
].join(`
|
|
276
276
|
`),
|
|
277
|
-
insertTextRules:
|
|
277
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
label: "Else",
|
|
281
|
-
kind:
|
|
282
|
-
range: new
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
281
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
282
|
+
range: new r.Range(
|
|
283
|
+
n.lineNumber,
|
|
284
|
+
e.startColumn,
|
|
285
|
+
n.lineNumber,
|
|
286
|
+
e.endColumn
|
|
287
287
|
),
|
|
288
288
|
insertText: ["Else", " "].join(`
|
|
289
289
|
`),
|
|
290
|
-
insertTextRules:
|
|
290
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
label: "If",
|
|
294
|
-
kind:
|
|
295
|
-
range: new
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
294
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
295
|
+
range: new r.Range(
|
|
296
|
+
n.lineNumber,
|
|
297
|
+
e.startColumn,
|
|
298
|
+
n.lineNumber,
|
|
299
|
+
e.endColumn
|
|
300
300
|
),
|
|
301
301
|
insertText: ["If (${1:expression})", " ${5:body}", "End if"].join(
|
|
302
302
|
`
|
|
303
303
|
`
|
|
304
304
|
),
|
|
305
|
-
insertTextRules:
|
|
305
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
308
|
label: "For",
|
|
309
|
-
kind:
|
|
310
|
-
range: new
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
309
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
310
|
+
range: new r.Range(
|
|
311
|
+
n.lineNumber,
|
|
312
|
+
e.startColumn,
|
|
313
|
+
n.lineNumber,
|
|
314
|
+
e.endColumn
|
|
315
315
|
),
|
|
316
316
|
insertText: [
|
|
317
317
|
"For(${1:counter};${2:start};${3:end}${4:;increment})",
|
|
@@ -319,68 +319,68 @@ const ln = {
|
|
|
319
319
|
"End for"
|
|
320
320
|
].join(`
|
|
321
321
|
`),
|
|
322
|
-
insertTextRules:
|
|
322
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
label: "Function",
|
|
326
|
-
kind:
|
|
327
|
-
range: new
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
327
|
+
range: new r.Range(
|
|
328
|
+
n.lineNumber,
|
|
329
|
+
e.startColumn,
|
|
330
|
+
n.lineNumber,
|
|
331
|
+
e.endColumn
|
|
332
332
|
),
|
|
333
333
|
insertText: [
|
|
334
334
|
"Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}",
|
|
335
335
|
" ${5:body}"
|
|
336
336
|
].join(`
|
|
337
337
|
`),
|
|
338
|
-
insertTextRules:
|
|
338
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
339
339
|
}
|
|
340
340
|
]
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
},
|
|
344
|
-
provideCompletionItems: async (t,
|
|
345
|
-
const
|
|
343
|
+
}, Cn = {
|
|
344
|
+
provideCompletionItems: async (t, n) => {
|
|
345
|
+
const e = t.getWordUntilPosition(n);
|
|
346
346
|
return {
|
|
347
347
|
suggestions: [
|
|
348
348
|
{
|
|
349
349
|
label: "var",
|
|
350
|
-
kind:
|
|
351
|
-
range: new
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
350
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
351
|
+
range: new r.Range(
|
|
352
|
+
n.lineNumber,
|
|
353
|
+
e.startColumn,
|
|
354
|
+
n.lineNumber,
|
|
355
|
+
e.endColumn
|
|
356
356
|
),
|
|
357
357
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
358
358
|
`),
|
|
359
|
-
insertTextRules:
|
|
359
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
label: "while",
|
|
363
|
-
kind:
|
|
364
|
-
range: new
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
363
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
364
|
+
range: new r.Range(
|
|
365
|
+
n.lineNumber,
|
|
366
|
+
e.startColumn,
|
|
367
|
+
n.lineNumber,
|
|
368
|
+
e.endColumn
|
|
369
369
|
),
|
|
370
370
|
insertText: ["while(${1:expression})", " ${2:body}", "end"].join(
|
|
371
371
|
`
|
|
372
372
|
`
|
|
373
373
|
),
|
|
374
|
-
insertTextRules:
|
|
374
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
377
|
label: "switch",
|
|
378
|
-
kind:
|
|
379
|
-
range: new
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
378
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
379
|
+
range: new r.Range(
|
|
380
|
+
n.lineNumber,
|
|
381
|
+
e.startColumn,
|
|
382
|
+
n.lineNumber,
|
|
383
|
+
e.endColumn
|
|
384
384
|
),
|
|
385
385
|
insertText: [
|
|
386
386
|
"switch",
|
|
@@ -389,44 +389,44 @@ const ln = {
|
|
|
389
389
|
"end"
|
|
390
390
|
].join(`
|
|
391
391
|
`),
|
|
392
|
-
insertTextRules:
|
|
392
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
395
|
label: "else",
|
|
396
|
-
kind:
|
|
397
|
-
range: new
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
396
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
397
|
+
range: new r.Range(
|
|
398
|
+
n.lineNumber,
|
|
399
|
+
e.startColumn,
|
|
400
|
+
n.lineNumber,
|
|
401
|
+
e.endColumn
|
|
402
402
|
),
|
|
403
403
|
insertText: ["else", " "].join(`
|
|
404
404
|
`),
|
|
405
|
-
insertTextRules:
|
|
405
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
label: "if",
|
|
409
|
-
kind:
|
|
410
|
-
range: new
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
409
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
410
|
+
range: new r.Range(
|
|
411
|
+
n.lineNumber,
|
|
412
|
+
e.startColumn,
|
|
413
|
+
n.lineNumber,
|
|
414
|
+
e.endColumn
|
|
415
415
|
),
|
|
416
416
|
insertText: ["if (${1:expression})", " ${5:body}", "end"].join(
|
|
417
417
|
`
|
|
418
418
|
`
|
|
419
419
|
),
|
|
420
|
-
insertTextRules:
|
|
420
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
label: "for",
|
|
424
|
-
kind:
|
|
425
|
-
range: new
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
424
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
425
|
+
range: new r.Range(
|
|
426
|
+
n.lineNumber,
|
|
427
|
+
e.startColumn,
|
|
428
|
+
n.lineNumber,
|
|
429
|
+
e.endColumn
|
|
430
430
|
),
|
|
431
431
|
insertText: [
|
|
432
432
|
"for(${1:counter},${2:start},${3:end}${4:,increment})",
|
|
@@ -434,28 +434,28 @@ const ln = {
|
|
|
434
434
|
"end"
|
|
435
435
|
].join(`
|
|
436
436
|
`),
|
|
437
|
-
insertTextRules:
|
|
437
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
label: "function",
|
|
441
|
-
kind:
|
|
442
|
-
range: new
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
441
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
442
|
+
range: new r.Range(
|
|
443
|
+
n.lineNumber,
|
|
444
|
+
e.startColumn,
|
|
445
|
+
n.lineNumber,
|
|
446
|
+
e.endColumn
|
|
447
447
|
),
|
|
448
448
|
insertText: [
|
|
449
449
|
"function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}",
|
|
450
450
|
" ${5:body}"
|
|
451
451
|
].join(`
|
|
452
452
|
`),
|
|
453
|
-
insertTextRules:
|
|
453
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
454
454
|
}
|
|
455
455
|
]
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
},
|
|
458
|
+
}, mn = [
|
|
459
459
|
// zoom in
|
|
460
460
|
{
|
|
461
461
|
keybinding: G.CtrlCmd | O.NumpadAdd,
|
|
@@ -483,381 +483,455 @@ const ln = {
|
|
|
483
483
|
keybinding: G.CtrlCmd | O.Digit0,
|
|
484
484
|
command: "editor.action.fontZoomReset"
|
|
485
485
|
}
|
|
486
|
-
],
|
|
487
|
-
t !== void 0 &&
|
|
486
|
+
], fn = ({ defaultZoom: t }) => (D(() => {
|
|
487
|
+
t !== void 0 && oe.EditorZoom.setZoomLevel(t);
|
|
488
488
|
}, []), null);
|
|
489
|
-
({}).VITE_DISABLE_MONACO_LOADER ||
|
|
490
|
-
monaco:
|
|
489
|
+
({}).VITE_DISABLE_MONACO_LOADER || pe.config({
|
|
490
|
+
monaco: r
|
|
491
491
|
// paths: {
|
|
492
492
|
// vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.41.0/min/vs",
|
|
493
493
|
// },
|
|
494
494
|
});
|
|
495
|
-
|
|
495
|
+
function An(t, n, e, i) {
|
|
496
|
+
const o = e.tokens.data, d = t.getLanguageId();
|
|
497
|
+
let a = 0, m = 0;
|
|
498
|
+
const p = i.lineNumber - 1, S = i.column - 1;
|
|
499
|
+
for (let w = 0; w < o.length; w += 5) {
|
|
500
|
+
const y = o[w], A = o[w + 1], h = o[w + 2], N = o[w + 3], b = o[w + 4], v = a + y, C = y === 0 ? m + A : A;
|
|
501
|
+
if (p === v && C <= S && S < C + h) {
|
|
502
|
+
const I = e.legend.tokenTypes[N] || "not in legend (ignored)", Z = [];
|
|
503
|
+
let s = b;
|
|
504
|
+
for (let V = 0; s > 0 && V < e.legend.tokenModifiers.length; V++)
|
|
505
|
+
s & 1 && Z.push(e.legend.tokenModifiers[V]), s = s >> 1;
|
|
506
|
+
s > 0 && Z.push("not in legend (ignored)");
|
|
507
|
+
const l = new je(
|
|
508
|
+
v + 1,
|
|
509
|
+
C + 1,
|
|
510
|
+
v + 1,
|
|
511
|
+
C + 1 + h
|
|
512
|
+
), x = {}, L = n.getColorTheme().tokenColorMap, f = n.getColorTheme().getTokenStyleMetadata(
|
|
513
|
+
I,
|
|
514
|
+
Z,
|
|
515
|
+
d,
|
|
516
|
+
!0,
|
|
517
|
+
x
|
|
518
|
+
);
|
|
519
|
+
let H;
|
|
520
|
+
return f && (H = {
|
|
521
|
+
languageId: void 0,
|
|
522
|
+
tokenType: 0,
|
|
523
|
+
bold: f == null ? void 0 : f.bold,
|
|
524
|
+
italic: f == null ? void 0 : f.italic,
|
|
525
|
+
underline: f == null ? void 0 : f.underline,
|
|
526
|
+
strikethrough: f == null ? void 0 : f.strikethrough,
|
|
527
|
+
foreground: L[
|
|
528
|
+
(f == null ? void 0 : f.foreground) || 0
|
|
529
|
+
/* None */
|
|
530
|
+
],
|
|
531
|
+
background: void 0
|
|
532
|
+
}), { type: I, modifiers: Z, range: l, metadata: H, definitions: x };
|
|
533
|
+
}
|
|
534
|
+
a = v, m = C;
|
|
535
|
+
}
|
|
536
|
+
return null;
|
|
537
|
+
}
|
|
538
|
+
const se = ne(void 0), Ct = ({
|
|
496
539
|
children: t,
|
|
497
|
-
url:
|
|
498
|
-
qodly:
|
|
540
|
+
url: n,
|
|
541
|
+
qodly: e,
|
|
499
542
|
defaultZoom: i,
|
|
500
|
-
openHandler:
|
|
501
|
-
language:
|
|
502
|
-
defaultInited:
|
|
543
|
+
openHandler: o,
|
|
544
|
+
language: d = "4d",
|
|
545
|
+
defaultInited: a = !1
|
|
503
546
|
}) => {
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
}, [
|
|
508
|
-
const
|
|
509
|
-
if (!
|
|
547
|
+
const m = be(), [p, S] = M(a), [w, y] = M(null), A = q(), h = q(0);
|
|
548
|
+
D(() => {
|
|
549
|
+
n && m && N();
|
|
550
|
+
}, [n, m]);
|
|
551
|
+
const N = async () => {
|
|
552
|
+
if (!m)
|
|
510
553
|
return;
|
|
511
|
-
const
|
|
554
|
+
const u = new Ee({
|
|
512
555
|
enabled: process.env.NODE_ENV === "development",
|
|
513
556
|
debugEnabled: process.env.NODE_ENV === "development"
|
|
514
|
-
}),
|
|
515
|
-
logger:
|
|
557
|
+
}), g = await an({
|
|
558
|
+
logger: u
|
|
516
559
|
});
|
|
517
|
-
await
|
|
560
|
+
await we({
|
|
518
561
|
caller: "Qodly Code Editor",
|
|
519
|
-
logger:
|
|
520
|
-
serviceConfig:
|
|
521
|
-
}),
|
|
522
|
-
|
|
523
|
-
|
|
562
|
+
logger: u,
|
|
563
|
+
serviceConfig: g
|
|
564
|
+
}), o && Qe.get(en).registerCodeEditorOpenHandler(o), m.languages.registerCompletionItemProvider(
|
|
565
|
+
d,
|
|
566
|
+
e ? Cn : In
|
|
524
567
|
);
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
(
|
|
568
|
+
const c = _.getDefaultKeybindings.bind(_);
|
|
569
|
+
_.getDefaultKeybindings = () => c().filter(
|
|
570
|
+
(k) => ![
|
|
528
571
|
"workbench.action.files.saveAs",
|
|
529
572
|
"workbench.action.files.save"
|
|
530
|
-
].includes(
|
|
531
|
-
),
|
|
532
|
-
},
|
|
573
|
+
].includes(k.command)
|
|
574
|
+
), oe.addKeybindingRules(mn), b();
|
|
575
|
+
}, b = () => {
|
|
533
576
|
y(null);
|
|
534
|
-
let
|
|
577
|
+
let u;
|
|
535
578
|
try {
|
|
536
|
-
|
|
579
|
+
u = new WebSocket(localStorage.LSP_SERVER || n);
|
|
537
580
|
} catch {
|
|
538
581
|
y(new Event("INVALID_URL"));
|
|
539
582
|
return;
|
|
540
583
|
}
|
|
541
|
-
|
|
542
|
-
},
|
|
543
|
-
const
|
|
584
|
+
u.onopen = v, u.onclose = C, u.onerror = I, h.current = 0;
|
|
585
|
+
}, v = async function() {
|
|
586
|
+
const u = Je(this), g = new gn(u), c = new cn(u), W = new ye({
|
|
544
587
|
name: "4D Language Client",
|
|
545
588
|
clientOptions: {
|
|
546
589
|
workspaceFolder: {
|
|
547
|
-
uri:
|
|
590
|
+
uri: Xe.parse("file:///PACKAGE")
|
|
548
591
|
},
|
|
549
592
|
// use a language id as a document selector
|
|
550
|
-
documentSelector: [{ scheme: "file", language:
|
|
593
|
+
documentSelector: [{ scheme: "file", language: d }],
|
|
551
594
|
// disable the default error handler
|
|
552
595
|
errorHandler: {
|
|
553
|
-
error: () => ({ action:
|
|
554
|
-
closed: () => ({ action:
|
|
596
|
+
error: () => ({ action: Te.Continue }),
|
|
597
|
+
closed: () => ({ action: Be.DoNotRestart })
|
|
555
598
|
}
|
|
556
599
|
},
|
|
557
600
|
// create a language client connection from the JSON RPC connection on demand
|
|
558
601
|
connectionProvider: {
|
|
559
602
|
get: () => Promise.resolve({
|
|
560
|
-
reader:
|
|
561
|
-
writer:
|
|
603
|
+
reader: g,
|
|
604
|
+
writer: c
|
|
562
605
|
})
|
|
563
606
|
}
|
|
564
607
|
});
|
|
565
|
-
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
return typeof
|
|
569
|
-
|
|
570
|
-
) ? Promise.resolve() : B
|
|
571
|
-
},
|
|
572
|
-
|
|
573
|
-
|
|
608
|
+
A.current = W;
|
|
609
|
+
const k = W.sendRequest.bind(W);
|
|
610
|
+
A.current.sendRequest = function(B, Y, z) {
|
|
611
|
+
return typeof B == "object" && B.method === "textDocument/diagnostic" && /file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(
|
|
612
|
+
Y.textDocument.uri
|
|
613
|
+
) ? Promise.resolve() : k(B, Y, z);
|
|
614
|
+
}, g.onClose(() => {
|
|
615
|
+
W.stop(), h.current < 3 ? setTimeout(() => {
|
|
616
|
+
h.current++, b();
|
|
574
617
|
}, 1e3) : y(new Event("WEBSOCKET_CLOSED"));
|
|
575
|
-
}),
|
|
576
|
-
},
|
|
577
|
-
},
|
|
578
|
-
y(
|
|
618
|
+
}), W.needsStart() && await W.start(), S(!0);
|
|
619
|
+
}, C = () => {
|
|
620
|
+
}, I = (u) => {
|
|
621
|
+
y(u);
|
|
579
622
|
};
|
|
580
|
-
|
|
581
|
-
const
|
|
582
|
-
switch (
|
|
583
|
-
case
|
|
584
|
-
|
|
623
|
+
D(() => {
|
|
624
|
+
const u = ve.subscribe(({ action: g, payload: c }) => {
|
|
625
|
+
switch (g) {
|
|
626
|
+
case X.WILL_SAVE:
|
|
627
|
+
L(c.filePath);
|
|
585
628
|
break;
|
|
586
|
-
case
|
|
587
|
-
|
|
629
|
+
case X.DID_SAVE:
|
|
630
|
+
E(c.filePath, c.content);
|
|
588
631
|
break;
|
|
589
|
-
case
|
|
590
|
-
|
|
632
|
+
case X.WILL_CREATE:
|
|
633
|
+
f(c.filePath);
|
|
591
634
|
break;
|
|
592
|
-
case
|
|
593
|
-
|
|
635
|
+
case X.DID_CREATE:
|
|
636
|
+
de(c.filePath);
|
|
594
637
|
break;
|
|
595
|
-
case
|
|
596
|
-
|
|
638
|
+
case X.WILL_RENAME:
|
|
639
|
+
H(c.oldPath, c.newPath);
|
|
597
640
|
break;
|
|
598
|
-
case
|
|
599
|
-
|
|
641
|
+
case X.DID_RENAME:
|
|
642
|
+
ue(c.oldPath, c.newPath);
|
|
600
643
|
break;
|
|
601
|
-
case
|
|
602
|
-
|
|
644
|
+
case X.WILL_DELETE:
|
|
645
|
+
V(c.filePath);
|
|
603
646
|
break;
|
|
604
|
-
case
|
|
605
|
-
|
|
647
|
+
case X.DID_DELETE:
|
|
648
|
+
Ie(c.filePath);
|
|
606
649
|
break;
|
|
607
|
-
case
|
|
608
|
-
|
|
650
|
+
case X.DIAGNOSTIC_REFRESH:
|
|
651
|
+
x(c.filePath);
|
|
609
652
|
break;
|
|
610
653
|
}
|
|
611
654
|
});
|
|
612
|
-
return () =>
|
|
655
|
+
return () => u.unsubscribe();
|
|
613
656
|
}, []);
|
|
614
|
-
const
|
|
615
|
-
var
|
|
616
|
-
return (
|
|
617
|
-
(
|
|
618
|
-
var
|
|
619
|
-
return ((
|
|
657
|
+
const Z = (u) => {
|
|
658
|
+
var g, c;
|
|
659
|
+
return (c = (g = A.current) == null ? void 0 : g._features) == null ? void 0 : c.find(
|
|
660
|
+
(W) => {
|
|
661
|
+
var k;
|
|
662
|
+
return ((k = W._registrationType) == null ? void 0 : k.method) === u;
|
|
620
663
|
}
|
|
621
664
|
);
|
|
622
|
-
}, s = (
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
665
|
+
}, s = (u) => {
|
|
666
|
+
const g = [], c = Z(u);
|
|
667
|
+
if (c)
|
|
668
|
+
for (const [W, k] of c._registrations)
|
|
669
|
+
k.provider && g.push(k.provider);
|
|
670
|
+
return g;
|
|
671
|
+
}, l = async (u, g, c) => {
|
|
672
|
+
var k, B, Y;
|
|
673
|
+
const W = s(
|
|
674
|
+
qe.method
|
|
675
|
+
);
|
|
676
|
+
if (W[0]) {
|
|
677
|
+
const z = new Ke(), U = await Promise.resolve(
|
|
678
|
+
W[0].full.provideDocumentSemanticTokens(
|
|
679
|
+
g,
|
|
680
|
+
z.token
|
|
681
|
+
)
|
|
682
|
+
);
|
|
683
|
+
return U && An(
|
|
684
|
+
g,
|
|
685
|
+
u._themeService,
|
|
686
|
+
{
|
|
687
|
+
tokens: U,
|
|
688
|
+
legend: (Y = (B = (k = A.current) == null ? void 0 : k._capabilities) == null ? void 0 : B.semanticTokensProvider) == null ? void 0 : Y.legend
|
|
689
|
+
},
|
|
690
|
+
c
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
return null;
|
|
694
|
+
}, x = (u) => {
|
|
695
|
+
if (A.current) {
|
|
696
|
+
const g = s(
|
|
697
|
+
De.method
|
|
698
|
+
);
|
|
699
|
+
for (const c of g)
|
|
700
|
+
c.onDidChangeDiagnosticsEmitter.fire();
|
|
628
701
|
}
|
|
629
|
-
},
|
|
630
|
-
var
|
|
631
|
-
(
|
|
702
|
+
}, L = (u, g = Ye.Manual) => {
|
|
703
|
+
var c;
|
|
704
|
+
(c = A.current) == null || c.sendNotification(Ve.type, {
|
|
632
705
|
textDocument: {
|
|
633
|
-
uri:
|
|
706
|
+
uri: j(u)
|
|
634
707
|
},
|
|
635
|
-
reason:
|
|
708
|
+
reason: g
|
|
636
709
|
});
|
|
637
|
-
},
|
|
638
|
-
var
|
|
639
|
-
(
|
|
710
|
+
}, E = (u, g) => {
|
|
711
|
+
var c;
|
|
712
|
+
(c = A.current) == null || c.sendNotification(Pe.type, {
|
|
640
713
|
textDocument: {
|
|
641
|
-
uri:
|
|
714
|
+
uri: j(u)
|
|
642
715
|
},
|
|
643
|
-
text:
|
|
716
|
+
text: g
|
|
644
717
|
});
|
|
645
|
-
},
|
|
646
|
-
var
|
|
647
|
-
(
|
|
718
|
+
}, f = (u) => {
|
|
719
|
+
var g;
|
|
720
|
+
(g = A.current) == null || g.sendRequest(Me.type, {
|
|
648
721
|
files: [
|
|
649
722
|
{
|
|
650
|
-
uri:
|
|
723
|
+
uri: j(u)
|
|
651
724
|
}
|
|
652
725
|
]
|
|
653
726
|
});
|
|
654
|
-
},
|
|
655
|
-
var
|
|
656
|
-
(
|
|
727
|
+
}, H = (u, g) => {
|
|
728
|
+
var c;
|
|
729
|
+
(c = A.current) == null || c.sendRequest(He.type, {
|
|
657
730
|
files: [
|
|
658
731
|
{
|
|
659
|
-
oldUri:
|
|
660
|
-
newUri:
|
|
732
|
+
oldUri: j(u),
|
|
733
|
+
newUri: j(g)
|
|
661
734
|
}
|
|
662
735
|
]
|
|
663
736
|
});
|
|
664
|
-
},
|
|
665
|
-
var
|
|
666
|
-
(
|
|
737
|
+
}, V = (u) => {
|
|
738
|
+
var g;
|
|
739
|
+
(g = A.current) == null || g.sendRequest($e.type, {
|
|
667
740
|
files: [
|
|
668
741
|
{
|
|
669
|
-
uri:
|
|
742
|
+
uri: j(u)
|
|
670
743
|
}
|
|
671
744
|
]
|
|
672
745
|
});
|
|
673
|
-
},
|
|
674
|
-
var
|
|
675
|
-
(
|
|
746
|
+
}, de = (u) => {
|
|
747
|
+
var g;
|
|
748
|
+
(g = A.current) == null || g.sendNotification(ze.type, {
|
|
676
749
|
files: [
|
|
677
750
|
{
|
|
678
|
-
uri:
|
|
751
|
+
uri: j(u)
|
|
679
752
|
}
|
|
680
753
|
]
|
|
681
754
|
});
|
|
682
|
-
},
|
|
683
|
-
var
|
|
684
|
-
(
|
|
755
|
+
}, ue = (u, g) => {
|
|
756
|
+
var c;
|
|
757
|
+
(c = A.current) == null || c.sendNotification(_e.type, {
|
|
685
758
|
files: [
|
|
686
759
|
{
|
|
687
|
-
oldUri:
|
|
688
|
-
newUri:
|
|
760
|
+
oldUri: j(u),
|
|
761
|
+
newUri: j(g)
|
|
689
762
|
}
|
|
690
763
|
]
|
|
691
764
|
});
|
|
692
|
-
},
|
|
693
|
-
var
|
|
694
|
-
(
|
|
765
|
+
}, Ie = (u) => {
|
|
766
|
+
var g;
|
|
767
|
+
(g = A.current) == null || g.sendNotification(Ue.type, {
|
|
695
768
|
files: [
|
|
696
769
|
{
|
|
697
|
-
uri:
|
|
770
|
+
uri: j(u)
|
|
698
771
|
}
|
|
699
772
|
]
|
|
700
773
|
});
|
|
701
774
|
};
|
|
702
|
-
return /* @__PURE__ */
|
|
703
|
-
|
|
775
|
+
return /* @__PURE__ */ J(
|
|
776
|
+
se.Provider,
|
|
704
777
|
{
|
|
705
778
|
value: {
|
|
706
|
-
inited:
|
|
707
|
-
clientRef:
|
|
708
|
-
lastError:
|
|
709
|
-
reload:
|
|
779
|
+
inited: p || !!w,
|
|
780
|
+
clientRef: A,
|
|
781
|
+
lastError: w,
|
|
782
|
+
reload: b,
|
|
783
|
+
getTokenAtPosition: l
|
|
710
784
|
},
|
|
711
785
|
children: [
|
|
712
786
|
t,
|
|
713
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ R(fn, { defaultZoom: i })
|
|
714
788
|
]
|
|
715
789
|
}
|
|
716
790
|
);
|
|
717
791
|
};
|
|
718
|
-
function
|
|
719
|
-
const t =
|
|
792
|
+
function mt() {
|
|
793
|
+
const t = te(se);
|
|
720
794
|
if (t === void 0)
|
|
721
795
|
throw new Error("useLSP must be used within an LSPContext");
|
|
722
796
|
return t;
|
|
723
797
|
}
|
|
724
|
-
const
|
|
798
|
+
const le = ne(
|
|
725
799
|
void 0
|
|
726
|
-
),
|
|
727
|
-
const [
|
|
728
|
-
return /* @__PURE__ */
|
|
729
|
-
|
|
800
|
+
), ft = Ae(({ children: t }) => {
|
|
801
|
+
const [n, e] = M(null);
|
|
802
|
+
return /* @__PURE__ */ R(
|
|
803
|
+
le.Provider,
|
|
730
804
|
{
|
|
731
805
|
value: {
|
|
732
|
-
editor:
|
|
733
|
-
setEditor:
|
|
806
|
+
editor: n,
|
|
807
|
+
setEditor: e
|
|
734
808
|
},
|
|
735
809
|
children: t
|
|
736
810
|
}
|
|
737
811
|
);
|
|
738
812
|
});
|
|
739
|
-
function
|
|
740
|
-
const t =
|
|
813
|
+
function pn() {
|
|
814
|
+
const t = te(le), n = M(null);
|
|
741
815
|
if (t === void 0) {
|
|
742
|
-
const [
|
|
816
|
+
const [e, i] = n;
|
|
743
817
|
return {
|
|
744
|
-
editor:
|
|
818
|
+
editor: e,
|
|
745
819
|
setEditor: i
|
|
746
820
|
};
|
|
747
821
|
}
|
|
748
822
|
return t;
|
|
749
823
|
}
|
|
750
|
-
var
|
|
824
|
+
var ae = {
|
|
751
825
|
color: void 0,
|
|
752
826
|
size: void 0,
|
|
753
827
|
className: void 0,
|
|
754
828
|
style: void 0,
|
|
755
829
|
attr: void 0
|
|
756
|
-
},
|
|
757
|
-
return
|
|
758
|
-
for (var
|
|
759
|
-
|
|
760
|
-
for (var
|
|
761
|
-
Object.prototype.hasOwnProperty.call(
|
|
830
|
+
}, Q = T.createContext && T.createContext(ae), K = globalThis && globalThis.__assign || function() {
|
|
831
|
+
return K = Object.assign || function(t) {
|
|
832
|
+
for (var n, e = 1, i = arguments.length; e < i; e++) {
|
|
833
|
+
n = arguments[e];
|
|
834
|
+
for (var o in n)
|
|
835
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
762
836
|
}
|
|
763
837
|
return t;
|
|
764
|
-
},
|
|
765
|
-
},
|
|
766
|
-
var
|
|
838
|
+
}, K.apply(this, arguments);
|
|
839
|
+
}, bn = globalThis && globalThis.__rest || function(t, n) {
|
|
840
|
+
var e = {};
|
|
767
841
|
for (var i in t)
|
|
768
|
-
Object.prototype.hasOwnProperty.call(t, i) &&
|
|
842
|
+
Object.prototype.hasOwnProperty.call(t, i) && n.indexOf(i) < 0 && (e[i] = t[i]);
|
|
769
843
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
770
|
-
for (var
|
|
771
|
-
|
|
772
|
-
return
|
|
844
|
+
for (var o = 0, i = Object.getOwnPropertySymbols(t); o < i.length; o++)
|
|
845
|
+
n.indexOf(i[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[o]) && (e[i[o]] = t[i[o]]);
|
|
846
|
+
return e;
|
|
773
847
|
};
|
|
774
|
-
function
|
|
775
|
-
return t && t.map(function(
|
|
776
|
-
return
|
|
777
|
-
key:
|
|
778
|
-
},
|
|
848
|
+
function ge(t) {
|
|
849
|
+
return t && t.map(function(n, e) {
|
|
850
|
+
return T.createElement(n.tag, K({
|
|
851
|
+
key: e
|
|
852
|
+
}, n.attr), ge(n.child));
|
|
779
853
|
});
|
|
780
854
|
}
|
|
781
|
-
function
|
|
782
|
-
return function(
|
|
783
|
-
return
|
|
784
|
-
attr:
|
|
785
|
-
},
|
|
855
|
+
function ce(t) {
|
|
856
|
+
return function(n) {
|
|
857
|
+
return T.createElement(hn, K({
|
|
858
|
+
attr: K({}, t.attr)
|
|
859
|
+
}, n), ge(t.child));
|
|
786
860
|
};
|
|
787
861
|
}
|
|
788
|
-
function
|
|
789
|
-
var
|
|
790
|
-
var i = t.attr,
|
|
791
|
-
return
|
|
862
|
+
function hn(t) {
|
|
863
|
+
var n = function(e) {
|
|
864
|
+
var i = t.attr, o = t.size, d = t.title, a = bn(t, ["attr", "size", "title"]), m = o || e.size || "1em", p;
|
|
865
|
+
return e.className && (p = e.className), t.className && (p = (p ? p + " " : "") + t.className), T.createElement("svg", K({
|
|
792
866
|
stroke: "currentColor",
|
|
793
867
|
fill: "currentColor",
|
|
794
868
|
strokeWidth: "0"
|
|
795
|
-
},
|
|
796
|
-
className:
|
|
797
|
-
style:
|
|
798
|
-
color: t.color ||
|
|
799
|
-
},
|
|
800
|
-
height:
|
|
801
|
-
width:
|
|
869
|
+
}, e.attr, i, a, {
|
|
870
|
+
className: p,
|
|
871
|
+
style: K(K({
|
|
872
|
+
color: t.color || e.color
|
|
873
|
+
}, e.style), t.style),
|
|
874
|
+
height: m,
|
|
875
|
+
width: m,
|
|
802
876
|
xmlns: "http://www.w3.org/2000/svg"
|
|
803
|
-
}),
|
|
877
|
+
}), d && T.createElement("title", null, d), t.children);
|
|
804
878
|
};
|
|
805
|
-
return
|
|
806
|
-
return e
|
|
807
|
-
}) :
|
|
879
|
+
return Q !== void 0 ? T.createElement(Q.Consumer, null, function(e) {
|
|
880
|
+
return n(e);
|
|
881
|
+
}) : n(ae);
|
|
808
882
|
}
|
|
809
|
-
function
|
|
810
|
-
return
|
|
883
|
+
function vn(t) {
|
|
884
|
+
return ce({ 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);
|
|
811
885
|
}
|
|
812
|
-
function
|
|
813
|
-
return
|
|
886
|
+
function Sn(t) {
|
|
887
|
+
return ce({ 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);
|
|
814
888
|
}
|
|
815
|
-
const
|
|
816
|
-
const [
|
|
817
|
-
|
|
818
|
-
},
|
|
889
|
+
const yn = ({ lspProps: { lastError: t, reload: n } }) => {
|
|
890
|
+
const [e, i] = M(!1), o = () => {
|
|
891
|
+
n();
|
|
892
|
+
}, d = () => {
|
|
819
893
|
i(!1);
|
|
820
894
|
};
|
|
821
|
-
return
|
|
895
|
+
return D(() => {
|
|
822
896
|
i(!!t);
|
|
823
|
-
}, [t]),
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
/* @__PURE__ */
|
|
897
|
+
}, [t]), e ? /* @__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: [
|
|
898
|
+
/* @__PURE__ */ J("span", { className: "flex flex-1 justify-center gap-1", children: [
|
|
899
|
+
/* @__PURE__ */ R(Sn, { className: "h-4 w-4 text-yellow-600" }),
|
|
900
|
+
/* @__PURE__ */ J("span", { children: [
|
|
827
901
|
"LSP not loaded.",
|
|
828
902
|
" ",
|
|
829
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ R(
|
|
830
904
|
"button",
|
|
831
905
|
{
|
|
832
906
|
className: "text-primary-dark underline",
|
|
833
|
-
onClick:
|
|
907
|
+
onClick: o,
|
|
834
908
|
children: "Reload?"
|
|
835
909
|
}
|
|
836
910
|
)
|
|
837
911
|
] })
|
|
838
912
|
] }),
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
|
|
913
|
+
/* @__PURE__ */ R("button", { className: "focus:outline-none", children: /* @__PURE__ */ R(
|
|
914
|
+
vn,
|
|
841
915
|
{
|
|
842
916
|
className: "h-4 w-4 text-white",
|
|
843
|
-
onClick:
|
|
917
|
+
onClick: d
|
|
844
918
|
}
|
|
845
919
|
) })
|
|
846
920
|
] }) : null;
|
|
847
|
-
},
|
|
848
|
-
provideCompletionItems: (t,
|
|
849
|
-
const
|
|
921
|
+
}, Nn = {
|
|
922
|
+
provideCompletionItems: (t, n) => {
|
|
923
|
+
const e = t.getWordUntilPosition(n);
|
|
850
924
|
return {
|
|
851
925
|
suggestions: [
|
|
852
926
|
{
|
|
853
927
|
label: "device:xs",
|
|
854
|
-
kind:
|
|
928
|
+
kind: r.languages.CompletionItemKind.Snippet,
|
|
855
929
|
documentation: "Media query for phone device",
|
|
856
|
-
range: new
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
930
|
+
range: new r.Range(
|
|
931
|
+
n.lineNumber,
|
|
932
|
+
e.startColumn,
|
|
933
|
+
n.lineNumber,
|
|
934
|
+
e.endColumn
|
|
861
935
|
),
|
|
862
936
|
insertText: [
|
|
863
937
|
"@media screen and (max-width: ${1:365px}) {",
|
|
@@ -867,12 +941,12 @@ const fn = ({ lspProps: { lastError: t, reload: e } }) => {
|
|
|
867
941
|
"}"
|
|
868
942
|
].join(`
|
|
869
943
|
`),
|
|
870
|
-
insertTextRules:
|
|
944
|
+
insertTextRules: r.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
871
945
|
}
|
|
872
946
|
]
|
|
873
947
|
};
|
|
874
948
|
}
|
|
875
|
-
},
|
|
949
|
+
}, wn = "#/definitions/Condition", Rn = {
|
|
876
950
|
Base: {
|
|
877
951
|
type: "object",
|
|
878
952
|
properties: {
|
|
@@ -1140,45 +1214,45 @@ const fn = ({ lspProps: { lastError: t, reload: e } }) => {
|
|
|
1140
1214
|
"ref"
|
|
1141
1215
|
]
|
|
1142
1216
|
}
|
|
1143
|
-
},
|
|
1144
|
-
$ref:
|
|
1145
|
-
definitions:
|
|
1217
|
+
}, xn = {
|
|
1218
|
+
$ref: wn,
|
|
1219
|
+
definitions: Rn
|
|
1146
1220
|
};
|
|
1147
|
-
function
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1221
|
+
function Ln(t, n) {
|
|
1222
|
+
const e = document.createElement("style");
|
|
1223
|
+
e.dataset.id = n, e.textContent = t, document.head.append(e);
|
|
1150
1224
|
}
|
|
1151
|
-
function
|
|
1225
|
+
function Wn(t) {
|
|
1152
1226
|
return Array.from(document.styleSheets).find(
|
|
1153
|
-
(
|
|
1227
|
+
(n) => n.ownerNode.getAttribute("data-id") === t
|
|
1154
1228
|
);
|
|
1155
1229
|
}
|
|
1156
|
-
function
|
|
1157
|
-
const
|
|
1230
|
+
function Fn(t, n) {
|
|
1231
|
+
const e = [];
|
|
1158
1232
|
let i = [];
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1233
|
+
const o = [], d = (s, l, x, L) => {
|
|
1234
|
+
e.push({
|
|
1161
1235
|
startLineNumber: s,
|
|
1162
|
-
endLineNumber:
|
|
1236
|
+
endLineNumber: x,
|
|
1163
1237
|
startColumn: l,
|
|
1164
|
-
endColumn:
|
|
1165
|
-
}),
|
|
1166
|
-
},
|
|
1167
|
-
|
|
1168
|
-
},
|
|
1169
|
-
const l =
|
|
1170
|
-
l < 0 ||
|
|
1171
|
-
},
|
|
1172
|
-
for (const s of
|
|
1238
|
+
endColumn: L
|
|
1239
|
+
}), S(), p();
|
|
1240
|
+
}, a = (s) => {
|
|
1241
|
+
o.indexOf(s) < 0 && o.push(s);
|
|
1242
|
+
}, m = (s) => {
|
|
1243
|
+
const l = o.indexOf(s);
|
|
1244
|
+
l < 0 || o.splice(l, 1);
|
|
1245
|
+
}, p = () => {
|
|
1246
|
+
for (const s of o)
|
|
1173
1247
|
try {
|
|
1174
1248
|
s(i);
|
|
1175
1249
|
} catch (l) {
|
|
1176
1250
|
console.error(l);
|
|
1177
1251
|
}
|
|
1178
|
-
},
|
|
1252
|
+
}, S = () => {
|
|
1179
1253
|
const s = t.getModel();
|
|
1180
|
-
s && (i =
|
|
1181
|
-
|
|
1254
|
+
s && (i = kn(
|
|
1255
|
+
e.map((l) => [
|
|
1182
1256
|
s.getOffsetAt({
|
|
1183
1257
|
lineNumber: l.startLineNumber,
|
|
1184
1258
|
column: l.startColumn
|
|
@@ -1191,7 +1265,7 @@ function yn(t, e) {
|
|
|
1191
1265
|
/*mergeJoins*/
|
|
1192
1266
|
!0
|
|
1193
1267
|
), 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)));
|
|
1194
|
-
},
|
|
1268
|
+
}, w = (s) => {
|
|
1195
1269
|
const l = {
|
|
1196
1270
|
isDeletion: !1,
|
|
1197
1271
|
isAddition: !1,
|
|
@@ -1199,55 +1273,55 @@ function yn(t, e) {
|
|
|
1199
1273
|
};
|
|
1200
1274
|
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;
|
|
1201
1275
|
}, y = t.onDidChangeModel((s) => {
|
|
1202
|
-
|
|
1203
|
-
}),
|
|
1276
|
+
S(), I();
|
|
1277
|
+
}), A = t.onDidChangeModelContent((s) => {
|
|
1204
1278
|
if (!s.isUndoing)
|
|
1205
1279
|
for (const l of s.changes) {
|
|
1206
|
-
const
|
|
1207
|
-
if (
|
|
1208
|
-
const
|
|
1209
|
-
(
|
|
1210
|
-
), E = !
|
|
1211
|
-
if (
|
|
1212
|
-
const
|
|
1213
|
-
if (
|
|
1214
|
-
|
|
1280
|
+
const x = w(l);
|
|
1281
|
+
if (x.isReplacement || x.isDeletion || x.isAddition) {
|
|
1282
|
+
const L = e.some(
|
|
1283
|
+
(f) => l.range.startLineNumber >= f.startLineNumber && l.range.endLineNumber <= f.endLineNumber && l.range.startColumn >= f.startColumn && l.range.endColumn <= f.endColumn
|
|
1284
|
+
), E = !L && n && l.range.startLineNumber === 1 && l.range.startColumn === 1 && !ie(l.text);
|
|
1285
|
+
if (L || E) {
|
|
1286
|
+
const f = t.getModel();
|
|
1287
|
+
if (f) {
|
|
1288
|
+
f.undo();
|
|
1215
1289
|
return;
|
|
1216
1290
|
}
|
|
1217
1291
|
}
|
|
1218
1292
|
}
|
|
1219
1293
|
}
|
|
1220
|
-
}),
|
|
1221
|
-
y.dispose(),
|
|
1294
|
+
}), h = () => {
|
|
1295
|
+
y.dispose(), A.dispose();
|
|
1222
1296
|
};
|
|
1223
|
-
let
|
|
1297
|
+
let N = [], b = `
|
|
1224
1298
|
.idoc-readonly-mark {
|
|
1225
1299
|
cursor: not-allowed;
|
|
1226
1300
|
z-index: 1;
|
|
1227
1301
|
}
|
|
1228
1302
|
`;
|
|
1229
|
-
if (
|
|
1303
|
+
if (b) {
|
|
1230
1304
|
const s = "monaco-read-only";
|
|
1231
|
-
|
|
1305
|
+
Wn(s) || Ln(b, s), b = null;
|
|
1232
1306
|
}
|
|
1233
|
-
const
|
|
1234
|
-
|
|
1235
|
-
},
|
|
1236
|
-
|
|
1237
|
-
},
|
|
1307
|
+
const v = () => {
|
|
1308
|
+
a(I), I();
|
|
1309
|
+
}, C = () => {
|
|
1310
|
+
m(I), N = t.deltaDecorations(N, []);
|
|
1311
|
+
}, I = () => {
|
|
1238
1312
|
const s = t.getModel();
|
|
1239
|
-
s && (
|
|
1240
|
-
|
|
1241
|
-
i.map(
|
|
1313
|
+
s && (N = t.deltaDecorations(
|
|
1314
|
+
N,
|
|
1315
|
+
i.map(Z(s))
|
|
1242
1316
|
));
|
|
1243
|
-
},
|
|
1244
|
-
const
|
|
1317
|
+
}, Z = (s) => (l) => {
|
|
1318
|
+
const x = s.getPositionAt(l[0]), L = s.getPositionAt(l[1]);
|
|
1245
1319
|
return {
|
|
1246
|
-
range: new
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1320
|
+
range: new r.Range(
|
|
1321
|
+
x.lineNumber,
|
|
1322
|
+
x.column,
|
|
1323
|
+
L.lineNumber,
|
|
1324
|
+
L.column
|
|
1251
1325
|
),
|
|
1252
1326
|
options: {
|
|
1253
1327
|
className: "idoc-readonly-mark"
|
|
@@ -1258,117 +1332,117 @@ function yn(t, e) {
|
|
|
1258
1332
|
get buffer() {
|
|
1259
1333
|
return i;
|
|
1260
1334
|
},
|
|
1261
|
-
exclude:
|
|
1262
|
-
attach:
|
|
1263
|
-
detach:
|
|
1264
|
-
dispose:
|
|
1265
|
-
show:
|
|
1266
|
-
hide:
|
|
1335
|
+
exclude: d,
|
|
1336
|
+
attach: a,
|
|
1337
|
+
detach: m,
|
|
1338
|
+
dispose: h,
|
|
1339
|
+
show: v,
|
|
1340
|
+
hide: C
|
|
1267
1341
|
};
|
|
1268
1342
|
}
|
|
1269
|
-
function
|
|
1343
|
+
function Zn(t, n, e) {
|
|
1270
1344
|
let i = !1;
|
|
1271
|
-
const
|
|
1272
|
-
let
|
|
1273
|
-
const
|
|
1274
|
-
let
|
|
1275
|
-
y =
|
|
1276
|
-
for (
|
|
1277
|
-
for (
|
|
1278
|
-
if (y =
|
|
1279
|
-
|
|
1280
|
-
[
|
|
1281
|
-
[
|
|
1345
|
+
const o = (C) => C[1] < C[0] ? (i = !0, [[C[1], C[0]]]) : [[...C]], d = (C) => i ? C.map((I) => I[1] > I[0] ? m(I) : I).reverse() : C;
|
|
1346
|
+
let a;
|
|
1347
|
+
const m = (C) => (a = C[1], C[1] = C[0], C[0] = a, C), p = o(t);
|
|
1348
|
+
let S, w, y, A, h, N, b, v;
|
|
1349
|
+
y = p[0];
|
|
1350
|
+
for (w of n)
|
|
1351
|
+
for (b = w[0], v = w[1], A = 0; A < p.length; A++) {
|
|
1352
|
+
if (y = p[A], h = y[0], N = y[1], h < b)
|
|
1353
|
+
N < b ? S = [y] : N <= v ? S = [[h, b - 1]] : S = [
|
|
1354
|
+
[h, b - 1],
|
|
1355
|
+
[v + 1, N]
|
|
1282
1356
|
];
|
|
1283
|
-
else if (
|
|
1284
|
-
if (
|
|
1285
|
-
const
|
|
1286
|
-
|
|
1357
|
+
else if (h <= v)
|
|
1358
|
+
if (b === Number.NEGATIVE_INFINITY) {
|
|
1359
|
+
const C = v + 1;
|
|
1360
|
+
S = e === 0 ? [] : [[C, N > C ? N : C]];
|
|
1287
1361
|
} else
|
|
1288
|
-
|
|
1362
|
+
v === Number.POSITIVE_INFINITY ? S = e === 0 ? [] : [[b - 1, b - 1]] : N <= v ? S = e < 0 ? [[b - 1, b - 1]] : e > 0 ? [[v + 1, v + 1]] : [] : S = [[v + 1, N]];
|
|
1289
1363
|
else
|
|
1290
|
-
|
|
1291
|
-
if (
|
|
1292
|
-
return
|
|
1364
|
+
S = [y];
|
|
1365
|
+
if (p.splice(A, 1, ...S), p.length === 1 && p[0][1] < b)
|
|
1366
|
+
return d(p);
|
|
1293
1367
|
}
|
|
1294
|
-
return
|
|
1368
|
+
return d(p);
|
|
1295
1369
|
}
|
|
1296
|
-
function
|
|
1370
|
+
function kn(t, n) {
|
|
1297
1371
|
if (t.length < 2)
|
|
1298
1372
|
return t;
|
|
1299
|
-
const
|
|
1300
|
-
let i = null,
|
|
1373
|
+
const e = [];
|
|
1374
|
+
let i = null, o, d;
|
|
1301
1375
|
t = t.map(
|
|
1302
|
-
(
|
|
1303
|
-
).sort((
|
|
1304
|
-
for (let
|
|
1305
|
-
i =
|
|
1306
|
-
return
|
|
1376
|
+
(a) => (a[1] < a[0] && (o = a[1], a[1] = a[0], a[1] = o), a)
|
|
1377
|
+
).sort((a, m) => a[0] - m[0]), e.push(t[0]);
|
|
1378
|
+
for (let a = 1; a < t.length; a++)
|
|
1379
|
+
i = e[e.length - 1], d = t[a], i[1] === d[0] && !n ? e.push(d) : i[1] === d[0] - 1 && n ? (i[1] = d[1], e.splice(e.length - 1, 1, i)) : i[1] < d[0] ? e.push(d) : i[1] < d[1] && (i[1] = d[1], e.splice(e.length - 1, 1, i));
|
|
1380
|
+
return e;
|
|
1307
1381
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return
|
|
1382
|
+
function P(t, n) {
|
|
1383
|
+
return n.bind(t);
|
|
1310
1384
|
}
|
|
1311
|
-
class
|
|
1312
|
-
constructor(
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1385
|
+
class jn {
|
|
1386
|
+
constructor(n, e) {
|
|
1387
|
+
F(this, "editor");
|
|
1388
|
+
F(this, "intervals");
|
|
1389
|
+
F(this, "disposables", []);
|
|
1316
1390
|
/**
|
|
1317
1391
|
* Flag for `excludeIntervals`
|
|
1318
1392
|
*/
|
|
1319
|
-
|
|
1320
|
-
|
|
1393
|
+
F(this, "prefer", 1);
|
|
1394
|
+
F(this, "lastPrefer", 1);
|
|
1321
1395
|
/**
|
|
1322
1396
|
* Linked to ICodeEditor.onDidChangeCursorPosition event.
|
|
1323
1397
|
*/
|
|
1324
|
-
|
|
1398
|
+
F(this, "onCursor", P(
|
|
1325
1399
|
this,
|
|
1326
|
-
function(
|
|
1327
|
-
if (
|
|
1400
|
+
function(n) {
|
|
1401
|
+
if (n.source === "api")
|
|
1328
1402
|
return;
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1403
|
+
const e = this.getApprovedSelections();
|
|
1404
|
+
e.length !== 0 && this.editor.setSelections(e);
|
|
1331
1405
|
}
|
|
1332
1406
|
));
|
|
1333
|
-
|
|
1334
|
-
|
|
1407
|
+
F(this, "onRectangleSelectionStart", P(this, function({ event: n }) {
|
|
1408
|
+
n.middleButton && (this.lastPrefer = this.prefer, this.prefer = 0, window.addEventListener("pointerup", this.onRectangleSelectionStop));
|
|
1335
1409
|
}));
|
|
1336
|
-
|
|
1410
|
+
F(this, "onRectangleSelectionStop", P(this, function() {
|
|
1337
1411
|
this.prefer = this.lastPrefer, window.removeEventListener("pointerup", this.onRectangleSelectionStop);
|
|
1338
1412
|
}));
|
|
1339
1413
|
/**
|
|
1340
1414
|
* Linked to ICodeEditor.onKeyDown event.
|
|
1341
1415
|
*/
|
|
1342
|
-
|
|
1343
|
-
const
|
|
1344
|
-
if (
|
|
1416
|
+
F(this, "onKey", P(this, function(n) {
|
|
1417
|
+
const e = n.keyCode, i = r.KeyCode;
|
|
1418
|
+
if (n.altKey || i.F1 <= e && e <= i.F19 || n.ctrlKey && e !== i.Backspace)
|
|
1345
1419
|
return;
|
|
1346
|
-
if (
|
|
1420
|
+
if (e === i.UpArrow || e === i.LeftArrow || e === i.Home || e === i.PageUp) {
|
|
1347
1421
|
this.prefer = -1;
|
|
1348
1422
|
return;
|
|
1349
1423
|
}
|
|
1350
|
-
if (
|
|
1424
|
+
if (e === i.DownArrow || e === i.RightArrow || e === i.End || e === i.PageDown) {
|
|
1351
1425
|
this.prefer = 1;
|
|
1352
1426
|
return;
|
|
1353
1427
|
}
|
|
1354
|
-
const
|
|
1355
|
-
let
|
|
1356
|
-
if (
|
|
1357
|
-
|
|
1358
|
-
else if (
|
|
1359
|
-
|
|
1428
|
+
const o = this.getSelections(), d = this.intervals.buffer;
|
|
1429
|
+
let a;
|
|
1430
|
+
if (e === i.Delete)
|
|
1431
|
+
a = (m) => m[0] === m[1] && d.find((p) => m[1] + 1 === p[0]) != null;
|
|
1432
|
+
else if (e === i.Backspace)
|
|
1433
|
+
a = (m) => m[0] === m[1] && d.find((p) => p[1] + 1 === m[0]) != null;
|
|
1360
1434
|
else
|
|
1361
1435
|
return;
|
|
1362
|
-
|
|
1436
|
+
o.findIndex(a) !== -1 && (n.stopPropagation(), n.preventDefault());
|
|
1363
1437
|
}));
|
|
1364
|
-
|
|
1365
|
-
let
|
|
1438
|
+
F(this, "getOffsetAt", P(this, function(n) {
|
|
1439
|
+
let e;
|
|
1366
1440
|
for (let i = 0; i < this.intervals.buffer.length; i++)
|
|
1367
|
-
if (
|
|
1368
|
-
return
|
|
1441
|
+
if (e = this.intervals.buffer[i], n <= e[1])
|
|
1442
|
+
return e[0] - n < n - e[1] ? e[0] : e[1];
|
|
1369
1443
|
}));
|
|
1370
1444
|
var i;
|
|
1371
|
-
this.editor =
|
|
1445
|
+
this.editor = n, this.intervals = Fn(n, e), (i = this.editor.getModel()) == null || i.setEOL(r.editor.EndOfLineSequence.LF);
|
|
1372
1446
|
}
|
|
1373
1447
|
enable() {
|
|
1374
1448
|
this.disposables.push(
|
|
@@ -1378,140 +1452,140 @@ class Rn {
|
|
|
1378
1452
|
), this.intervals.show();
|
|
1379
1453
|
}
|
|
1380
1454
|
dispose() {
|
|
1381
|
-
for (const
|
|
1382
|
-
|
|
1455
|
+
for (const n of this.disposables)
|
|
1456
|
+
n.dispose();
|
|
1383
1457
|
this.disposables.splice(0);
|
|
1384
1458
|
}
|
|
1385
|
-
exclude(
|
|
1386
|
-
arguments.length === 1 ? this.intervals.exclude(
|
|
1459
|
+
exclude(n, e, i, o) {
|
|
1460
|
+
arguments.length === 1 ? this.intervals.exclude(n, 0, n, Number.MAX_SAFE_INTEGER) : this.intervals.exclude(n, e, i, o);
|
|
1387
1461
|
}
|
|
1388
1462
|
getApprovedSelections() {
|
|
1389
|
-
const
|
|
1463
|
+
const n = this.editor.getModel();
|
|
1390
1464
|
return this.getSelections().map(
|
|
1391
|
-
(i) =>
|
|
1465
|
+
(i) => Zn(
|
|
1392
1466
|
i,
|
|
1393
1467
|
this.intervals.buffer,
|
|
1394
1468
|
this.prefer
|
|
1395
1469
|
)
|
|
1396
1470
|
).flat().map((i) => {
|
|
1397
|
-
const
|
|
1398
|
-
return new
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1471
|
+
const o = n.getPositionAt(i[0]), d = n.getPositionAt(i[1]);
|
|
1472
|
+
return new r.Selection(
|
|
1473
|
+
o.lineNumber,
|
|
1474
|
+
o.column,
|
|
1475
|
+
d.lineNumber,
|
|
1476
|
+
d.column
|
|
1403
1477
|
);
|
|
1404
1478
|
});
|
|
1405
1479
|
}
|
|
1406
1480
|
getSelections() {
|
|
1407
|
-
const
|
|
1408
|
-
return (this.editor.getSelections() || []).map((
|
|
1409
|
-
|
|
1410
|
-
lineNumber:
|
|
1411
|
-
column:
|
|
1481
|
+
const n = this.editor.getModel();
|
|
1482
|
+
return (this.editor.getSelections() || []).map((e) => [
|
|
1483
|
+
n.getOffsetAt({
|
|
1484
|
+
lineNumber: e.selectionStartLineNumber,
|
|
1485
|
+
column: e.selectionStartColumn
|
|
1412
1486
|
}),
|
|
1413
|
-
|
|
1414
|
-
lineNumber:
|
|
1415
|
-
column:
|
|
1487
|
+
n.getOffsetAt({
|
|
1488
|
+
lineNumber: e.positionLineNumber,
|
|
1489
|
+
column: e.positionColumn
|
|
1416
1490
|
})
|
|
1417
1491
|
]);
|
|
1418
1492
|
}
|
|
1419
1493
|
}
|
|
1420
|
-
const
|
|
1421
|
-
/* @__PURE__ */
|
|
1422
|
-
/* @__PURE__ */
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1425
|
-
/* @__PURE__ */
|
|
1426
|
-
] }) }) }),
|
|
1494
|
+
const Xn = new RegExp("^[ s]+(exposed|Function)", "i"), ee = () => /* @__PURE__ */ R("div", { className: "absolute inset-0 animate-pulse", children: /* @__PURE__ */ R("div", { className: "w-full space-y-4 px-4 py-1", children: /* @__PURE__ */ J("div", { className: "space-y-2", children: [
|
|
1495
|
+
/* @__PURE__ */ R("div", { className: "h-3 w-3/4 rounded bg-grey-200" }),
|
|
1496
|
+
/* @__PURE__ */ R("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1497
|
+
/* @__PURE__ */ R("div", { className: "h-3 w-5/6 rounded bg-grey-200" }),
|
|
1498
|
+
/* @__PURE__ */ R("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1499
|
+
/* @__PURE__ */ R("div", { className: "h-3 rounded bg-grey-200" })
|
|
1500
|
+
] }) }) }), At = ({
|
|
1427
1501
|
path: t,
|
|
1428
|
-
initialValue:
|
|
1429
|
-
theme:
|
|
1502
|
+
initialValue: n,
|
|
1503
|
+
theme: e = "fd-dark",
|
|
1430
1504
|
type: i,
|
|
1431
|
-
language:
|
|
1432
|
-
onChange:
|
|
1433
|
-
options:
|
|
1434
|
-
extra:
|
|
1435
|
-
showAlerts:
|
|
1436
|
-
lspProps:
|
|
1437
|
-
...
|
|
1505
|
+
language: o,
|
|
1506
|
+
onChange: d,
|
|
1507
|
+
options: a = {},
|
|
1508
|
+
extra: m = {},
|
|
1509
|
+
showAlerts: p = !1,
|
|
1510
|
+
lspProps: S,
|
|
1511
|
+
...w
|
|
1438
1512
|
}) => {
|
|
1439
|
-
const { initialLineInfo: y, initialSelectionInfo:
|
|
1440
|
-
function
|
|
1441
|
-
|
|
1513
|
+
const { initialLineInfo: y, initialSelectionInfo: A } = m, { editor: h, setEditor: N } = pn(), { inited: b } = S;
|
|
1514
|
+
function v(I) {
|
|
1515
|
+
o === "css" && I.languages.registerCompletionItemProvider("css", Nn), o === "json" && I.languages.json && I.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
1442
1516
|
validate: !0,
|
|
1443
1517
|
schemas: [
|
|
1444
1518
|
{
|
|
1445
1519
|
uri: "condition-schema.json",
|
|
1446
1520
|
fileMatch: ["*.condition.json"],
|
|
1447
|
-
schema:
|
|
1521
|
+
schema: xn
|
|
1448
1522
|
}
|
|
1449
1523
|
]
|
|
1450
1524
|
});
|
|
1451
1525
|
}
|
|
1452
|
-
function
|
|
1453
|
-
|
|
1454
|
-
const s =
|
|
1455
|
-
if (s && (s.updateOptions({ insertSpaces: !1 }),
|
|
1456
|
-
var
|
|
1457
|
-
const l = (
|
|
1526
|
+
function C(I, Z) {
|
|
1527
|
+
N(I);
|
|
1528
|
+
const s = I.getModel();
|
|
1529
|
+
if (s && (s.updateOptions({ insertSpaces: !1 }), I.onKeyUp(() => {
|
|
1530
|
+
var x;
|
|
1531
|
+
const l = (x = I.getPosition()) == null ? void 0 : x.lineNumber;
|
|
1458
1532
|
if (l) {
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1533
|
+
const L = s.getLineFirstNonWhitespaceColumn(l), E = s.getLineLength(l), f = s.getLineContent(l);
|
|
1534
|
+
Xn.test(f) && I.executeEdits("edit-handler", [
|
|
1461
1535
|
{
|
|
1462
|
-
range: new
|
|
1536
|
+
range: new Z.Range(
|
|
1463
1537
|
l,
|
|
1464
1538
|
0,
|
|
1465
1539
|
l,
|
|
1466
1540
|
E
|
|
1467
1541
|
),
|
|
1468
|
-
text:
|
|
1469
|
-
|
|
1470
|
-
E -
|
|
1542
|
+
text: f.substr(
|
|
1543
|
+
L - 1,
|
|
1544
|
+
E - L
|
|
1471
1545
|
)
|
|
1472
1546
|
}
|
|
1473
1547
|
]);
|
|
1474
1548
|
}
|
|
1475
|
-
})), i ===
|
|
1476
|
-
const l = new
|
|
1549
|
+
})), i === Se.METHOD && ie(n)) {
|
|
1550
|
+
const l = new jn(I, !0);
|
|
1477
1551
|
l.exclude(1, 1, 1, Number.POSITIVE_INFINITY), l.enable();
|
|
1478
1552
|
}
|
|
1479
1553
|
}
|
|
1480
|
-
return
|
|
1481
|
-
if (!
|
|
1554
|
+
return D(() => {
|
|
1555
|
+
if (!h)
|
|
1482
1556
|
return;
|
|
1483
|
-
const { line:
|
|
1484
|
-
|
|
1485
|
-
}, [y,
|
|
1486
|
-
if (!
|
|
1557
|
+
const { line: I, offset: Z } = y || {};
|
|
1558
|
+
I && un(h, I, Z);
|
|
1559
|
+
}, [y, h]), D(() => {
|
|
1560
|
+
if (!h)
|
|
1487
1561
|
return;
|
|
1488
|
-
const { selection:
|
|
1489
|
-
|
|
1490
|
-
}, [
|
|
1491
|
-
|
|
1492
|
-
/* @__PURE__ */
|
|
1493
|
-
|
|
1562
|
+
const { selection: I } = A || {};
|
|
1563
|
+
I && dn(h, I);
|
|
1564
|
+
}, [A, h]), b ? /* @__PURE__ */ J(fe, { children: [
|
|
1565
|
+
p ? /* @__PURE__ */ R(yn, { lspProps: S }) : null,
|
|
1566
|
+
/* @__PURE__ */ R(
|
|
1567
|
+
he,
|
|
1494
1568
|
{
|
|
1495
1569
|
options: {
|
|
1496
1570
|
readOnly: !0,
|
|
1497
1571
|
fontSize: 12,
|
|
1498
1572
|
"semanticHighlighting.enabled": !0,
|
|
1499
1573
|
padding: { top: 10 },
|
|
1500
|
-
...
|
|
1574
|
+
...a
|
|
1501
1575
|
},
|
|
1502
|
-
path:
|
|
1503
|
-
value:
|
|
1576
|
+
path: j(t),
|
|
1577
|
+
value: n,
|
|
1504
1578
|
theme: "fd-dark",
|
|
1505
|
-
onChange: (
|
|
1506
|
-
language:
|
|
1507
|
-
beforeMount:
|
|
1508
|
-
onMount:
|
|
1509
|
-
loading: /* @__PURE__ */
|
|
1510
|
-
...
|
|
1579
|
+
onChange: (I) => d && d(I || ""),
|
|
1580
|
+
language: o,
|
|
1581
|
+
beforeMount: v,
|
|
1582
|
+
onMount: C,
|
|
1583
|
+
loading: /* @__PURE__ */ R(ee, {}),
|
|
1584
|
+
...w
|
|
1511
1585
|
}
|
|
1512
1586
|
)
|
|
1513
|
-
] }) : /* @__PURE__ */
|
|
1514
|
-
},
|
|
1587
|
+
] }) : /* @__PURE__ */ R(ee, {});
|
|
1588
|
+
}, Kn = {
|
|
1515
1589
|
name: "4d",
|
|
1516
1590
|
displayName: "%displayName%",
|
|
1517
1591
|
description: "%description%",
|
|
@@ -1536,42 +1610,42 @@ const xn = new RegExp("^[ s]+(exposed|Function)", "i"), _ = () => /* @__PURE__ *
|
|
|
1536
1610
|
}
|
|
1537
1611
|
]
|
|
1538
1612
|
}
|
|
1539
|
-
}, { registerFileUrl:
|
|
1613
|
+
}, { registerFileUrl: $, whenReady: pt } = nn(Kn, void 0, {
|
|
1540
1614
|
system: !0
|
|
1541
1615
|
});
|
|
1542
|
-
|
|
1616
|
+
$(
|
|
1543
1617
|
"./syntaxes/4d.tmLanguage.json",
|
|
1544
1618
|
new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=", self.location).toString(),
|
|
1545
1619
|
{ mimeType: "application/json", size: 1592 }
|
|
1546
1620
|
);
|
|
1547
|
-
|
|
1621
|
+
$(
|
|
1548
1622
|
"./language-configuration.json",
|
|
1549
1623
|
new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==", self.location).toString(),
|
|
1550
1624
|
{ mimeType: "application/json", size: 1723 }
|
|
1551
1625
|
);
|
|
1552
|
-
|
|
1626
|
+
$(
|
|
1553
1627
|
"package.json",
|
|
1554
1628
|
new URL("data:application/json;base64,ewogICAgIm5hbWUiOiAiNGQiLAogICAgImRpc3BsYXlOYW1lIjogIiVkaXNwbGF5TmFtZSUiLAogICAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICAgInZlcnNpb24iOiAiMS4wLjAiLAogICAgInB1Ymxpc2hlciI6ICJ2c2NvZGUiLAogICAgImxpY2Vuc2UiOiAiTUlUIiwKICAgICJlbmdpbmVzIjogewogICAgICAgICJ2c2NvZGUiOiAiMC4xMC54IgogICAgfSwKICAgICJzY3JpcHRzIjogewogICAgICAgICJ1cGRhdGUtZ3JhbW1hciI6ICJub2RlIC4uL25vZGVfbW9kdWxlcy92c2NvZGUtZ3JhbW1hci11cGRhdGVyL2JpbiBtaWNyb3NvZnQvdnNjb2RlLTRkIGdyYW1tYXJzLzRkLmNzb24gLi9zeW50YXhlcy80ZC50bUxhbmd1YWdlLmpzb24iCiAgICB9LAogICAgImNhdGVnb3JpZXMiOiBbCiAgICAgICAgIlByb2dyYW1taW5nIExhbmd1YWdlcyIKICAgIF0sCiAgICAiY29udHJpYnV0ZXMiOiB7CiAgICAgICAgImxhbmd1YWdlcyI6IFsKICAgICAgICAgICAgewogICAgICAgICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgICAgICAgImFsaWFzZXMiOiBbIjREIiwgIjRkIl0sCiAgICAgICAgICAgICAgImV4dGVuc2lvbnMiOiBbIi40ZG0iLCAiLjRxcyJdLAogICAgICAgICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdLAogICAgICAgICAgImdyYW1tYXJzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICAgICAgICB9CiAgICAgICAgICBdCiAgICB9LAogICAgInJlcG9zaXRvcnkiOiB7CiAgICAgICAgInR5cGUiOiAiZ2l0IiwKICAgICAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICAgIH0KfQ==", self.location).toString(),
|
|
1555
1629
|
{ mimeType: "application/json", size: 1006 }
|
|
1556
1630
|
);
|
|
1557
|
-
|
|
1631
|
+
$(
|
|
1558
1632
|
"package.nls.json",
|
|
1559
1633
|
new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K", self.location).toString(),
|
|
1560
1634
|
{ mimeType: "application/json", size: 135 }
|
|
1561
1635
|
);
|
|
1562
1636
|
export {
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1637
|
+
yn as Alerts,
|
|
1638
|
+
At as CodeEditor,
|
|
1639
|
+
ft as CodeEditorProvider,
|
|
1640
|
+
Ct as LSPProvider,
|
|
1641
|
+
re as _await,
|
|
1642
|
+
an as configureServices,
|
|
1643
|
+
j as getFileSystemPath,
|
|
1644
|
+
It as getFunctionOffset,
|
|
1645
|
+
ln as initMonacoUserConfiguration,
|
|
1646
|
+
un as jumpToLine,
|
|
1647
|
+
dn as jumpToSelection,
|
|
1648
|
+
pn as useCodeEditor,
|
|
1649
|
+
mt as useLSP
|
|
1576
1650
|
};
|
|
1577
1651
|
//# sourceMappingURL=index.es.js.map
|