@lvce-editor/editor-worker 8.5.0 → 8.6.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 +8 -1
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -1216,6 +1216,11 @@ const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
|
|
|
1216
1216
|
// @ts-ignore
|
|
1217
1217
|
await invokeAndTransfer$2('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
|
|
1218
1218
|
};
|
|
1219
|
+
const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
|
|
1220
|
+
const command = 'IconTheme.handleMessagePort';
|
|
1221
|
+
// @ts-ignore
|
|
1222
|
+
await invokeAndTransfer$2('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
|
|
1223
|
+
};
|
|
1219
1224
|
const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
|
|
1220
1225
|
const command = 'FileSystem.handleMessagePort';
|
|
1221
1226
|
// @ts-ignore
|
|
@@ -1482,6 +1487,7 @@ const RendererWorker = {
|
|
|
1482
1487
|
sendMessagePortToErrorWorker,
|
|
1483
1488
|
sendMessagePortToExtensionHostWorker,
|
|
1484
1489
|
sendMessagePortToFileSystemWorker,
|
|
1490
|
+
sendMessagePortToIconThemeWorker,
|
|
1485
1491
|
sendMessagePortToMarkdownWorker,
|
|
1486
1492
|
sendMessagePortToRendererProcess,
|
|
1487
1493
|
sendMessagePortToSearchProcess,
|
|
@@ -2943,7 +2949,7 @@ const applyWorkspaceEdit = async (editor, changes) => {
|
|
|
2943
2949
|
array(changes);
|
|
2944
2950
|
const textChanges = getTextChanges(editor, changes);
|
|
2945
2951
|
if (textChanges.length === 0) {
|
|
2946
|
-
return;
|
|
2952
|
+
return editor;
|
|
2947
2953
|
}
|
|
2948
2954
|
// TODO
|
|
2949
2955
|
// for now only apply edits to single file, if it matches the uri
|
|
@@ -9218,6 +9224,7 @@ const getSelections = editorUid => {
|
|
|
9218
9224
|
};
|
|
9219
9225
|
|
|
9220
9226
|
const getText = editorUid => {
|
|
9227
|
+
number(editorUid);
|
|
9221
9228
|
const editor = getEditor(editorUid);
|
|
9222
9229
|
const {
|
|
9223
9230
|
lines
|