@lvce-editor/file-search-worker 5.18.0 → 5.20.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.
@@ -439,7 +439,7 @@ const create$4$1 = (method, params) => {
439
439
  };
440
440
  };
441
441
  const callbacks = Object.create(null);
442
- const set$2 = (id, fn) => {
442
+ const set$4 = (id, fn) => {
443
443
  callbacks[id] = fn;
444
444
  };
445
445
  const get$2 = id => {
@@ -458,7 +458,7 @@ const registerPromise = () => {
458
458
  resolve,
459
459
  promise
460
460
  } = Promise.withResolvers();
461
- set$2(id, resolve);
461
+ set$4(id, resolve);
462
462
  return {
463
463
  id,
464
464
  promise
@@ -538,7 +538,8 @@ const splitLines$1 = lines => {
538
538
  return lines.split(NewLine);
539
539
  };
540
540
  const getCurrentStack = () => {
541
- const currentStack = joinLines(splitLines$1(new Error().stack || '').slice(2));
541
+ const stackLinesToSkip = 3;
542
+ const currentStack = joinLines(splitLines$1(new Error().stack || '').slice(stackLinesToSkip));
542
543
  return currentStack;
543
544
  };
544
545
  const getNewLineIndex = (string, startIndex = undefined) => {
@@ -802,13 +803,19 @@ const send = (transport, method, ...params) => {
802
803
  const message = create$4$1(method, params);
803
804
  transport.send(message);
804
805
  };
805
- const invoke$2 = (ipc, method, ...params) => {
806
+ const invoke$3 = (ipc, method, ...params) => {
806
807
  return invokeHelper(ipc, method, params, false);
807
808
  };
808
- const invokeAndTransfer = (ipc, method, ...params) => {
809
+ const invokeAndTransfer$1 = (ipc, method, ...params) => {
809
810
  return invokeHelper(ipc, method, params, true);
810
811
  };
811
812
 
813
+ class CommandNotFoundError extends Error {
814
+ constructor(command) {
815
+ super(`Command not found ${command}`);
816
+ this.name = 'CommandNotFoundError';
817
+ }
818
+ }
812
819
  const commands = Object.create(null);
813
820
  const register$1 = commandMap => {
814
821
  Object.assign(commands, commandMap);
@@ -819,7 +826,7 @@ const getCommand = key => {
819
826
  const execute$1 = (command, ...args) => {
820
827
  const fn = getCommand(command);
821
828
  if (!fn) {
822
- throw new Error(`command not found ${command}`);
829
+ throw new CommandNotFoundError(command);
823
830
  }
824
831
  return fn(...args);
825
832
  };
@@ -835,10 +842,10 @@ const createRpc = ipc => {
835
842
  send(ipc, method, ...params);
836
843
  },
837
844
  invoke(method, ...params) {
838
- return invoke$2(ipc, method, ...params);
845
+ return invoke$3(ipc, method, ...params);
839
846
  },
840
847
  invokeAndTransfer(method, ...params) {
841
- return invokeAndTransfer(ipc, method, ...params);
848
+ return invokeAndTransfer$1(ipc, method, ...params);
842
849
  },
843
850
  async dispose() {
844
851
  await ipc?.dispose();
@@ -890,17 +897,43 @@ const WebWorkerRpcClient = {
890
897
  __proto__: null,
891
898
  create: create$4
892
899
  };
900
+ const createMockRpc = ({
901
+ commandMap
902
+ }) => {
903
+ const invocations = [];
904
+ const invoke = (method, ...params) => {
905
+ invocations.push([method, ...params]);
906
+ const command = commandMap[method];
907
+ if (!command) {
908
+ throw new Error(`command ${method} not found`);
909
+ }
910
+ return command(...params);
911
+ };
912
+ const mockRpc = {
913
+ invoke,
914
+ invokeAndTransfer: invoke,
915
+ invocations
916
+ };
917
+ return mockRpc;
918
+ };
919
+
920
+ const Div = 4;
921
+ const Input = 6;
922
+ const Span = 8;
923
+ const Text = 12;
924
+ const Img = 17;
925
+
926
+ const DebugWorker = 55;
927
+ const RendererWorker$1 = 1;
893
928
 
894
929
  const rpcs = Object.create(null);
895
- const set$g = (id, rpc) => {
930
+ const set$3 = (id, rpc) => {
896
931
  rpcs[id] = rpc;
897
932
  };
898
933
  const get$1 = id => {
899
934
  return rpcs[id];
900
935
  };
901
936
 
902
- /* eslint-disable @typescript-eslint/explicit-function-return-type */
903
-
904
937
  const create$3 = rpcId => {
905
938
  return {
906
939
  // @ts-ignore
@@ -916,7 +949,7 @@ const create$3 = rpcId => {
916
949
  return rpc.invokeAndTransfer(method, ...params);
917
950
  },
918
951
  set(rpc) {
919
- set$g(rpcId, rpc);
952
+ set$3(rpcId, rpc);
920
953
  },
921
954
  async dispose() {
922
955
  const rpc = get$1(rpcId);
@@ -924,39 +957,361 @@ const create$3 = rpcId => {
924
957
  }
925
958
  };
926
959
  };
927
- const RendererWorker$1 = 1;
960
+
928
961
  const {
929
- invoke: invoke$3,
930
- set: set$3} = create$3(RendererWorker$1);
962
+ invoke: invoke$2,
963
+ invokeAndTransfer,
964
+ set: set$2,
965
+ dispose: dispose$2
966
+ } = create$3(RendererWorker$1);
967
+ const searchFileHtml = async uri => {
968
+ return invoke$2('ExtensionHost.searchFileWithHtml', uri);
969
+ };
970
+ const getFilePathElectron = async file => {
971
+ return invoke$2('FileSystemHandle.getFilePathElectron', file);
972
+ };
973
+ const showContextMenu = async (x, y, id, ...args) => {
974
+ return invoke$2('ContextMenu.show', x, y, id, ...args);
975
+ };
976
+ const getElectronVersion = async () => {
977
+ return invoke$2('Process.getElectronVersion');
978
+ };
979
+ const applyBulkReplacement = async bulkEdits => {
980
+ await invoke$2('BulkReplacement.applyBulkReplacement', bulkEdits);
981
+ };
982
+ const setColorTheme$1 = async id => {
983
+ // @ts-ignore
984
+ return invoke$2(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
985
+ };
986
+ const getNodeVersion = async () => {
987
+ return invoke$2('Process.getNodeVersion');
988
+ };
989
+ const getChromeVersion = async () => {
990
+ return invoke$2('Process.getChromeVersion');
991
+ };
992
+ const getV8Version = async () => {
993
+ return invoke$2('Process.getV8Version');
994
+ };
995
+ const getFileHandles = async fileIds => {
996
+ const files = await invoke$2('FileSystemHandle.getFileHandles', fileIds);
997
+ return files;
998
+ };
999
+ const setWorkspacePath = async path => {
1000
+ await invoke$2('Workspace.setPath', path);
1001
+ };
1002
+ const registerWebViewInterceptor = async (id, port) => {
1003
+ await invokeAndTransfer('WebView.registerInterceptor', id, port);
1004
+ };
1005
+ const unregisterWebViewInterceptor = async id => {
1006
+ await invoke$2('WebView.unregisterInterceptor', id);
1007
+ };
1008
+ const sendMessagePortToEditorWorker = async (port, rpcId) => {
1009
+ const command = 'HandleMessagePort.handleMessagePort';
1010
+ // @ts-ignore
1011
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
1012
+ };
1013
+ const sendMessagePortToErrorWorker = async (port, rpcId) => {
1014
+ const command = 'Errors.handleMessagePort';
1015
+ // @ts-ignore
1016
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
1017
+ };
1018
+ const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
1019
+ const command = 'Markdown.handleMessagePort';
1020
+ // @ts-ignore
1021
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
1022
+ };
1023
+ const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
1024
+ const command = 'IconTheme.handleMessagePort';
1025
+ // @ts-ignore
1026
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
1027
+ };
1028
+ const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
1029
+ const command = 'FileSystem.handleMessagePort';
1030
+ // @ts-ignore
1031
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
1032
+ };
1033
+ const readFile = async uri => {
1034
+ return invoke$2('FileSystem.readFile', uri);
1035
+ };
1036
+ const getWebViewSecret = async key => {
1037
+ // @ts-ignore
1038
+ return invoke$2('WebView.getSecret', key);
1039
+ };
1040
+ const setWebViewPort = async (uid, port, origin, portType) => {
1041
+ return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
1042
+ };
931
1043
  const setFocus$2 = key => {
932
- return invoke$3('Focus.setFocus', key);
1044
+ return invoke$2('Focus.setFocus', key);
933
1045
  };
934
1046
  const getFileIcon$1 = async options => {
935
- return invoke$3('IconTheme.getFileIcon', options);
1047
+ return invoke$2('IconTheme.getFileIcon', options);
1048
+ };
1049
+ const getColorThemeNames$1 = async () => {
1050
+ return invoke$2('ColorTheme.getColorThemeNames');
1051
+ };
1052
+ const disableExtension = async id => {
1053
+ // @ts-ignore
1054
+ return invoke$2('ExtensionManagement.disable', id);
1055
+ };
1056
+ const enableExtension = async id => {
1057
+ // @ts-ignore
1058
+ return invoke$2('ExtensionManagement.enable', id);
1059
+ };
1060
+ const handleDebugChange = async params => {
1061
+ // @ts-ignore
1062
+ return invoke$2('Run And Debug.handleChange', params);
936
1063
  };
937
1064
  const getFolderIcon$1 = async options => {
938
- return invoke$3('IconTheme.getFolderIcon', options);
1065
+ return invoke$2('IconTheme.getFolderIcon', options);
939
1066
  };
940
1067
  const closeWidget$2 = async widgetId => {
941
- return invoke$3('Viewlet.closeWidget', widgetId);
1068
+ return invoke$2('Viewlet.closeWidget', widgetId);
1069
+ };
1070
+ const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
1071
+ const command = 'HandleMessagePort.handleMessagePort2';
1072
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
1073
+ };
1074
+ const sendMessagePortToSearchProcess = async port => {
1075
+ await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
1076
+ };
1077
+ const confirm = async (message, options) => {
1078
+ // @ts-ignore
1079
+ const result = await invoke$2('ConfirmPrompt.prompt', message, options);
1080
+ return result;
1081
+ };
1082
+ const getRecentlyOpened$1 = async () => {
1083
+ return invoke$2(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
1084
+ };
1085
+ const getKeyBindings$1 = async () => {
1086
+ return invoke$2('KeyBindingsInitial.getKeyBindings');
1087
+ };
1088
+ const writeClipBoardText = async text => {
1089
+ await invoke$2('ClipBoard.writeText', /* text */text);
1090
+ };
1091
+ const writeClipBoardImage = async blob => {
1092
+ // @ts-ignore
1093
+ await invoke$2('ClipBoard.writeImage', /* text */blob);
1094
+ };
1095
+ const searchFileMemory = async uri => {
1096
+ // @ts-ignore
1097
+ return invoke$2('ExtensionHost.searchFileWithMemory', uri);
1098
+ };
1099
+ const searchFileFetch = async uri => {
1100
+ return invoke$2('ExtensionHost.searchFileWithFetch', uri);
1101
+ };
1102
+ const showMessageBox = async options => {
1103
+ return invoke$2('ElectronDialog.showMessageBox', options);
1104
+ };
1105
+ const handleDebugResumed = async params => {
1106
+ await invoke$2('Run And Debug.handleResumed', params);
1107
+ };
1108
+ const openWidget = async name => {
1109
+ await invoke$2('Viewlet.openWidget', name);
1110
+ };
1111
+ const getIcons = async requests => {
1112
+ const icons = await invoke$2('IconTheme.getIcons', requests);
1113
+ return icons;
1114
+ };
1115
+ const activateByEvent = event => {
1116
+ return invoke$2('ExtensionHostManagement.activateByEvent', event);
1117
+ };
1118
+ const setAdditionalFocus = focusKey => {
1119
+ // @ts-ignore
1120
+ return invoke$2('Focus.setAdditionalFocus', focusKey);
1121
+ };
1122
+ const getActiveEditorId = () => {
1123
+ // @ts-ignore
1124
+ return invoke$2('GetActiveEditor.getActiveEditorId');
1125
+ };
1126
+ const getWorkspacePath$1 = () => {
1127
+ return invoke$2('Workspace.getPath');
1128
+ };
1129
+ const sendMessagePortToRendererProcess = async port => {
1130
+ const command = 'HandleMessagePort.handleMessagePort';
1131
+ // @ts-ignore
1132
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
1133
+ };
1134
+ const getPreference = async key => {
1135
+ return await invoke$2('Preferences.get', key);
1136
+ };
1137
+ const getAllExtensions = async () => {
1138
+ return invoke$2('ExtensionManagement.getAllExtensions');
1139
+ };
1140
+ const rerenderEditor = async key => {
1141
+ // @ts-ignore
1142
+ return invoke$2('Editor.rerender', key);
1143
+ };
1144
+ const handleDebugPaused = async params => {
1145
+ await invoke$2('Run And Debug.handlePaused', params);
942
1146
  };
943
1147
  const openUri$2 = async (uri, focus, options) => {
944
- await invoke$3('Main.openUri', uri, focus, options);
1148
+ await invoke$2('Main.openUri', uri, focus, options);
1149
+ };
1150
+ const sendMessagePortToSyntaxHighlightingWorker = async port => {
1151
+ await invokeAndTransfer(
1152
+ // @ts-ignore
1153
+ 'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
1154
+ };
1155
+ const handleDebugScriptParsed = async script => {
1156
+ await invoke$2('Run And Debug.handleScriptParsed', script);
1157
+ };
1158
+ const getWindowId = async () => {
1159
+ return invoke$2('GetWindowId.getWindowId');
1160
+ };
1161
+ const getBlob = async uri => {
1162
+ // @ts-ignore
1163
+ return invoke$2('FileSystem.getBlob', uri);
1164
+ };
1165
+ const getExtensionCommands = async () => {
1166
+ return invoke$2('ExtensionHost.getCommands');
945
1167
  };
946
1168
  const showErrorDialog$2 = async errorInfo => {
947
1169
  // @ts-ignore
948
- await invoke$3('ErrorHandling.showErrorDialog', errorInfo);
1170
+ await invoke$2('ErrorHandling.showErrorDialog', errorInfo);
1171
+ };
1172
+ const getFolderSize = async uri => {
1173
+ // @ts-ignore
1174
+ return await invoke$2('FileSystem.getFolderSize', uri);
1175
+ };
1176
+ const getExtension = async id => {
1177
+ // @ts-ignore
1178
+ return invoke$2('ExtensionManagement.getExtension', id);
1179
+ };
1180
+ const getMarkdownDom = async html => {
1181
+ // @ts-ignore
1182
+ return invoke$2('Markdown.getVirtualDom', html);
1183
+ };
1184
+ const renderMarkdown = async (markdown, options) => {
1185
+ // @ts-ignore
1186
+ return invoke$2('Markdown.renderMarkdown', markdown, options);
1187
+ };
1188
+ const openNativeFolder = async uri => {
1189
+ // @ts-ignore
1190
+ await invoke$2('OpenNativeFolder.openNativeFolder', uri);
1191
+ };
1192
+ const uninstallExtension = async id => {
1193
+ return invoke$2('ExtensionManagement.uninstall', id);
1194
+ };
1195
+ const installExtension = async id => {
1196
+ // @ts-ignore
1197
+ return invoke$2('ExtensionManagement.install', id);
949
1198
  };
1199
+ const openExtensionSearch = async () => {
1200
+ // @ts-ignore
1201
+ return invoke$2('SideBar.openViewlet', 'Extensions');
1202
+ };
1203
+ const setExtensionsSearchValue = async searchValue => {
1204
+ // @ts-ignore
1205
+ return invoke$2('Extensions.handleInput', searchValue);
1206
+ };
1207
+ const openExternal = async uri => {
1208
+ // @ts-ignore
1209
+ await invoke$2('Open.openExternal', uri);
1210
+ };
1211
+ const openUrl = async uri => {
1212
+ // @ts-ignore
1213
+ await invoke$2('Open.openUrl', uri);
1214
+ };
1215
+ const getAllPreferences = async () => {
1216
+ // @ts-ignore
1217
+ return invoke$2('Preferences.getAll');
1218
+ };
1219
+ const showSaveFilePicker = async () => {
1220
+ // @ts-ignore
1221
+ return invoke$2('FilePicker.showSaveFilePicker');
1222
+ };
1223
+ const getLogsDir = async () => {
1224
+ // @ts-ignore
1225
+ return invoke$2('PlatformPaths.getLogsDir');
1226
+ };
1227
+ const registerMockRpc = commandMap => {
1228
+ const mockRpc = createMockRpc({
1229
+ commandMap
1230
+ });
1231
+ set$2(mockRpc);
1232
+ return mockRpc;
1233
+ };
1234
+
950
1235
  const RendererWorker = {
951
1236
  __proto__: null,
1237
+ activateByEvent,
1238
+ applyBulkReplacement,
952
1239
  closeWidget: closeWidget$2,
1240
+ confirm,
1241
+ disableExtension,
1242
+ dispose: dispose$2,
1243
+ enableExtension,
1244
+ getActiveEditorId,
1245
+ getAllExtensions,
1246
+ getAllPreferences,
1247
+ getBlob,
1248
+ getChromeVersion,
1249
+ getColorThemeNames: getColorThemeNames$1,
1250
+ getElectronVersion,
1251
+ getExtension,
1252
+ getExtensionCommands,
1253
+ getFileHandles,
953
1254
  getFileIcon: getFileIcon$1,
1255
+ getFilePathElectron,
954
1256
  getFolderIcon: getFolderIcon$1,
955
- invoke: invoke$3,
1257
+ getFolderSize,
1258
+ getIcons,
1259
+ getKeyBindings: getKeyBindings$1,
1260
+ getLogsDir,
1261
+ getMarkdownDom,
1262
+ getNodeVersion,
1263
+ getPreference,
1264
+ getRecentlyOpened: getRecentlyOpened$1,
1265
+ getV8Version,
1266
+ getWebViewSecret,
1267
+ getWindowId,
1268
+ getWorkspacePath: getWorkspacePath$1,
1269
+ handleDebugChange,
1270
+ handleDebugPaused,
1271
+ handleDebugResumed,
1272
+ handleDebugScriptParsed,
1273
+ installExtension,
1274
+ invoke: invoke$2,
1275
+ invokeAndTransfer,
1276
+ openExtensionSearch,
1277
+ openExternal,
1278
+ openNativeFolder,
956
1279
  openUri: openUri$2,
957
- set: set$3,
1280
+ openUrl,
1281
+ openWidget,
1282
+ readFile,
1283
+ registerMockRpc,
1284
+ registerWebViewInterceptor,
1285
+ renderMarkdown,
1286
+ rerenderEditor,
1287
+ searchFileFetch,
1288
+ searchFileHtml,
1289
+ searchFileMemory,
1290
+ sendMessagePortToEditorWorker,
1291
+ sendMessagePortToErrorWorker,
1292
+ sendMessagePortToExtensionHostWorker,
1293
+ sendMessagePortToFileSystemWorker,
1294
+ sendMessagePortToIconThemeWorker,
1295
+ sendMessagePortToMarkdownWorker,
1296
+ sendMessagePortToRendererProcess,
1297
+ sendMessagePortToSearchProcess,
1298
+ sendMessagePortToSyntaxHighlightingWorker,
1299
+ set: set$2,
1300
+ setAdditionalFocus,
1301
+ setColorTheme: setColorTheme$1,
1302
+ setExtensionsSearchValue,
958
1303
  setFocus: setFocus$2,
959
- showErrorDialog: showErrorDialog$2};
1304
+ setWebViewPort,
1305
+ setWorkspacePath,
1306
+ showContextMenu,
1307
+ showErrorDialog: showErrorDialog$2,
1308
+ showMessageBox,
1309
+ showSaveFilePicker,
1310
+ uninstallExtension,
1311
+ unregisterWebViewInterceptor,
1312
+ writeClipBoardImage,
1313
+ writeClipBoardText
1314
+ };
960
1315
 
961
1316
  const {
962
1317
  invoke: invoke$1,
@@ -987,8 +1342,13 @@ const minimumSliderSize = 20;
987
1342
  const Default$1 = 0;
988
1343
  const Finished = 2;
989
1344
 
1345
+ const toCommandId = key => {
1346
+ const dotIndex = key.indexOf('.');
1347
+ return key.slice(dotIndex + 1);
1348
+ };
990
1349
  const create$2 = () => {
991
1350
  const states = Object.create(null);
1351
+ const commandMapRef = {};
992
1352
  return {
993
1353
  get(uid) {
994
1354
  return states[uid];
@@ -1029,6 +1389,15 @@ const create$2 = () => {
1029
1389
  };
1030
1390
  return wrapped;
1031
1391
  },
1392
+ wrapGetter(fn) {
1393
+ const wrapped = (uid, ...args) => {
1394
+ const {
1395
+ newState
1396
+ } = states[uid];
1397
+ return fn(newState, ...args);
1398
+ };
1399
+ return wrapped;
1400
+ },
1032
1401
  diff(uid, modules, numbers) {
1033
1402
  const {
1034
1403
  oldState,
@@ -1042,6 +1411,14 @@ const create$2 = () => {
1042
1411
  }
1043
1412
  }
1044
1413
  return diffResult;
1414
+ },
1415
+ getCommandIds() {
1416
+ const keys = Object.keys(commandMapRef);
1417
+ const ids = keys.map(toCommandId);
1418
+ return ids;
1419
+ },
1420
+ registerCommands(commandMap) {
1421
+ Object.assign(commandMapRef, commandMap);
1045
1422
  }
1046
1423
  };
1047
1424
  };
@@ -2816,23 +3193,14 @@ const renderHeight = newState => {
2816
3193
  const mergeClassNames = (...classNames) => {
2817
3194
  return classNames.filter(Boolean).join(' ');
2818
3195
  };
3196
+
2819
3197
  const px = value => {
2820
3198
  return `${value}px`;
2821
3199
  };
2822
3200
  const position = (x, y) => {
2823
3201
  return `${x}px ${y}px`;
2824
3202
  };
2825
- const Div = 4;
2826
- const Input = 6;
2827
- const Span = 8;
2828
- const Text = 12;
2829
- const Img = 17;
2830
- const VirtualDomElements = {
2831
- __proto__: null,
2832
- Div,
2833
- Img,
2834
- Input,
2835
- Span};
3203
+
2836
3204
  const text = data => {
2837
3205
  return {
2838
3206
  type: Text,
@@ -2881,7 +3249,7 @@ const QuickPickItemActive = 'QuickPickItemActive';
2881
3249
  const getQuickPickInputVirtualDom = () => {
2882
3250
  const ariaLabel = typeNameofCommandToRun();
2883
3251
  return {
2884
- type: VirtualDomElements.Input,
3252
+ type: Input,
2885
3253
  className: InputBox,
2886
3254
  spellcheck: false,
2887
3255
  autocapitalize: 'off',
@@ -2902,7 +3270,7 @@ const getQuickPickInputVirtualDom = () => {
2902
3270
 
2903
3271
  const getQuickPickHeaderVirtualDom = () => {
2904
3272
  return [{
2905
- type: VirtualDomElements.Div,
3273
+ type: Div,
2906
3274
  className: QuickPickHeader,
2907
3275
  childCount: 1
2908
3276
  }, getQuickPickInputVirtualDom()];
@@ -2910,7 +3278,7 @@ const getQuickPickHeaderVirtualDom = () => {
2910
3278
 
2911
3279
  const getFileIconVirtualDom = icon => {
2912
3280
  return {
2913
- type: VirtualDomElements.Img,
3281
+ type: Img,
2914
3282
  className: FileIcon,
2915
3283
  src: icon,
2916
3284
  role: None,
@@ -2919,13 +3287,13 @@ const getFileIconVirtualDom = icon => {
2919
3287
  };
2920
3288
 
2921
3289
  const quickPickHighlight = {
2922
- type: VirtualDomElements.Span,
3290
+ type: Span,
2923
3291
  className: QuickPickHighlight,
2924
3292
  childCount: 1
2925
3293
  };
2926
3294
  const getHighlights = (sections, label) => {
2927
3295
  const labelDom = {
2928
- type: VirtualDomElements.Div,
3296
+ type: Div,
2929
3297
  className: QuickPickItemLabel,
2930
3298
  childCount: 0
2931
3299
  };
@@ -2960,7 +3328,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2960
3328
  } = visibleItem;
2961
3329
  const dom = [];
2962
3330
  dom.push({
2963
- type: VirtualDomElements.Div,
3331
+ type: Div,
2964
3332
  className: QuickPickItem,
2965
3333
  role: Option,
2966
3334
  ariaPosInSet: posInSet,
@@ -2979,7 +3347,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2979
3347
  } else if (icon) {
2980
3348
  parent.childCount++;
2981
3349
  dom.push({
2982
- type: VirtualDomElements.Div,
3350
+ type: Div,
2983
3351
  className: mergeClassNames(QuickPickMaskIcon, MaskIcon, `MaskIcon${icon}`),
2984
3352
  childCount: 0
2985
3353
  });
@@ -2989,7 +3357,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2989
3357
  if (description) {
2990
3358
  parent.childCount++;
2991
3359
  dom.push({
2992
- type: VirtualDomElements.Div,
3360
+ type: Div,
2993
3361
  className: QuickPickItemDescription,
2994
3362
  childCount: 1
2995
3363
  }, text(description));
@@ -3000,11 +3368,11 @@ const getQuickPickItemVirtualDom = visibleItem => {
3000
3368
  const getQuickPickNoResultsVirtualDom = () => {
3001
3369
  const noResults$1 = noResults();
3002
3370
  return [{
3003
- type: VirtualDomElements.Div,
3371
+ type: Div,
3004
3372
  className: mergeClassNames(QuickPickItem, QuickPickItemActive$1, QuickPickStatus),
3005
3373
  childCount: 1
3006
3374
  }, {
3007
- type: VirtualDomElements.Div,
3375
+ type: Div,
3008
3376
  className: Label,
3009
3377
  childCount: 1
3010
3378
  }, text(noResults$1)];
@@ -3026,11 +3394,11 @@ const getScrollBarVirtualDom = (scrollBarHeight, scrollBarTop) => {
3026
3394
  const heightString = px(scrollBarHeight);
3027
3395
  const translateString = position(0, scrollBarTop);
3028
3396
  return [{
3029
- type: VirtualDomElements.Div,
3397
+ type: Div,
3030
3398
  className: mergeClassNames(ScrollBar, ScrollBarSmall),
3031
3399
  childCount: 1
3032
3400
  }, {
3033
- type: VirtualDomElements.Div,
3401
+ type: Div,
3034
3402
  className: ScrollBarThumb,
3035
3403
  childCount: 0,
3036
3404
  height: heightString,
@@ -3042,13 +3410,13 @@ const getQuickPickVirtualDom = (visibleItems, scrollBarHeight, scrollBarTop) =>
3042
3410
  const quickOpen$1 = quickOpen();
3043
3411
  const shouldShowScrollbar = scrollBarHeight > 0;
3044
3412
  return [{
3045
- type: VirtualDomElements.Div,
3413
+ type: Div,
3046
3414
  className: mergeClassNames(Viewlet, QuickPick$1),
3047
3415
  childCount: 2,
3048
3416
  id: QuickPick,
3049
3417
  ariaLabel: quickOpen$1
3050
3418
  }, ...getQuickPickHeaderVirtualDom(), {
3051
- type: VirtualDomElements.Div,
3419
+ type: Div,
3052
3420
  className: mergeClassNames(List, ContainContent),
3053
3421
  id: QuickPickItems,
3054
3422
  role: ListBox,
@@ -3057,7 +3425,7 @@ const getQuickPickVirtualDom = (visibleItems, scrollBarHeight, scrollBarTop) =>
3057
3425
  onPointerDown: HandlePointerDown,
3058
3426
  childCount: shouldShowScrollbar ? 2 : 1
3059
3427
  }, {
3060
- type: VirtualDomElements.Div,
3428
+ type: Div,
3061
3429
  className: mergeClassNames(ListItems, ContainContent),
3062
3430
  childCount: visibleItems.length
3063
3431
  }, ...getQuickPickItemsVirtualDom(visibleItems), ...getScrollBarVirtualDom(scrollBarHeight, scrollBarTop)];
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "5.18.0",
4
- "description": "",
3
+ "version": "5.20.0",
5
4
  "keywords": [
6
5
  "text-search"
7
6
  ],