@lvce-editor/editor-worker 8.2.0 → 8.4.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 +164 -45
- package/package.json +2 -2
package/dist/editorWorkerMain.js
CHANGED
|
@@ -545,7 +545,7 @@ const set$d = (id, fn) => {
|
|
|
545
545
|
const get$7 = id => {
|
|
546
546
|
return callbacks[id];
|
|
547
547
|
};
|
|
548
|
-
const remove$
|
|
548
|
+
const remove$9 = id => {
|
|
549
549
|
delete callbacks[id];
|
|
550
550
|
};
|
|
551
551
|
let id = 0;
|
|
@@ -730,7 +730,7 @@ const resolve = (id, response) => {
|
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
fn(response);
|
|
733
|
-
remove$
|
|
733
|
+
remove$9(id);
|
|
734
734
|
};
|
|
735
735
|
const E_COMMAND_NOT_FOUND = 'E_COMMAND_NOT_FOUND';
|
|
736
736
|
const getErrorType = prettyError => {
|
|
@@ -1063,12 +1063,6 @@ const createMockRpc = ({
|
|
|
1063
1063
|
return mockRpc;
|
|
1064
1064
|
};
|
|
1065
1065
|
|
|
1066
|
-
const DebugWorker = 55;
|
|
1067
|
-
const EditorWorker = 99;
|
|
1068
|
-
const ExtensionHostWorker = 44;
|
|
1069
|
-
const MarkdownWorker = 300;
|
|
1070
|
-
const RendererWorker$1 = 1;
|
|
1071
|
-
|
|
1072
1066
|
const CodeGenerator = 1;
|
|
1073
1067
|
const ColorPicker$1 = 2;
|
|
1074
1068
|
const Completion = 3;
|
|
@@ -1078,6 +1072,12 @@ const Hover = 6;
|
|
|
1078
1072
|
const Rename$1 = 7;
|
|
1079
1073
|
const SourceAction$1 = 8;
|
|
1080
1074
|
|
|
1075
|
+
const DebugWorker = 55;
|
|
1076
|
+
const EditorWorker = 99;
|
|
1077
|
+
const ExtensionHostWorker = 44;
|
|
1078
|
+
const MarkdownWorker = 300;
|
|
1079
|
+
const RendererWorker$1 = 1;
|
|
1080
|
+
|
|
1081
1081
|
const rpcs = Object.create(null);
|
|
1082
1082
|
const set$c = (id, rpc) => {
|
|
1083
1083
|
rpcs[id] = rpc;
|
|
@@ -1085,6 +1085,9 @@ const set$c = (id, rpc) => {
|
|
|
1085
1085
|
const get$6 = id => {
|
|
1086
1086
|
return rpcs[id];
|
|
1087
1087
|
};
|
|
1088
|
+
const remove$8 = id => {
|
|
1089
|
+
delete rpcs[id];
|
|
1090
|
+
};
|
|
1088
1091
|
|
|
1089
1092
|
const create$9 = rpcId => {
|
|
1090
1093
|
return {
|
|
@@ -1114,7 +1117,7 @@ const {
|
|
|
1114
1117
|
invoke: invoke$b,
|
|
1115
1118
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
1116
1119
|
set: set$b,
|
|
1117
|
-
dispose: dispose$
|
|
1120
|
+
dispose: dispose$3
|
|
1118
1121
|
} = create$9(ExtensionHostWorker);
|
|
1119
1122
|
const executeReferenceProvider = async (id, offset) => {
|
|
1120
1123
|
// @ts-ignore
|
|
@@ -1138,7 +1141,7 @@ const registerMockRpc$1 = commandMap => {
|
|
|
1138
1141
|
|
|
1139
1142
|
const ExtensionHost = {
|
|
1140
1143
|
__proto__: null,
|
|
1141
|
-
dispose: dispose$
|
|
1144
|
+
dispose: dispose$3,
|
|
1142
1145
|
executeFileReferenceProvider,
|
|
1143
1146
|
executeReferenceProvider,
|
|
1144
1147
|
getRuntimeStatus,
|
|
@@ -1152,7 +1155,7 @@ const {
|
|
|
1152
1155
|
invoke: invoke$a,
|
|
1153
1156
|
invokeAndTransfer: invokeAndTransfer$2,
|
|
1154
1157
|
set: set$a,
|
|
1155
|
-
dispose: dispose$
|
|
1158
|
+
dispose: dispose$2
|
|
1156
1159
|
} = create$9(RendererWorker$1);
|
|
1157
1160
|
const searchFileHtml = async uri => {
|
|
1158
1161
|
return invoke$a('ExtensionHost.searchFileWithHtml', uri);
|
|
@@ -1424,7 +1427,7 @@ const RendererWorker = {
|
|
|
1424
1427
|
closeWidget,
|
|
1425
1428
|
confirm,
|
|
1426
1429
|
disableExtension,
|
|
1427
|
-
dispose: dispose$
|
|
1430
|
+
dispose: dispose$2,
|
|
1428
1431
|
enableExtension,
|
|
1429
1432
|
getActiveEditorId,
|
|
1430
1433
|
getAllExtensions,
|
|
@@ -1501,12 +1504,12 @@ const {
|
|
|
1501
1504
|
invoke: invoke$9,
|
|
1502
1505
|
invokeAndTransfer: invokeAndTransfer$1,
|
|
1503
1506
|
set: set$9,
|
|
1504
|
-
dispose
|
|
1507
|
+
dispose: dispose$1
|
|
1505
1508
|
} = create$9(MarkdownWorker);
|
|
1506
1509
|
|
|
1507
1510
|
const SyntaxHighlightingWorker = {
|
|
1508
1511
|
__proto__: null,
|
|
1509
|
-
dispose,
|
|
1512
|
+
dispose: dispose$1,
|
|
1510
1513
|
invoke: invoke$9,
|
|
1511
1514
|
invokeAndTransfer: invokeAndTransfer$1,
|
|
1512
1515
|
set: set$9
|
|
@@ -1573,15 +1576,15 @@ const launchColorPickerWorker = async () => {
|
|
|
1573
1576
|
return launchWorker(name, url);
|
|
1574
1577
|
};
|
|
1575
1578
|
|
|
1576
|
-
let workerPromise$
|
|
1577
|
-
const getOrCreate$
|
|
1578
|
-
if (!workerPromise$
|
|
1579
|
-
workerPromise$
|
|
1579
|
+
let workerPromise$3;
|
|
1580
|
+
const getOrCreate$4 = () => {
|
|
1581
|
+
if (!workerPromise$3) {
|
|
1582
|
+
workerPromise$3 = launchColorPickerWorker();
|
|
1580
1583
|
}
|
|
1581
|
-
return workerPromise$
|
|
1584
|
+
return workerPromise$3;
|
|
1582
1585
|
};
|
|
1583
1586
|
const invoke$7 = async (method, ...params) => {
|
|
1584
|
-
const worker = await getOrCreate$
|
|
1587
|
+
const worker = await getOrCreate$4();
|
|
1585
1588
|
return await worker.invoke(method, ...params);
|
|
1586
1589
|
};
|
|
1587
1590
|
|
|
@@ -2005,7 +2008,7 @@ const createMeasureContext = () => {
|
|
|
2005
2008
|
const state$8 = {
|
|
2006
2009
|
ctx: undefined
|
|
2007
2010
|
};
|
|
2008
|
-
const getOrCreate$
|
|
2011
|
+
const getOrCreate$3 = createCtx => {
|
|
2009
2012
|
if (state$8.ctx) {
|
|
2010
2013
|
return state$8.ctx;
|
|
2011
2014
|
}
|
|
@@ -2014,7 +2017,7 @@ const getOrCreate$4 = createCtx => {
|
|
|
2014
2017
|
};
|
|
2015
2018
|
|
|
2016
2019
|
const getContext = () => {
|
|
2017
|
-
const ctx = getOrCreate$
|
|
2020
|
+
const ctx = getOrCreate$3(createMeasureContext);
|
|
2018
2021
|
return ctx;
|
|
2019
2022
|
};
|
|
2020
2023
|
|
|
@@ -3338,15 +3341,15 @@ const launchRenameWorker = async () => {
|
|
|
3338
3341
|
return rpc;
|
|
3339
3342
|
};
|
|
3340
3343
|
|
|
3341
|
-
let workerPromise$
|
|
3342
|
-
const getOrCreate$
|
|
3343
|
-
if (!workerPromise$
|
|
3344
|
-
workerPromise$
|
|
3344
|
+
let workerPromise$2;
|
|
3345
|
+
const getOrCreate$2 = () => {
|
|
3346
|
+
if (!workerPromise$2) {
|
|
3347
|
+
workerPromise$2 = launchRenameWorker();
|
|
3345
3348
|
}
|
|
3346
|
-
return workerPromise$
|
|
3349
|
+
return workerPromise$2;
|
|
3347
3350
|
};
|
|
3348
3351
|
const invoke$5 = async (method, ...params) => {
|
|
3349
|
-
const worker = await getOrCreate$
|
|
3352
|
+
const worker = await getOrCreate$2();
|
|
3350
3353
|
return await worker.invoke(method, ...params);
|
|
3351
3354
|
};
|
|
3352
3355
|
|
|
@@ -5605,15 +5608,15 @@ const launchCompletionWorker = async () => {
|
|
|
5605
5608
|
return rpc;
|
|
5606
5609
|
};
|
|
5607
5610
|
|
|
5608
|
-
let workerPromise$
|
|
5609
|
-
const getOrCreate$
|
|
5610
|
-
if (!workerPromise$
|
|
5611
|
-
workerPromise$
|
|
5611
|
+
let workerPromise$1;
|
|
5612
|
+
const getOrCreate$1 = () => {
|
|
5613
|
+
if (!workerPromise$1) {
|
|
5614
|
+
workerPromise$1 = launchCompletionWorker();
|
|
5612
5615
|
}
|
|
5613
|
-
return workerPromise$
|
|
5616
|
+
return workerPromise$1;
|
|
5614
5617
|
};
|
|
5615
5618
|
const invoke$4 = async (method, ...params) => {
|
|
5616
|
-
const worker = await getOrCreate$
|
|
5619
|
+
const worker = await getOrCreate$1();
|
|
5617
5620
|
return await worker.invoke(method, ...params);
|
|
5618
5621
|
};
|
|
5619
5622
|
|
|
@@ -5677,16 +5680,29 @@ const launchFindWidgetWorker = async () => {
|
|
|
5677
5680
|
return launchWorker(name, url);
|
|
5678
5681
|
};
|
|
5679
5682
|
|
|
5680
|
-
|
|
5681
|
-
const
|
|
5682
|
-
|
|
5683
|
-
|
|
5683
|
+
const rpcId = 9002;
|
|
5684
|
+
const launch = async () => {
|
|
5685
|
+
// TODO race condition
|
|
5686
|
+
if (get$6(rpcId)) {
|
|
5687
|
+
return;
|
|
5684
5688
|
}
|
|
5685
|
-
|
|
5689
|
+
const rpc = await launchFindWidgetWorker();
|
|
5690
|
+
set$c(rpcId, rpc);
|
|
5686
5691
|
};
|
|
5687
5692
|
const invoke$3 = async (method, ...params) => {
|
|
5688
|
-
const
|
|
5689
|
-
return await
|
|
5693
|
+
const rpc = get$6(rpcId);
|
|
5694
|
+
return await rpc.invoke(method, ...params);
|
|
5695
|
+
};
|
|
5696
|
+
const dispose = async () => {
|
|
5697
|
+
const rpc = get$6(rpcId);
|
|
5698
|
+
remove$8(rpcId);
|
|
5699
|
+
if (rpc) {
|
|
5700
|
+
await rpc.dispose();
|
|
5701
|
+
}
|
|
5702
|
+
// const oldPromise = workerPromise
|
|
5703
|
+
// workerPromise = undefined
|
|
5704
|
+
// const rpc = await oldPromise
|
|
5705
|
+
// await rpc.dispose()
|
|
5690
5706
|
};
|
|
5691
5707
|
|
|
5692
5708
|
const getEditor = editorUid => {
|
|
@@ -5711,6 +5727,7 @@ const loadContent$1 = async (state, parentUid) => {
|
|
|
5711
5727
|
width,
|
|
5712
5728
|
height
|
|
5713
5729
|
} = editor;
|
|
5730
|
+
await launch();
|
|
5714
5731
|
await invoke$3('FindWidget.create', uid, x, y, width, height, parentUid);
|
|
5715
5732
|
await invoke$3('FindWidget.loadContent', uid);
|
|
5716
5733
|
const diff = await invoke$3('FindWidget.diff2', uid);
|
|
@@ -5726,7 +5743,7 @@ const newStateGenerator$3 = (state, parentUid) => {
|
|
|
5726
5743
|
};
|
|
5727
5744
|
const openFind2 = async editor => {
|
|
5728
5745
|
const fullFocus = true;
|
|
5729
|
-
return addWidgetToEditor(
|
|
5746
|
+
return addWidgetToEditor(Find, FindWidget, editor, create$3, newStateGenerator$3, fullFocus);
|
|
5730
5747
|
};
|
|
5731
5748
|
|
|
5732
5749
|
const openFind = async state => {
|
|
@@ -8092,9 +8109,12 @@ const {
|
|
|
8092
8109
|
replace,
|
|
8093
8110
|
replaceAll,
|
|
8094
8111
|
toggleMatchCase,
|
|
8112
|
+
toggleMatchWholeWord,
|
|
8095
8113
|
toggleReplace,
|
|
8096
|
-
toggleUseRegularExpression
|
|
8097
|
-
|
|
8114
|
+
toggleUseRegularExpression,
|
|
8115
|
+
focusNextElement,
|
|
8116
|
+
focusPreviousElement
|
|
8117
|
+
} = createFns(['close', 'focusCloseButton', 'focusFind', 'focusNext', 'focusNextMatchButton', 'focusPrevious', 'focusPreviousMatchButton', 'focusReplace', 'focusReplaceAllButton', 'focusReplaceButton', 'focusToggleReplace', 'handleBlur', 'handleClickButton', 'handleFocus', 'handleInput', 'handleReplaceFocus', 'handleReplaceInput', 'handleToggleReplaceFocus', 'replace', 'replaceAll', 'toggleMatchCase', 'toggleMatchWholeWord', 'toggleReplace', 'toggleUseRegularExpression', 'focusNextElement', 'focusPreviousElement'], 'FindWidget', Find);
|
|
8098
8118
|
|
|
8099
8119
|
const EditorFindWidget = {
|
|
8100
8120
|
__proto__: null,
|
|
@@ -8103,8 +8123,10 @@ const EditorFindWidget = {
|
|
|
8103
8123
|
focusCloseButton,
|
|
8104
8124
|
focusFind,
|
|
8105
8125
|
focusNext: focusNext$2,
|
|
8126
|
+
focusNextElement,
|
|
8106
8127
|
focusNextMatchButton,
|
|
8107
8128
|
focusPrevious: focusPrevious$1,
|
|
8129
|
+
focusPreviousElement,
|
|
8108
8130
|
focusPreviousMatchButton,
|
|
8109
8131
|
focusReplace,
|
|
8110
8132
|
focusReplaceAllButton,
|
|
@@ -8122,6 +8144,7 @@ const EditorFindWidget = {
|
|
|
8122
8144
|
replace,
|
|
8123
8145
|
replaceAll,
|
|
8124
8146
|
toggleMatchCase,
|
|
8147
|
+
toggleMatchWholeWord,
|
|
8125
8148
|
toggleReplace,
|
|
8126
8149
|
toggleUseRegularExpression
|
|
8127
8150
|
};
|
|
@@ -9209,6 +9232,97 @@ const handleTab = async editor => {
|
|
|
9209
9232
|
return applyTabCompletion(editor, result);
|
|
9210
9233
|
};
|
|
9211
9234
|
|
|
9235
|
+
const relaunchWorkers = async () => {
|
|
9236
|
+
await dispose();
|
|
9237
|
+
await launch();
|
|
9238
|
+
};
|
|
9239
|
+
|
|
9240
|
+
const getWidgetName = widgetId => {
|
|
9241
|
+
switch (widgetId) {
|
|
9242
|
+
case Find:
|
|
9243
|
+
return `FindWidget`;
|
|
9244
|
+
default:
|
|
9245
|
+
return '';
|
|
9246
|
+
}
|
|
9247
|
+
};
|
|
9248
|
+
const saveWidgetState = async keys => {
|
|
9249
|
+
const savedStates = Object.create(null);
|
|
9250
|
+
for (const key of keys) {
|
|
9251
|
+
const editor = get$4(parseInt(key));
|
|
9252
|
+
const {
|
|
9253
|
+
widgets
|
|
9254
|
+
} = editor.newState;
|
|
9255
|
+
for (const widget of widgets) {
|
|
9256
|
+
const invoke = getWidgetInvoke(widget.id);
|
|
9257
|
+
const fullKey = `${key}:${widget.newState.uid}`;
|
|
9258
|
+
const name = getWidgetName(widget.id);
|
|
9259
|
+
const savedState = await invoke(`${name}.saveState`, widget.newState.uid);
|
|
9260
|
+
savedStates[fullKey] = savedState;
|
|
9261
|
+
}
|
|
9262
|
+
}
|
|
9263
|
+
return savedStates;
|
|
9264
|
+
};
|
|
9265
|
+
|
|
9266
|
+
const restoreWidgetState = async (keys, savedStates) => {
|
|
9267
|
+
const newEditors = [];
|
|
9268
|
+
for (const key of keys) {
|
|
9269
|
+
const editorUid = parseInt(key);
|
|
9270
|
+
const editor = get$4(editorUid);
|
|
9271
|
+
const {
|
|
9272
|
+
widgets
|
|
9273
|
+
} = editor.newState;
|
|
9274
|
+
const newWidgets = [];
|
|
9275
|
+
for (const widget of widgets) {
|
|
9276
|
+
const invoke = getWidgetInvoke(widget.id);
|
|
9277
|
+
const fullKey = `${key}:${widget.newState.uid}`;
|
|
9278
|
+
const savedState = savedStates[fullKey] || {};
|
|
9279
|
+
const name = getWidgetName(widget.id);
|
|
9280
|
+
await invoke(`${name}.create`, widget.newState.uid, widget.newState.x, widget.newState.y, widget.newState.width, widget.newState.height, editorUid);
|
|
9281
|
+
await invoke(`${name}.loadContent`, widget.newState.uid, savedState);
|
|
9282
|
+
const diffResult = await invoke(`${name}.diff2`, widget.newState.uid);
|
|
9283
|
+
const commands = await invoke(`${name}.render2`, widget.newState.uid, diffResult);
|
|
9284
|
+
const newWidget = {
|
|
9285
|
+
...widget,
|
|
9286
|
+
newState: {
|
|
9287
|
+
...widget.newState,
|
|
9288
|
+
commands
|
|
9289
|
+
}
|
|
9290
|
+
};
|
|
9291
|
+
newWidgets.push(newWidget);
|
|
9292
|
+
}
|
|
9293
|
+
newEditors.push({
|
|
9294
|
+
...editor,
|
|
9295
|
+
newState: {
|
|
9296
|
+
...editor.newState,
|
|
9297
|
+
widgets: newWidgets
|
|
9298
|
+
}
|
|
9299
|
+
});
|
|
9300
|
+
}
|
|
9301
|
+
return newEditors;
|
|
9302
|
+
};
|
|
9303
|
+
|
|
9304
|
+
let isReloading = false;
|
|
9305
|
+
const hotReload = async () => {
|
|
9306
|
+
if (isReloading) {
|
|
9307
|
+
return;
|
|
9308
|
+
}
|
|
9309
|
+
isReloading = true;
|
|
9310
|
+
|
|
9311
|
+
// TODO use getEditors
|
|
9312
|
+
const keys = getKeys$1();
|
|
9313
|
+
const savedStates = await saveWidgetState(keys);
|
|
9314
|
+
await relaunchWorkers();
|
|
9315
|
+
const newEditors = await restoreWidgetState(keys, savedStates);
|
|
9316
|
+
for (const editor of newEditors) {
|
|
9317
|
+
set$6(editor.newState.uid, editor.oldState, editor.newState);
|
|
9318
|
+
}
|
|
9319
|
+
|
|
9320
|
+
// TODO ask renderer worker to rerender all editors
|
|
9321
|
+
// @ts-ignore
|
|
9322
|
+
await invoke$8(`Editor.rerender`);
|
|
9323
|
+
isReloading = false;
|
|
9324
|
+
};
|
|
9325
|
+
|
|
9212
9326
|
const sendMessagePortToExtensionHostWorker2 = async (port, initialCommand, rpcId) => {
|
|
9213
9327
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, initialCommand, rpcId);
|
|
9214
9328
|
};
|
|
@@ -10272,7 +10386,7 @@ const editorDiagnosticEffect = {
|
|
|
10272
10386
|
}
|
|
10273
10387
|
};
|
|
10274
10388
|
|
|
10275
|
-
const keep = ['ActivateByEvent.activateByEvent', 'ExtensionHostManagement.activateByEvent', 'Editor.applyEdit2', 'Editor.applyEdits2', 'Editor.closeFind2', 'Editor.closeWidget2', 'Editor.create', 'Editor.getKeyBindings', 'Editor.getSourceActions', 'Editor.getLines2', 'Editor.getPositionAtCursor', 'Editor.getOffsetAtCursor', 'Editor.getQuickPickMenuEntries', 'Editor.getSelections', 'Editor.getSelections2', 'Editor.getText', 'Editor.getWordAt', 'Editor.getWordAt2', 'Editor.getWordAtOffset2', 'Editor.getUri', 'Editor.getWordBefore', 'Editor.getWordBefore2', 'Editor.offsetAt', 'Editor.render', 'Editor.setSelections2', 'Editor.updateDebugInfo', 'Editor.getLanguageId', 'Editor.getProblems', 'Editor.getKeys', 'Font.ensure', 'HandleMessagePort.handleMessagePort', 'Hover.getHoverInfo', 'Hover.handleSashPointerDown', 'Hover.handleSashPointerMove', 'Hover.handleSashPointerUp', 'Hover.loadContent', 'Hover.render', 'Initialize.initialize', 'SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker'
|
|
10389
|
+
const keep = ['ActivateByEvent.activateByEvent', 'ExtensionHostManagement.activateByEvent', 'Editor.applyEdit2', 'Editor.applyEdits2', 'Editor.closeFind2', 'Editor.closeWidget2', 'Editor.create', 'Editor.getKeyBindings', 'Editor.getSourceActions', 'Editor.getLines2', 'Editor.getPositionAtCursor', 'Editor.getOffsetAtCursor', 'Editor.getQuickPickMenuEntries', 'Editor.getSelections', 'Editor.hotReload', 'Editor.getSelections2', 'Editor.getText', 'Editor.getWordAt', 'Editor.getWordAt2', 'Editor.getWordAtOffset2', 'Editor.getUri', 'Editor.getWordBefore', 'Editor.getWordBefore2', 'Editor.offsetAt', 'Editor.render', 'Editor.setSelections2', 'Editor.updateDebugInfo', 'Editor.getLanguageId', 'Editor.getProblems', 'Editor.getKeys', 'Font.ensure', 'HandleMessagePort.handleMessagePort', 'Hover.getHoverInfo', 'Hover.handleSashPointerDown', 'Hover.handleSashPointerMove', 'Hover.handleSashPointerUp', 'Hover.loadContent', 'Hover.render', 'Initialize.initialize', 'SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker'
|
|
10276
10390
|
// 'ColorPicker.handleSliderPointerDown',
|
|
10277
10391
|
// 'ColorPicker.handleSliderPointerMove',
|
|
10278
10392
|
// 'ColorPicker.loadContent',
|
|
@@ -10487,6 +10601,7 @@ const commandMap = {
|
|
|
10487
10601
|
'Editor.toggleComment': toggleComment,
|
|
10488
10602
|
'Editor.toggleLineComment': editorToggleLineComment,
|
|
10489
10603
|
'Editor.type': type,
|
|
10604
|
+
'Editor.hotReload': hotReload,
|
|
10490
10605
|
'Editor.typeWithAutoClosing': typeWithAutoClosing,
|
|
10491
10606
|
'Editor.undo': undo,
|
|
10492
10607
|
'Editor.unIndent': editorUnindent,
|
|
@@ -10543,8 +10658,12 @@ const commandMap = {
|
|
|
10543
10658
|
'FindWidget.handleReplaceInput': handleReplaceInput,
|
|
10544
10659
|
'FindWidget.handleToggleReplaceFocus': handleToggleReplaceFocus,
|
|
10545
10660
|
'FindWidget.toggleMatchCase': toggleMatchCase,
|
|
10661
|
+
'FindWidget.toggleMatchWholeWord': toggleMatchWholeWord,
|
|
10546
10662
|
'FindWidget.loadContent': loadContent$1,
|
|
10547
10663
|
'FindWidget.toggleReplace': toggleReplace,
|
|
10664
|
+
'FindWidget.toggleUseRegularExpression': toggleUseRegularExpression,
|
|
10665
|
+
'FindWidget.focusNextElement': focusNextElement,
|
|
10666
|
+
'FindWidget.focusPreviousElement': focusPreviousElement,
|
|
10548
10667
|
'Font.ensure': ensure,
|
|
10549
10668
|
'HandleMessagePort.handleMessagePort': handleMessagePort,
|
|
10550
10669
|
'Hover.getHoverInfo': getEditorHoverInfo,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/editor-worker",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Lvce Editor",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/editorWorkerMain.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lvce-editor/constants": "^1.
|
|
9
|
+
"@lvce-editor/constants": "^1.14.0"
|
|
10
10
|
}
|
|
11
11
|
}
|