@lvce-editor/file-search-worker 6.10.0 → 6.11.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.
@@ -1025,6 +1025,25 @@ const WebWorkerRpcClient = {
1025
1025
  __proto__: null,
1026
1026
  create: create$4
1027
1027
  };
1028
+ const createMockRpc = ({
1029
+ commandMap
1030
+ }) => {
1031
+ const invocations = [];
1032
+ const invoke = (method, ...params) => {
1033
+ invocations.push([method, ...params]);
1034
+ const command = commandMap[method];
1035
+ if (!command) {
1036
+ throw new Error(`command ${method} not found`);
1037
+ }
1038
+ return command(...params);
1039
+ };
1040
+ const mockRpc = {
1041
+ invoke,
1042
+ invokeAndTransfer: invoke,
1043
+ invocations
1044
+ };
1045
+ return mockRpc;
1046
+ };
1028
1047
 
1029
1048
  const Div = 4;
1030
1049
  const Input = 6;
@@ -1032,8 +1051,11 @@ const Span = 8;
1032
1051
  const Text = 12;
1033
1052
  const Img = 17;
1034
1053
 
1054
+ const Script$1 = 2;
1055
+
1056
+ const DebugWorker = 55;
1035
1057
  const EditorWorker = 99;
1036
- const RendererWorker = 1;
1058
+ const RendererWorker$1 = 1;
1037
1059
 
1038
1060
  const FocusQuickPickInput = 20;
1039
1061
 
@@ -1080,35 +1102,398 @@ const getLines = async editorUid => {
1080
1102
  const {
1081
1103
  invoke: invoke$1,
1082
1104
  invokeAndTransfer,
1083
- set: set$1} = create$3(RendererWorker);
1105
+ set: set$1,
1106
+ dispose: dispose$2
1107
+ } = create$3(RendererWorker$1);
1108
+ const searchFileHtml = async uri => {
1109
+ return invoke$1('ExtensionHost.searchFileWithHtml', uri);
1110
+ };
1111
+ const getFilePathElectron = async file => {
1112
+ return invoke$1('FileSystemHandle.getFilePathElectron', file);
1113
+ };
1114
+ /**
1115
+ * @deprecated
1116
+ */
1117
+ const showContextMenu = async (x, y, id, ...args) => {
1118
+ return invoke$1('ContextMenu.show', x, y, id, ...args);
1119
+ };
1120
+ const showContextMenu2 = async (uid, menuId, x, y, args) => {
1121
+ number(uid);
1122
+ number(menuId);
1123
+ number(x);
1124
+ number(y);
1125
+ // @ts-ignore
1126
+ await invoke$1('ContextMenu.show2', uid, menuId, x, y, args);
1127
+ };
1128
+ const getElectronVersion = async () => {
1129
+ return invoke$1('Process.getElectronVersion');
1130
+ };
1131
+ const applyBulkReplacement = async bulkEdits => {
1132
+ await invoke$1('BulkReplacement.applyBulkReplacement', bulkEdits);
1133
+ };
1134
+ const setColorTheme$1 = async id => {
1135
+ // @ts-ignore
1136
+ return invoke$1(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
1137
+ };
1138
+ const getNodeVersion = async () => {
1139
+ return invoke$1('Process.getNodeVersion');
1140
+ };
1141
+ const getChromeVersion = async () => {
1142
+ return invoke$1('Process.getChromeVersion');
1143
+ };
1144
+ const getV8Version = async () => {
1145
+ return invoke$1('Process.getV8Version');
1146
+ };
1147
+ const getFileHandles = async fileIds => {
1148
+ const files = await invoke$1('FileSystemHandle.getFileHandles', fileIds);
1149
+ return files;
1150
+ };
1151
+ const setWorkspacePath = async path => {
1152
+ await invoke$1('Workspace.setPath', path);
1153
+ };
1154
+ const registerWebViewInterceptor = async (id, port) => {
1155
+ await invokeAndTransfer('WebView.registerInterceptor', id, port);
1156
+ };
1157
+ const unregisterWebViewInterceptor = async id => {
1158
+ await invoke$1('WebView.unregisterInterceptor', id);
1159
+ };
1084
1160
  const sendMessagePortToEditorWorker = async (port, rpcId) => {
1085
1161
  const command = 'HandleMessagePort.handleMessagePort';
1086
1162
  // @ts-ignore
1087
1163
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
1088
1164
  };
1165
+ const sendMessagePortToErrorWorker = async (port, rpcId) => {
1166
+ const command = 'Errors.handleMessagePort';
1167
+ // @ts-ignore
1168
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
1169
+ };
1170
+ const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
1171
+ const command = 'Markdown.handleMessagePort';
1172
+ // @ts-ignore
1173
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
1174
+ };
1175
+ const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
1176
+ const command = 'IconTheme.handleMessagePort';
1177
+ // @ts-ignore
1178
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
1179
+ };
1180
+ const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
1181
+ const command = 'FileSystem.handleMessagePort';
1182
+ // @ts-ignore
1183
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
1184
+ };
1185
+ const readFile = async uri => {
1186
+ return invoke$1('FileSystem.readFile', uri);
1187
+ };
1188
+ const getWebViewSecret = async key => {
1189
+ // @ts-ignore
1190
+ return invoke$1('WebView.getSecret', key);
1191
+ };
1192
+ const setWebViewPort = async (uid, port, origin, portType) => {
1193
+ return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
1194
+ };
1089
1195
  const setFocus$1 = key => {
1090
1196
  return invoke$1('Focus.setFocus', key);
1091
1197
  };
