@lvce-editor/editor-worker 7.17.0 → 7.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editorWorkerMain.js +41 -33
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -1080,31 +1080,32 @@ const create$9 = rpcId => {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
1082
|
};
|
|
1083
|
+
const ClipBoardProcess$1 = 3401;
|
|
1084
|
+
const ClipBoardWorker$1 = 3400;
|
|
1085
|
+
const ColorPickerWorker = 302;
|
|
1086
|
+
const CompletionWorker = 301;
|
|
1083
1087
|
const DebugWorker$1 = 55;
|
|
1084
1088
|
const EditorWorker$1 = 99;
|
|
1089
|
+
const EmbedsProcess$1 = 207;
|
|
1090
|
+
const EmbedsWorker = 208;
|
|
1091
|
+
const ErrorWorker$1 = 3308;
|
|
1092
|
+
const ExtensionDetailWorker = 3402;
|
|
1085
1093
|
const ExtensionHostWorker = 44;
|
|
1094
|
+
const FileSystemProcess$1 = 210;
|
|
1095
|
+
const FileSystemWorker$1 = 209;
|
|
1086
1096
|
const MainProcess$1 = -5;
|
|
1087
|
-
const
|
|
1097
|
+
const MarkdownWorker$1 = 300;
|
|
1098
|
+
const OutputWorker = 7001;
|
|
1099
|
+
const ProblemsWorker = 3403;
|
|
1088
1100
|
const RendererProcess$1 = 1670;
|
|
1101
|
+
const RendererWorker$1 = 1;
|
|
1089
1102
|
const SearchProcess$1 = 77;
|
|
1090
1103
|
const SearchProcessElectron = 2;
|
|
1091
1104
|
const SharedProcess$1 = 1;
|
|
1092
|
-
const SourceControlWorker = 66;
|
|
1093
|
-
const EmbedsProcess$1 = 207;
|
|
1094
|
-
const EmbedsWorker = 208;
|
|
1095
|
-
const FileSystemWorker$1 = 209;
|
|
1096
|
-
const FileSystemProcess$1 = 210;
|
|
1097
|
-
const MarkdownWorker$1 = 300;
|
|
1098
|
-
const CompletionWorker = 301;
|
|
1099
|
-
const ColorPickerWorker = 302;
|
|
1100
1105
|
const SourceActionWorker = 303;
|
|
1101
|
-
const
|
|
1106
|
+
const SourceControlWorker = 66;
|
|
1102
1107
|
const SyntaxHighlightingWorker$1 = 3309;
|
|
1103
|
-
const
|
|
1104
|
-
const ClipBoardProcess$1 = 3401;
|
|
1105
|
-
const ExtensionDetailWorker = 3402;
|
|
1106
|
-
const ProblemsWorker = 3403;
|
|
1107
|
-
const OutputWorker = 7001;
|
|
1108
|
+
const TestWorker = 9001;
|
|
1108
1109
|
const RpcId = {
|
|
1109
1110
|
__proto__: null,
|
|
1110
1111
|
ClipBoardProcess: ClipBoardProcess$1,
|
|
@@ -1131,7 +1132,8 @@ const RpcId = {
|
|
|
1131
1132
|
SharedProcess: SharedProcess$1,
|
|
1132
1133
|
SourceActionWorker,
|
|
1133
1134
|
SourceControlWorker,
|
|
1134
|
-
SyntaxHighlightingWorker: SyntaxHighlightingWorker$1
|
|
1135
|
+
SyntaxHighlightingWorker: SyntaxHighlightingWorker$1,
|
|
1136
|
+
TestWorker
|
|
1135
1137
|
};
|
|
1136
1138
|
const {
|
|
1137
1139
|
invoke: invoke$9,
|
|
@@ -5285,10 +5287,12 @@ const newStateGenerator$3 = async (state, parentUid) => {
|
|
|
5285
5287
|
width,
|
|
5286
5288
|
height
|
|
5287
5289
|
} = state;
|
|
5288
|
-
const
|
|
5290
|
+
const {
|
|
5291
|
+
newState
|
|
5292
|
+
} = get$4(parentUid);
|
|
5289
5293
|
const {
|
|
5290
5294
|
languageId
|
|
5291
|
-
} =
|
|
5295
|
+
} = newState;
|
|
5292
5296
|
await invoke$3('Completions.create', uid, x, y, width, height, parentUid, languageId);
|
|
5293
5297
|
await invoke$3('Completions.loadContent', uid);
|
|
5294
5298
|
const diff = await invoke$3('Completions.diff2', uid);
|
|
@@ -5439,10 +5443,12 @@ const newStateGenerator$1 = async (state, parentUid) => {
|
|
|
5439
5443
|
width,
|
|
5440
5444
|
height
|
|
5441
5445
|
} = state;
|
|
5442
|
-
const
|
|
5446
|
+
const {
|
|
5447
|
+
newState
|
|
5448
|
+
} = get$4(parentUid);
|
|
5443
5449
|
const {
|
|
5444
5450
|
languageId
|
|
5445
|
-
} =
|
|
5451
|
+
} = newState;
|
|
5446
5452
|
await invoke$4('Rename.create', uid, x, y, width, height, parentUid, languageId);
|
|
5447
5453
|
await invoke$4('Rename.loadContent', uid);
|
|
5448
5454
|
const diff = await invoke$4('Rename.diff2', uid);
|
|
@@ -7989,11 +7995,6 @@ const renderHover = (oldState, newState) => {
|
|
|
7989
7995
|
return commands;
|
|
7990
7996
|
};
|
|
7991
7997
|
|
|
7992
|
-
const removeWidget$1 = widget => {
|
|
7993
|
-
// @ts-ignore
|
|
7994
|
-
return [['Viewlet.send', widget.newState.uid, 'dispose']];
|
|
7995
|
-
};
|
|
7996
|
-
|
|
7997
7998
|
const render$9 = widget => {
|
|
7998
7999
|
const commands = renderFull$4(widget.oldState, widget.newState);
|
|
7999
8000
|
const wrappedCommands = [];
|
|
@@ -8012,7 +8013,9 @@ const render$9 = widget => {
|
|
|
8012
8013
|
const add$5 = widget => {
|
|
8013
8014
|
return addWidget$1(widget, 'EditorRename', render$9);
|
|
8014
8015
|
};
|
|
8015
|
-
const remove$5 =
|
|
8016
|
+
const remove$5 = widget => {
|
|
8017
|
+
return [['Viewlet.dispose', widget.newState.uid]];
|
|
8018
|
+
};
|
|
8016
8019
|
const {
|
|
8017
8020
|
handleInput,
|
|
8018
8021
|
close,
|
|
@@ -9580,7 +9583,7 @@ const renderWidget = widget => {
|
|
|
9580
9583
|
}
|
|
9581
9584
|
return module.render(widget);
|
|
9582
9585
|
};
|
|
9583
|
-
const removeWidget = widget => {
|
|
9586
|
+
const removeWidget$1 = widget => {
|
|
9584
9587
|
const module = get$5(widget.id);
|
|
9585
9588
|
if (!module) {
|
|
9586
9589
|
throw new Error('unsupported widget');
|
|
@@ -9735,7 +9738,7 @@ const renderWidgets = {
|
|
|
9735
9738
|
}
|
|
9736
9739
|
const removeCommands = [];
|
|
9737
9740
|
for (const removedWidget of removedWidgets) {
|
|
9738
|
-
const childCommands = removeWidget(removedWidget);
|
|
9741
|
+
const childCommands = removeWidget$1(removedWidget);
|
|
9739
9742
|
if (childCommands.length > 0) {
|
|
9740
9743
|
removeCommands.push(...childCommands);
|
|
9741
9744
|
}
|
|
@@ -10162,6 +10165,11 @@ const listen = async () => {
|
|
|
10162
10165
|
set$8(rpc);
|
|
10163
10166
|
};
|
|
10164
10167
|
|
|
10168
|
+
const removeWidget = widget => {
|
|
10169
|
+
// @ts-ignore
|
|
10170
|
+
return [['Viewlet.send', widget.newState.uid, 'dispose']];
|
|
10171
|
+
};
|
|
10172
|
+
|
|
10165
10173
|
const CodeGeneratorInput = 'CodeGeneratorInput';
|
|
10166
10174
|
|
|
10167
10175
|
const getCodeGeneratorVirtualDom = state => {
|
|
@@ -10245,7 +10253,7 @@ const render$6 = widget => {
|
|
|
10245
10253
|
const add$4 = widget => {
|
|
10246
10254
|
return addWidget$1(widget, 'EditorCodeGenerator', render$6);
|
|
10247
10255
|
};
|
|
10248
|
-
const remove$4 = removeWidget
|
|
10256
|
+
const remove$4 = removeWidget;
|
|
10249
10257
|
|
|
10250
10258
|
const EditorCodeGeneratorWidget = {
|
|
10251
10259
|
__proto__: null,
|
|
@@ -10279,7 +10287,7 @@ const render$5 = widget => {
|
|
|
10279
10287
|
const add$3 = widget => {
|
|
10280
10288
|
return addWidget$1(widget, 'ColorPicker', render$5);
|
|
10281
10289
|
};
|
|
10282
|
-
const remove$3 = removeWidget
|
|
10290
|
+
const remove$3 = removeWidget;
|
|
10283
10291
|
const Commands = {};
|
|
10284
10292
|
|
|
10285
10293
|
const EditorColorPickerWidget = {
|
|
@@ -10384,7 +10392,7 @@ const render$3 = widget => {
|
|
|
10384
10392
|
const add$2 = widget => {
|
|
10385
10393
|
return addWidget$1(widget, 'EditorCompletionDetails', render$3);
|
|
10386
10394
|
};
|
|
10387
|
-
const remove$2 = removeWidget
|
|
10395
|
+
const remove$2 = removeWidget;
|
|
10388
10396
|
const handleEditorType = (editor, state) => {
|
|
10389
10397
|
const completionState = getCompletionState(editor);
|
|
10390
10398
|
if (!completionState) {
|
|
@@ -10441,7 +10449,7 @@ const render$2 = widget => {
|
|
|
10441
10449
|
const add$1 = widget => {
|
|
10442
10450
|
return addWidget$1(widget, 'EditorHover', render$2);
|
|
10443
10451
|
};
|
|
10444
|
-
const remove$1 = removeWidget
|
|
10452
|
+
const remove$1 = removeWidget;
|
|
10445
10453
|
|
|
10446
10454
|
const EditorHoverWidget = {
|
|
10447
10455
|
__proto__: null,
|
|
@@ -10577,7 +10585,7 @@ const render = widget => {
|
|
|
10577
10585
|
const add = widget => {
|
|
10578
10586
|
return addWidget$1(widget, 'EditorSourceActions', render);
|
|
10579
10587
|
};
|
|
10580
|
-
const remove = removeWidget
|
|
10588
|
+
const remove = removeWidget;
|
|
10581
10589
|
|
|
10582
10590
|
const EditorSourceActionWidget = {
|
|
10583
10591
|
__proto__: null,
|