@lvce-editor/completion-worker 1.23.0 → 1.24.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/completionWorkerMain.js +25 -26
- package/package.json +1 -1
|
@@ -1130,14 +1130,14 @@ const create$1 = rpcId => {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
1132
|
};
|
|
1133
|
-
const EditorWorker$
|
|
1133
|
+
const EditorWorker$1 = 99;
|
|
1134
1134
|
const ExtensionHostWorker = 44;
|
|
1135
1135
|
const {
|
|
1136
|
-
invoke: invoke$
|
|
1136
|
+
invoke: invoke$c,
|
|
1137
1137
|
invokeAndTransfer: invokeAndTransfer$c,
|
|
1138
1138
|
set: set$c,
|
|
1139
1139
|
dispose: dispose$c
|
|
1140
|
-
} = create$1(EditorWorker$
|
|
1140
|
+
} = create$1(EditorWorker$1);
|
|
1141
1141
|
const sendMessagePortToExtensionHostWorker$1$1 = async port => {
|
|
1142
1142
|
const command = 'HandleMessagePort.handleMessagePort2';
|
|
1143
1143
|
await invokeAndTransfer$c(
|
|
@@ -1149,40 +1149,40 @@ const sendMessagePortToExtensionHostWorker$1$1 = async port => {
|
|
|
1149
1149
|
// TODO add tests for this
|
|
1150
1150
|
const activateByEvent$1$1 = async event => {
|
|
1151
1151
|
// @ts-ignore
|
|
1152
|
-
await invoke$
|
|
1152
|
+
await invoke$c('ActivateByEvent.activateByEvent', event);
|
|
1153
1153
|
};
|
|
1154
1154
|
const applyEdit$2 = async (editorUid, changes) => {
|
|
1155
1155
|
// @ts-ignore
|
|
1156
|
-
await
|
|
1156
|
+
await invoke$c('Editor.applyEdit2', editorUid, changes);
|
|
1157
1157
|
};
|
|
1158
1158
|
const closeWidget$1 = async (editorUid, widgetId, widgetName, focusId) => {
|
|
1159
1159
|
// @ts-ignore
|
|
1160
|
-
await invoke$
|
|
1160
|
+
await invoke$c('Editor.closeWidget2', editorUid, widgetId, widgetName, focusId);
|
|
1161
1161
|
};
|
|
1162
1162
|
const getWordAt$1 = async (uid, rowIndex, columnIndex) => {
|
|
1163
1163
|
// @ts-ignore
|
|
1164
|
-
const word = await invoke$
|
|
1164
|
+
const word = await invoke$c('Editor.getWordAt2', uid, rowIndex, columnIndex);
|
|
1165
1165
|
return word;
|
|
1166
1166
|
};
|
|
1167
1167
|
const getLines$2 = async editorUid => {
|
|
1168
|
-
const lines = await invoke$
|
|
1168
|
+
const lines = await invoke$c('Editor.getLines2', editorUid);
|
|
1169
1169
|
return lines;
|
|
1170
1170
|
};
|
|
1171
1171
|
const getPositionAtCursor$2 = async parentUid => {
|
|
1172
|
-
const position = await invoke$
|
|
1172
|
+
const position = await invoke$c('Editor.getPositionAtCursor', parentUid);
|
|
1173
1173
|
return position;
|
|
1174
1174
|
};
|
|
1175
1175
|
const getSelections$2 = async editorUid => {
|
|
1176
|
-
const selections = await invoke$
|
|
1176
|
+
const selections = await invoke$c('Editor.getSelections2', editorUid);
|
|
1177
1177
|
return selections;
|
|
1178
1178
|
};
|
|
1179
1179
|
const getWordAtOffset2$1 = async editorUid => {
|
|
1180
|
-
return invoke$
|
|
1180
|
+
return invoke$c('Editor.getWordAtOffset2', editorUid);
|
|
1181
1181
|
};
|
|
1182
1182
|
const getWordBefore$2 = async (editorUid, rowIndex, columnIndex) => {
|
|
1183
|
-
return invoke$
|
|
1183
|
+
return invoke$c('Editor.getWordBefore2', editorUid, rowIndex, columnIndex);
|
|
1184
1184
|
};
|
|
1185
|
-
const EditorWorker$
|
|
1185
|
+
const EditorWorker$2 = {
|
|
1186
1186
|
__proto__: null,
|
|
1187
1187
|
activateByEvent: activateByEvent$1$1,
|
|
1188
1188
|
applyEdit: applyEdit$2,
|
|
@@ -1194,17 +1194,16 @@ const EditorWorker$1$1 = {
|
|
|
1194
1194
|
getWordAt: getWordAt$1,
|
|
1195
1195
|
getWordAtOffset2: getWordAtOffset2$1,
|
|
1196
1196
|
getWordBefore: getWordBefore$2,
|
|
1197
|
-
invoke: invoke$
|
|
1197
|
+
invoke: invoke$c,
|
|
1198
1198
|
invokeAndTransfer: invokeAndTransfer$c,
|
|
1199
1199
|
sendMessagePortToExtensionHostWorker: sendMessagePortToExtensionHostWorker$1$1,
|
|
1200
|
-
set: set$c
|
|
1201
|
-
};
|
|
1200
|
+
set: set$c};
|
|
1202
1201
|
const {
|
|
1203
|
-
invoke: invoke$
|
|
1202
|
+
invoke: invoke$9,
|
|
1204
1203
|
set: set$9} = create$1(ExtensionHostWorker);
|
|
1205
1204
|
const ExtensionHost = {
|
|
1206
1205
|
__proto__: null,
|
|
1207
|
-
invoke: invoke$
|
|
1206
|
+
invoke: invoke$9,
|
|
1208
1207
|
set: set$9
|
|
1209
1208
|
};
|
|
1210
1209
|
|
|
@@ -1223,9 +1222,9 @@ const {
|
|
|
1223
1222
|
getWordAtOffset2,
|
|
1224
1223
|
getWordBefore: getWordBefore$1,
|
|
1225
1224
|
invokeAndTransfer
|
|
1226
|
-
} = EditorWorker$
|
|
1225
|
+
} = EditorWorker$2;
|
|
1227
1226
|
|
|
1228
|
-
const EditorWorker
|
|
1227
|
+
const EditorWorker = {
|
|
1229
1228
|
__proto__: null,
|
|
1230
1229
|
activateByEvent: activateByEvent$1,
|
|
1231
1230
|
applyEdit: applyEdit$1,
|
|
@@ -1383,11 +1382,11 @@ const applyEdit = async (editorUid, changes) => {
|
|
|
1383
1382
|
|
|
1384
1383
|
const {
|
|
1385
1384
|
getLines
|
|
1386
|
-
} = EditorWorker
|
|
1385
|
+
} = EditorWorker;
|
|
1387
1386
|
|
|
1388
1387
|
const {
|
|
1389
1388
|
getSelections
|
|
1390
|
-
} = EditorWorker
|
|
1389
|
+
} = EditorWorker;
|
|
1391
1390
|
|
|
1392
1391
|
const getSelectionPairs = (selections, i) => {
|
|
1393
1392
|
const first = selections[i];
|
|
@@ -1447,7 +1446,7 @@ const CompletionResolveExecute = 'ExtensionHostCompletion.executeResolve';
|
|
|
1447
1446
|
|
|
1448
1447
|
const {
|
|
1449
1448
|
activateByEvent
|
|
1450
|
-
} = EditorWorker
|
|
1449
|
+
} = EditorWorker;
|
|
1451
1450
|
|
|
1452
1451
|
const {
|
|
1453
1452
|
invoke,
|
|
@@ -1846,7 +1845,7 @@ const getListHeight = (itemsLength, itemHeight, maxHeight) => {
|
|
|
1846
1845
|
|
|
1847
1846
|
const {
|
|
1848
1847
|
getPositionAtCursor
|
|
1849
|
-
} = EditorWorker
|
|
1848
|
+
} = EditorWorker;
|
|
1850
1849
|
|
|
1851
1850
|
const getWordAtOffset = getWordAtOffset2;
|
|
1852
1851
|
|
|
@@ -1885,7 +1884,7 @@ const handleEditorDeleteLeft = async state => {
|
|
|
1885
1884
|
|
|
1886
1885
|
const {
|
|
1887
1886
|
getWordBefore
|
|
1888
|
-
} = EditorWorker
|
|
1887
|
+
} = EditorWorker;
|
|
1889
1888
|
|
|
1890
1889
|
const handleEditorType = async state => {
|
|
1891
1890
|
const {
|
|
@@ -1991,7 +1990,7 @@ const handleWheel = (state, deltaMode, deltaY) => {
|
|
|
1991
1990
|
|
|
1992
1991
|
const {
|
|
1993
1992
|
sendMessagePortToExtensionHostWorker
|
|
1994
|
-
} = EditorWorker
|
|
1993
|
+
} = EditorWorker;
|
|
1995
1994
|
|
|
1996
1995
|
const createExtensionHostRpc = async () => {
|
|
1997
1996
|
try {
|