1092
1198
  const getFileIcon = async options => {
1093
1199
  return invoke$1('IconTheme.getFileIcon', options);
1094
1200
  };
1201
+ const getColorThemeNames$1 = async () => {
1202
+ return invoke$1('ColorTheme.getColorThemeNames');
1203
+ };
1204
+ const disableExtension = async id => {
1205
+ // @ts-ignore
1206
+ return invoke$1('ExtensionManagement.disable', id);
1207
+ };
1208
+ const enableExtension = async id => {
1209
+ // @ts-ignore
1210
+ return invoke$1('ExtensionManagement.enable', id);
1211
+ };
1212
+ const handleDebugChange = async params => {
1213
+ // @ts-ignore
1214
+ return invoke$1('Run And Debug.handleChange', params);
1215
+ };
1095
1216
  const getFolderIcon = async options => {
1096
1217
  return invoke$1('IconTheme.getFolderIcon', options);
1097
1218
  };
1219
+ const handleWorkspaceRefresh = async () => {
1220
+ return invoke$1('Layout.handleWorkspaceRefresh');
1221
+ };
1098
1222
  const closeWidget$1 = async widgetId => {
1099
1223
  return invoke$1('Viewlet.closeWidget', widgetId);
1100
1224
  };
1225
+ const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
1226
+ const command = 'HandleMessagePort.handleMessagePort2';
1227
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
1228
+ };
1229
+ const sendMessagePortToSearchProcess = async port => {
1230
+ await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
1231
+ };
1232
+ const confirm = async (message, options) => {
1233
+ // @ts-ignore
1234
+ const result = await invoke$1('ConfirmPrompt.prompt', message, options);
1235
+ return result;
1236
+ };
1237
+ const getRecentlyOpened$1 = async () => {
1238
+ return invoke$1(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
1239
+ };
1240
+ const getKeyBindings$1 = async () => {
1241
+ return invoke$1('KeyBindingsInitial.getKeyBindings');
1242
+ };
1243
+ const writeClipBoardText = async text => {
1244
+ await invoke$1('ClipBoard.writeText', /* text */text);
1245
+ };
1246
+ const readClipBoardText = async () => {
1247
+ return invoke$1('ClipBoard.readText');
1248
+ };
1249
+ const writeClipBoardImage = async blob => {
1250
+ // @ts-ignore
1251
+ await invoke$1('ClipBoard.writeImage', /* text */blob);
1252
+ };
1253
+ const searchFileMemory = async uri => {
1254
+ // @ts-ignore
1255
+ return invoke$1('ExtensionHost.searchFileWithMemory', uri);
1256
+ };
1257
+ const searchFileFetch = async uri => {
1258
+ return invoke$1('ExtensionHost.searchFileWithFetch', uri);
1259
+ };
1260
+ const showMessageBox = async options => {
1261
+ return invoke$1('ElectronDialog.showMessageBox', options);
1262
+ };
1263
+ const handleDebugResumed = async params => {
1264
+ await invoke$1('Run And Debug.handleResumed', params);
1265
+ };
1266
+ const openWidget = async name => {
1267
+ await invoke$1('Viewlet.openWidget', name);
1268
+ };
1269
+ const getIcons = async requests => {
1270
+ const icons = await invoke$1('IconTheme.getIcons', requests);
1271
+ return icons;
1272
+ };
1273
+ const activateByEvent = event => {
1274
+ return invoke$1('ExtensionHostManagement.activateByEvent', event);
1275
+ };
1276
+ const setAdditionalFocus = focusKey => {
1277
+ // @ts-ignore
1278
+ return invoke$1('Focus.setAdditionalFocus', focusKey);
1279
+ };
1101
1280
  const getActiveEditorId = () => {
1102
1281
  // @ts-ignore
1103
1282
  return invoke$1('GetActiveEditor.getActiveEditorId');
1104
1283
  };
1284
+ const getWorkspacePath$1 = () => {
1285
+ return invoke$1('Workspace.getPath');
1286
+ };
1287
+ const sendMessagePortToRendererProcess = async port => {
1288
+ const command = 'HandleMessagePort.handleMessagePort';
1289
+ // @ts-ignore
1290
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
1291
+ };
1292
+ const sendMessagePortToTextMeasurementWorker = async port => {
1293
+ const command = 'TextMeasurement.handleMessagePort';
1294
+ // @ts-ignore
1295
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextMeasurementWorker', port, command, 0);
1296
+ };
1297
+ const sendMessagePortToSourceControlWorker = async port => {
1298
+ const command = 'SourceControl.handleMessagePort';
1299
+ // @ts-ignore
1300
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSourceControlWorker', port, command, 0);
1301
+ };
1302
+ const sendMessagePortToFileSystemProcess = async (port, rpcId) => {
1303
+ const command = 'HandleMessagePortForFileSystemProcess.handleMessagePortForFileSystemProcess';
1304
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
1305
+ };
1306
+ const getPreference = async key => {
1307
+ return await invoke$1('Preferences.get', key);
1308
+ };
1309
+ const getAllExtensions = async () => {
1310
+ return invoke$1('ExtensionManagement.getAllExtensions');
1311
+ };
1312
+ const rerenderEditor = async key => {
1313
+ // @ts-ignore
1314
+ return invoke$1('Editor.rerender', key);
1315
+ };
1316
+ const handleDebugPaused = async params => {
1317
+ await invoke$1('Run And Debug.handlePaused', params);
1318
+ };
1105
1319
  const openUri$1 = async (uri, focus, options) => {
1106
1320
  await invoke$1('Main.openUri', uri, focus, options);
1107
1321
  };
1322
+ const sendMessagePortToSyntaxHighlightingWorker = async port => {
1323
+ await invokeAndTransfer(
1324
+ // @ts-ignore
1325
+ 'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
1326
+ };
1327
+ const handleDebugScriptParsed = async script => {
1328
+ await invoke$1('Run And Debug.handleScriptParsed', script);
1329
+ };
1330
+ const getWindowId = async () => {
1331
+ return invoke$1('GetWindowId.getWindowId');
1332
+ };
1333
+ const getBlob = async uri => {
1334
+ // @ts-ignore
1335
+ return invoke$1('FileSystem.getBlob', uri);
1336
+ };
1337
+ const getExtensionCommands = async () => {
1338
+ return invoke$1('ExtensionHost.getCommands');
1339
+ };
1108
1340
  const showErrorDialog$1 = async errorInfo => {
1109
1341
  // @ts-ignore
1110
1342
  await invoke$1('ErrorHandling.showErrorDialog', errorInfo);
1111
1343
  };
1344
+ const getFolderSize = async uri => {
1345
+ // @ts-ignore
1346
+ return await invoke$1('FileSystem.getFolderSize', uri);
1347
+ };
1348
+ const getExtension = async id => {
1349
+ // @ts-ignore
1350
+ return invoke$1('ExtensionManagement.getExtension', id);
1351
+ };
1352
+ const getMarkdownDom = async html => {
1353
+ // @ts-ignore
1354
+ return invoke$1('Markdown.getVirtualDom', html);
1355
+ };
1356
+ const renderMarkdown = async (markdown, options) => {
1357
+ // @ts-ignore
1358
+ return invoke$1('Markdown.renderMarkdown', markdown, options);
1359
+ };
1360
+ const openNativeFolder = async uri => {
1361
+ // @ts-ignore
1362
+ await invoke$1('OpenNativeFolder.openNativeFolder', uri);
1363
+ };
1364
+ const uninstallExtension = async id => {
1365
+ return invoke$1('ExtensionManagement.uninstall', id);
1366
+ };
1367
+ const installExtension = async id => {
1368
+ // @ts-ignore
1369
+ return invoke$1('ExtensionManagement.install', id);
1370
+ };
1371
+ const openExtensionSearch = async () => {
1372
+ // @ts-ignore
1373
+ return invoke$1('SideBar.openViewlet', 'Extensions');
1374
+ };
1375
+ const setExtensionsSearchValue = async searchValue => {
1376
+ // @ts-ignore
1377
+ return invoke$1('Extensions.handleInput', searchValue, Script$1);
1378
+ };
1379
+ const openExternal = async uri => {
1380
+ // @ts-ignore
1381
+ await invoke$1('Open.openExternal', uri);
1382
+ };
1383
+ const openUrl = async uri => {
1384
+ // @ts-ignore
1385
+ await invoke$1('Open.openUrl', uri);
1386
+ };
1387
+ const getAllPreferences = async () => {
1388
+ // @ts-ignore
1389
+ return invoke$1('Preferences.getAll');
1390
+ };
1391
+ const showSaveFilePicker = async () => {
1392
+ // @ts-ignore
1393
+ return invoke$1('FilePicker.showSaveFilePicker');
1394
+ };
1395
+ const getLogsDir = async () => {
1396
+ // @ts-ignore
1397
+ return invoke$1('PlatformPaths.getLogsDir');
1398
+ };
1399
+ const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
1400
+ return invoke$1(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
1401
+ };
1402
+ const registerMockRpc = commandMap => {
1403
+ const mockRpc = createMockRpc({
1404
+ commandMap
1405
+ });
1406
+ set$1(mockRpc);
1407
+ return mockRpc;
1408
+ };
1409
+
1410
+ const RendererWorker = {
1411
+ __proto__: null,
1412
+ activateByEvent,
1413
+ applyBulkReplacement,
1414
+ closeWidget: closeWidget$1,
1415
+ confirm,
1416
+ disableExtension,
1417
+ dispose: dispose$2,
1418
+ enableExtension,
1419
+ getActiveEditorId,
1420
+ getAllExtensions,
1421
+ getAllPreferences,
1422
+ getBlob,
1423
+ getChromeVersion,
1424
+ getColorThemeNames: getColorThemeNames$1,
1425
+ getElectronVersion,
1426
+ getExtension,
1427
+ getExtensionCommands,
1428
+ getFileHandles,
1429
+ getFileIcon,
1430
+ getFilePathElectron,
1431
+ getFolderIcon,
1432
+ getFolderSize,
1433
+ getIcons,
1434
+ getKeyBindings: getKeyBindings$1,
1435
+ getLogsDir,
1436
+ getMarkdownDom,
1437
+ getNodeVersion,
1438
+ getPreference,
1439
+ getRecentlyOpened: getRecentlyOpened$1,
1440
+ getV8Version,
1441
+ getWebViewSecret,
1442
+ getWindowId,
1443
+ getWorkspacePath: getWorkspacePath$1,
1444
+ handleDebugChange,
1445
+ handleDebugPaused,
1446
+ handleDebugResumed,
1447
+ handleDebugScriptParsed,
1448
+ handleWorkspaceRefresh,
1449
+ installExtension,
1450
+ invoke: invoke$1,
1451
+ invokeAndTransfer,
1452
+ measureTextBlockHeight,
1453
+ openExtensionSearch,
1454
+ openExternal,
1455
+ openNativeFolder,
1456
+ openUri: openUri$1,
1457
+ openUrl,
1458
+ openWidget,
1459
+ readClipBoardText,
1460
+ readFile,
1461
+ registerMockRpc,
1462
+ registerWebViewInterceptor,
1463
+ renderMarkdown,
1464
+ rerenderEditor,
1465
+ searchFileFetch,
1466
+ searchFileHtml,
1467
+ searchFileMemory,
1468
+ sendMessagePortToEditorWorker,
1469
+ sendMessagePortToErrorWorker,
1470
+ sendMessagePortToExtensionHostWorker,
1471
+ sendMessagePortToFileSystemProcess,
1472
+ sendMessagePortToFileSystemWorker,
1473
+ sendMessagePortToIconThemeWorker,
1474
+ sendMessagePortToMarkdownWorker,
1475
+ sendMessagePortToRendererProcess,
1476
+ sendMessagePortToSearchProcess,
1477
+ sendMessagePortToSourceControlWorker,
1478
+ sendMessagePortToSyntaxHighlightingWorker,
1479
+ sendMessagePortToTextMeasurementWorker,
1480
+ set: set$1,
1481
+ setAdditionalFocus,
1482
+ setColorTheme: setColorTheme$1,
1483
+ setExtensionsSearchValue,
1484
+ setFocus: setFocus$1,
1485
+ setWebViewPort,
1486
+ setWorkspacePath,
1487
+ showContextMenu,
1488
+ showContextMenu2,
1489
+ showErrorDialog: showErrorDialog$1,
1490
+ showMessageBox,
1491
+ showSaveFilePicker,
1492
+ uninstallExtension,
1493
+ unregisterWebViewInterceptor,
1494
+ writeClipBoardImage,
1495
+ writeClipBoardText
1496
+ };
1112
1497
 
1113
1498
  const closeWidget = async id => {
1114
1499
  // @ts-ignore
@@ -1380,8 +1765,10 @@ const setColorTheme = id => {
1380
1765
  };
1381
1766
 
1382
1767
  const focusPick$1 = async pick => {
1383
- const label = pick.label;
1384
- await setColorTheme(/* colorThemeId */label);
1768
+ const {
1769
+ label
1770
+ } = pick;
1771
+ await setColorTheme(label);
1385
1772
  };
1386
1773
 
1387
1774
  const ColorTheme$1 = 0;
@@ -1960,6 +2347,7 @@ const GoToLine$1 = ':';
1960
2347
  const View$2 = 'view ';
1961
2348
  const None$1 = '';
1962
2349
  const Help$1 = '?';
2350
+ const GoToColumn = '::';
1963
2351
 
1964
2352
  const getQuickPickPrefix = value => {
1965
2353
  if (value.startsWith(Command)) {
@@ -1989,8 +2377,8 @@ const getFilterValueEverything = value => {
1989
2377
  return value.slice(prefixLength).trim();
1990
2378
  };
1991
2379
  const getValueGoToLine = value => {
1992
- if (value.startsWith('::')) {
1993
- return value.slice(2);
2380
+ if (value.startsWith(GoToColumn)) {
2381
+ return '';
1994
2382
  }
1995
2383
  return value.slice(1);
1996
2384
  };
@@ -2056,10 +2444,18 @@ const handleError = async (error, notify = true, prefix = '') => {
2056
2444
  console.error(error);
2057
2445
  };
2058
2446
  const showErrorDialog = async error => {
2059
- const code = error.code;
2060
- const message = error.message;
2061
- const stack = error.stack;
2062
- const name = error.name;
2447
+ const {
2448
+ code
2449
+ } = error;
2450
+ const {
2451
+ message
2452
+ } = error;
2453
+ const {
2454
+ stack
2455
+ } = error;
2456
+ const {
2457
+ name
2458
+ } = error;
2063
2459
  const errorInfo = {
2064
2460
  code,
2065
2461
  message,
@@ -2275,22 +2671,28 @@ const getText = async () => {
2275
2671
  return lines.join('\n');
2276
2672
  };
2277
2673
 
2674
+ const getPicksGoToColumnBase = async () => {
2675
+ const text = await getText();
2676
+ return [{
2677
+ description: '',
2678
+ direntType: 0,
2679
+ fileIcon: '',
2680
+ icon: '',
2681
+ label: `Type a character position to go to (from 1 to ${text.length})`,
2682
+ matches: [],
2683
+ uri: ''
2684
+ }];
2685
+ };
2278
2686
  const getPicks$8 = async value => {
2279
- if (value === '::') {
2280
- const text = await getText();
2281
- return [{
2282
- description: '',
2283
- direntType: 0,
2284
- fileIcon: '',
2285
- icon: '',
2286
- label: `Type a character position to go to (from 1 to ${text.length})`,
2287
- matches: [],
2288
- uri: ''
2289
- }];
2687
+ if (value === GoToColumn) {
2688
+ return getPicksGoToColumnBase();
2290
2689
  }
2291
- if (value.startsWith('::')) {
2690
+ if (value.startsWith(GoToColumn)) {
2292
2691
  const columnString = value.slice(2);
2293
2692
  const wantedColumn = Number.parseInt(columnString, 10);
2693
+ if (Number.isNaN(wantedColumn)) {
2694
+ return getPicksGoToColumnBase();
2695
+ }
2294
2696
  const text = await getText();
2295
2697
  const position = getPosition(text, wantedColumn);
2296
2698
  return [{
@@ -2553,7 +2955,9 @@ const selectPickExtension = async item => {
2553
2955
  };
2554
2956
  const selectPick$8 = async item => {
2555
2957
  // @ts-ignore
2556
- const id = item.id;
2958
+ const {
2959
+ id
2960
+ } = item;
2557
2961
  if (id.startsWith('ext.')) {
2558
2962
  return selectPickExtension(item);
2559
2963
  }
@@ -2580,7 +2984,9 @@ const openUri = async uri => {
2580
2984
  };
2581
2985
 
2582
2986
  const selectPick$6 = async pick => {
2583
- const description = pick.description;
2987
+ const {
2988
+ description
2989
+ } = pick;
2584
2990
  const fileName = pick.label;
2585
2991
  const workspace = await getWorkspacePath();
2586
2992
  const absolutePath = `${workspace}/${description}/${fileName}`;
@@ -2600,7 +3006,7 @@ const goToPositionAndFocus = async (rowIndex, columnIndex) => {
2600
3006
  };
2601
3007
 
2602
3008
  const selectPick$5 = async (item, value) => {
2603
- if (value.startsWith('::')) {
3009
+ if (value.startsWith(GoToColumn)) {
2604
3010
  const columnString = value.slice(2);
2605
3011
  const wantedColumn = Number.parseInt(columnString, 10);
2606
3012
  const text = await getText();
@@ -2848,7 +3254,9 @@ const handleClickAt = (state, x, y) => {
2848
3254
  return selectIndex(state, index);
2849
3255
  };
2850
3256
 
2851
- const setFocus = setFocus$1;
3257
+ const {
3258
+ setFocus
3259
+ } = RendererWorker;
2852
3260
 
2853
3261
  const handleFocus = async state => {
2854
3262
  // TODO fix virtual dom diffing so that input isn't destroyed and loses focus when rerendering
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "6.10.0",
3
+ "version": "6.11.0",
4
4
  "keywords": [
5
5
  "text-search"
6
6
  ],