@lvce-editor/file-search-worker 4.0.0 → 4.2.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.
@@ -434,7 +434,7 @@ const IpcChildWithModuleWorkerAndMessagePort$1 = {
434
434
  };
435
435
 
436
436
  const Two = '2.0';
437
- const create$4$1 = (method, params) => {
437
+ const create$4 = (method, params) => {
438
438
  return {
439
439
  jsonrpc: Two,
440
440
  method,
@@ -448,7 +448,7 @@ const set$2 = (id, fn) => {
448
448
  const get$2 = id => {
449
449
  return callbacks[id];
450
450
  };
451
- const remove = id => {
451
+ const remove$1 = id => {
452
452
  delete callbacks[id];
453
453
  };
454
454
  let id = 0;
@@ -625,7 +625,7 @@ const resolve = (id, response) => {
625
625
  return;
626
626
  }
627
627
  fn(response);
628
- remove(id);
628
+ remove$1(id);
629
629
  };
630
630
  const E_COMMAND_NOT_FOUND = 'E_COMMAND_NOT_FOUND';
631
631
  const getErrorType = prettyError => {
@@ -769,7 +769,7 @@ const invokeHelper = async (ipc, method, params, useSendAndTransfer) => {
769
769
  return unwrapJsonRpcResult(responseMessage);
770
770
  };
771
771
  const send = (transport, method, ...params) => {
772
- const message = create$4$1(method, params);
772
+ const message = create$4(method, params);
773
773
  transport.send(message);
774
774
  };
775
775
  const invoke$2 = (ipc, method, ...params) => {
@@ -843,7 +843,7 @@ const listen$1 = async (module, options) => {
843
843
  const ipc = module.wrap(rawIpc);
844
844
  return ipc;
845
845
  };
846
- const create$4 = async ({
846
+ const create$3 = async ({
847
847
  commandMap
848
848
  }) => {
849
849
  // TODO create a commandMap per rpc instance
@@ -855,7 +855,7 @@ const create$4 = async ({
855
855
  };
856
856
  const WebWorkerRpcClient = {
857
857
  __proto__: null,
858
- create: create$4
858
+ create: create$3
859
859
  };
860
860
 
861
861
  const User = 1;
@@ -937,6 +937,7 @@ const SelectColorTheme = 'Select Color Theme';
937
937
  const SelectToOpen = 'Select to open';
938
938
  const ShowAndRunCommands = 'Show And Run Commands';
939
939
  const TypeNameOfCommandToRun = 'Type the name of a command to run.';
940
+ const QuickOpen = 'Quick open';
940
941
 
941
942
  const noMatchingColorThemesFound = () => {
942
943
  return i18nString(NoMatchingColorThemesFound);
@@ -977,6 +978,9 @@ const noSymbolFound = () => {
977
978
  const noWorkspaceSymbolsFound = () => {
978
979
  return i18nString(NoWorkspaceSymbolsFound);
979
980
  };
981
+ const quickOpen = () => {
982
+ return i18nString(QuickOpen);
983
+ };
980
984
 
981
985
  const name$b = 'command';
982
986
  const getPlaceholder$b = () => {
@@ -1684,7 +1688,7 @@ const QuickPickEntriesEverything = {
1684
1688
  const Default$1 = 0;
1685
1689
  const Finished = 2;
1686
1690
 
1687
- const create$3 = () => {
1691
+ const create$2 = () => {
1688
1692
  const states = Object.create(null);
1689
1693
  return {
1690
1694
  get(uid) {
@@ -1695,16 +1699,20 @@ const create$3 = () => {
1695
1699
  oldState,
1696
1700
  newState
1697
1701
  };
1702
+ },
1703
+ remove(uid) {
1704
+ delete states[uid];
1698
1705
  }
1699
1706
  };
1700
1707
  };
1701
1708
 
1702
1709
  const {
1703
1710
  get,
1704
- set
1705
- } = create$3();
1711
+ set,
1712
+ remove
1713
+ } = create$2();
1706
1714
 
1707
- const create$2 = ({
1715
+ const create$1 = ({
1708
1716
  itemHeight,
1709
1717
  headerHeight = 0,
1710
1718
  minimumSliderSize = 20
@@ -1770,7 +1778,7 @@ const handleWheel = (state, deltaMode, deltaY) => {
1770
1778
  return setDeltaY(state, state.deltaY + deltaY);
1771
1779
  };
1772
1780
 
1773
- const create$1 = (uid, uri, listItemHeight, x, y, width, height, platform, args) => {
1781
+ const create = (uid, uri, listItemHeight, x, y, width, height, platform, args, renderAllItems) => {
1774
1782
  const state = {
1775
1783
  uid,
1776
1784
  state: Default$1,
@@ -1789,7 +1797,7 @@ const create$1 = (uid, uri, listItemHeight, x, y, width, height, platform, args)
1789
1797
  height: 300,
1790
1798
  top: 50,
1791
1799
  width: 600,
1792
- ...create$2({
1800
+ ...create$1({
1793
1801
  itemHeight: listItemHeight,
1794
1802
  headerHeight: 30,
1795
1803
  minimumSliderSize: minimumSliderSize
@@ -1798,43 +1806,14 @@ const create$1 = (uid, uri, listItemHeight, x, y, width, height, platform, args)
1798
1806
  args,
1799
1807
  focused: false,
1800
1808
  platform,
1801
- value: ''
1809
+ value: '',
1810
+ renderAllItems
1802
1811
  };
1803
1812
  set(uid, state, state);
1804
1813
  };
1805
1814
 
1806
- const create = (uid, uri, listItemHeight, x, y, width, height, platform, args) => {
1807
- const state = {
1808
- uid,
1809
- state: Default$1,
1810
- picks: [],
1811
- recentPicks: [],
1812
- recentPickIds: new Map(),
1813
- // TODO use object.create(null) instead
1814
- versionId: 0,
1815
- provider: QuickPickEntriesEverything,
1816
- // TODO make this dynamic again
1817
- warned: [],
1818
- visiblePicks: [],
1819
- maxVisibleItems: 10,
1820
- uri,
1821
- cursorOffset: 0,
1822
- height: 300,
1823
- top: 50,
1824
- width: 600,
1825
- ...create$2({
1826
- itemHeight: listItemHeight,
1827
- headerHeight: 30,
1828
- minimumSliderSize: minimumSliderSize
1829
- }),
1830
- inputSource: User,
1831
- args,
1832
- focused: false,
1833
- platform,
1834
- value: ''
1835
- };
1836
- set(uid, state, state);
1837
- return state;
1815
+ const dispose = uid => {
1816
+ remove(uid);
1838
1817
  };
1839
1818
 
1840
1819
  const emptyMatches = [];
@@ -2112,7 +2091,8 @@ const focusPrevious = state => {
2112
2091
  return focusIndex(state, previousIndex);
2113
2092
  };
2114
2093
 
2115
- const commandIds = ['handleBlur', 'handleClickAt', 'handleWheel', 'selectCurrentIndex', 'selectIndex', 'selectItem', 'focusFirst', 'focusIndex', 'focusLast', 'focusNext', 'focusPrevious', 'setValue', 'handleInput', 'handleBeforeInput'];
2094
+ const commandIds = ['focusFirst', 'focusIndex', 'focusLast', 'focusNext', 'focusPrevious', 'handleBeforeInput', 'handleBlur', 'handleClickAt', 'handleInput', 'handleWheel', 'dispose', 'renderEventListeners', 'selectCurrentIndex', 'selectIndex', 'selectItem', 'setValue'];
2095
+
2116
2096
  const getCommandIds = () => {
2117
2097
  return commandIds;
2118
2098
  };
@@ -2342,15 +2322,16 @@ const handleBeforeInput = (state, inputType, data, selectionStart, selectionEnd)
2342
2322
  return handleInput(state, newValue, cursorOffset, User);
2343
2323
  };
2344
2324
 
2345
- const closeWidget = async id => {
2346
- await invoke$1('Viewlet.closeWidget', id);
2347
- };
2348
-
2349
2325
  const handleBlur = async state => {
2350
- await closeWidget(state.uid);
2326
+ // TODO fix virtual dom diffing so that input isn't destroyed and loses focus when rerendering
2327
+ // await CloseWidget.closeWidget(state.uid)
2351
2328
  return state;
2352
2329
  };
2353
2330
 
2331
+ const closeWidget = async id => {
2332
+ await invoke$1('Viewlet.closeWidget', id);
2333
+ };
2334
+
2354
2335
  const getPick = (items, index) => {
2355
2336
  array(items);
2356
2337
  number(index);
@@ -2655,7 +2636,8 @@ const createQuickPickViewModel = async (oldState, newState) => {
2655
2636
  height,
2656
2637
  oldFocusedIndex,
2657
2638
  newFocusedIndex,
2658
- uid: newState.uid
2639
+ uid: newState.uid,
2640
+ renderAllItems: newState.renderAllItems
2659
2641
  };
2660
2642
  };
2661
2643
 
@@ -2675,7 +2657,12 @@ const renderCursorOffset = newState => {
2675
2657
  return ['Viewlet.send', newState.uid, /* method */SetCursorOffset, /* cursorOffset */newState.cursorOffset];
2676
2658
  };
2677
2659
 
2660
+ const QuickPickInput = 'QuickPickInput';
2661
+
2678
2662
  const renderFocus = newState => {
2663
+ if (newState.renderAllItems) {
2664
+ return ['Viewlet.focusElementByName', QuickPickInput];
2665
+ }
2679
2666
  const selector = newState.focused ? '.InputBox' : '';
2680
2667
  return ['Viewlet.focusSelector', selector];
2681
2668
  };
@@ -2691,25 +2678,32 @@ const renderHeight = newState => {
2691
2678
  return ['Viewlet.send', newState.uid, /* method */SetItemsHeight, /* height */newState.height];
2692
2679
  };
2693
2680
 
2681
+ const ComboBox = 'combobox';
2682
+ const ListBox = 'listbox';
2683
+ const None$1 = 'none';
2684
+ const Option$1 = 'option';
2685
+
2694
2686
  const FileIcon = 'FileIcon';
2687
+ const InputBox = 'InputBox';
2695
2688
  const Label = 'Label';
2689
+ const QuickPick$1 = 'QuickPick';
2690
+ const QuickPickHeader = 'QuickPickHeader';
2696
2691
  const QuickPickHighlight = 'QuickPickHighlight';
2697
2692
  const QuickPickItem = 'QuickPickItem';
2698
- const QuickPickItemActive = 'QuickPickItemActive';
2693
+ const QuickPickItemActive$1 = 'QuickPickItemActive';
2699
2694
  const QuickPickItemDescription = 'QuickPickItemDescription';
2700
2695
  const QuickPickItemLabel = 'QuickPickItemLabel';
2696
+ const QuickPickItems$1 = 'QuickPickItems';
2697
+ const Viewlet = 'Viewlet';
2701
2698
 
2702
- const None$1 = 'none';
2703
- const Option = 'option';
2704
-
2705
- const Div = 4;
2706
- const Span = 8;
2707
- const Text = 12;
2708
- const Img = 17;
2699
+ const Div$1 = 4;
2700
+ const Input$1 = 6;
2701
+ const Span$1 = 8;
2702
+ const Img$1 = 17;
2709
2703
 
2710
2704
  const getFileIconVirtualDom = icon => {
2711
2705
  return {
2712
- type: Img,
2706
+ type: Img$1,
2713
2707
  className: FileIcon,
2714
2708
  src: icon,
2715
2709
  role: None$1,
@@ -2717,7 +2711,134 @@ const getFileIconVirtualDom = icon => {
2717
2711
  };
2718
2712
  };
2719
2713
 
2720
- const text = data => {
2714
+ var __defProp = Object.defineProperty;
2715
+ var __export = (target, all) => {
2716
+ for (var name in all) __defProp(target, name, {
2717
+ get: all[name],
2718
+ enumerable: true
2719
+ });
2720
+ };
2721
+
2722
+ // src/parts/MergeClassNames/MergeClassNames.ts
2723
+ var mergeClassNames = (...classNames) => {
2724
+ return classNames.filter(Boolean).join(" ");
2725
+ };
2726
+
2727
+ // src/parts/VirtualDomElements/VirtualDomElements.ts
2728
+ var VirtualDomElements_exports = {};
2729
+ __export(VirtualDomElements_exports, {
2730
+ A: () => A,
2731
+ Abbr: () => Abbr,
2732
+ Article: () => Article,
2733
+ Aside: () => Aside,
2734
+ Audio: () => Audio,
2735
+ Br: () => Br,
2736
+ Button: () => Button,
2737
+ Cite: () => Cite,
2738
+ Col: () => Col,
2739
+ ColGroup: () => ColGroup,
2740
+ Data: () => Data,
2741
+ Dd: () => Dd,
2742
+ Del: () => Del,
2743
+ Div: () => Div,
2744
+ Dl: () => Dl,
2745
+ Figcaption: () => Figcaption,
2746
+ Figure: () => Figure,
2747
+ Footer: () => Footer,
2748
+ H1: () => H1,
2749
+ H2: () => H2,
2750
+ H3: () => H3,
2751
+ H4: () => H4,
2752
+ H5: () => H5,
2753
+ H6: () => H6,
2754
+ Header: () => Header,
2755
+ Hr: () => Hr,
2756
+ I: () => I,
2757
+ Img: () => Img,
2758
+ Input: () => Input,
2759
+ Ins: () => Ins,
2760
+ Kbd: () => Kbd,
2761
+ Li: () => Li,
2762
+ Nav: () => Nav,
2763
+ Ol: () => Ol,
2764
+ Option: () => Option,
2765
+ P: () => P,
2766
+ Pre: () => Pre,
2767
+ Root: () => Root,
2768
+ Search: () => Search,
2769
+ Section: () => Section,
2770
+ Select: () => Select,
2771
+ Span: () => Span,
2772
+ TBody: () => TBody,
2773
+ THead: () => THead,
2774
+ Table: () => Table,
2775
+ Td: () => Td,
2776
+ Text: () => Text,
2777
+ TextArea: () => TextArea,
2778
+ Tfoot: () => Tfoot,
2779
+ Th: () => Th,
2780
+ Time: () => Time,
2781
+ Tr: () => Tr,
2782
+ Ul: () => Ul,
2783
+ Video: () => Video
2784
+ });
2785
+ var Audio = 0;
2786
+ var Button = 1;
2787
+ var Col = 2;
2788
+ var ColGroup = 3;
2789
+ var Div = 4;
2790
+ var H1 = 5;
2791
+ var Input = 6;
2792
+ var Kbd = 7;
2793
+ var Span = 8;
2794
+ var Table = 9;
2795
+ var TBody = 10;
2796
+ var Td = 11;
2797
+ var Text = 12;
2798
+ var Th = 13;
2799
+ var THead = 14;
2800
+ var Tr = 15;
2801
+ var I = 16;
2802
+ var Img = 17;
2803
+ var Root = 0;
2804
+ var Ins = 20;
2805
+ var Del = 21;
2806
+ var H2 = 22;
2807
+ var H3 = 23;
2808
+ var H4 = 24;
2809
+ var H5 = 25;
2810
+ var H6 = 26;
2811
+ var Article = 27;
2812
+ var Aside = 28;
2813
+ var Footer = 29;
2814
+ var Header = 30;
2815
+ var Nav = 40;
2816
+ var Section = 41;
2817
+ var Search = 42;
2818
+ var Dd = 43;
2819
+ var Dl = 44;
2820
+ var Figcaption = 45;
2821
+ var Figure = 46;
2822
+ var Hr = 47;
2823
+ var Li = 48;
2824
+ var Ol = 49;
2825
+ var P = 50;
2826
+ var Pre = 51;
2827
+ var A = 53;
2828
+ var Abbr = 54;
2829
+ var Br = 55;
2830
+ var Cite = 56;
2831
+ var Data = 57;
2832
+ var Time = 58;
2833
+ var Tfoot = 59;
2834
+ var Ul = 60;
2835
+ var Video = 61;
2836
+ var TextArea = 62;
2837
+ var Select = 63;
2838
+ var Option = 64;
2839
+
2840
+ // src/parts/Text/Text.ts
2841
+ var text = data => {
2721
2842
  return {
2722
2843
  type: Text,
2723
2844
  text: data,
@@ -2726,13 +2847,13 @@ const text = data => {
2726
2847
  };
2727
2848
 
2728
2849
  const quickPickHighlight = {
2729
- type: Span,
2850
+ type: Span$1,
2730
2851
  className: QuickPickHighlight,
2731
2852
  childCount: 1
2732
2853
  };
2733
2854
  const addHighlights = (dom, highlights, label) => {
2734
2855
  const labelDom = {
2735
- type: Div,
2856
+ type: Div$1,
2736
2857
  className: QuickPickItemLabel,
2737
2858
  childCount: 0
2738
2859
  };
@@ -2771,9 +2892,9 @@ const getQuickPickItemVirtualDom = visibleItem => {
2771
2892
  const highlights = matches.slice(1);
2772
2893
  const dom = [];
2773
2894
  dom.push({
2774
- type: Div,
2895
+ type: Div$1,
2775
2896
  className: QuickPickItem,
2776
- role: Option,
2897
+ role: Option$1,
2777
2898
  ariaPosInSet: posInSet,
2778
2899
  ariaSetSize: setSize,
2779
2900
  childCount: 1
@@ -2782,7 +2903,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2782
2903
  if (isActive) {
2783
2904
  // @ts-ignore
2784
2905
  parent.id = 'QuickPickItemActive';
2785
- parent.className += ' ' + QuickPickItemActive;
2906
+ parent.className += ' ' + QuickPickItemActive$1;
2786
2907
  }
2787
2908
  if (fileIcon) {
2788
2909
  parent.childCount++;
@@ -2790,7 +2911,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2790
2911
  } else if (icon) {
2791
2912
  parent.childCount++;
2792
2913
  dom.push({
2793
- type: Div,
2914
+ type: Div$1,
2794
2915
  className: `QuickPickMaskIcon MaskIcon MaskIcon${icon}`,
2795
2916
  childCount: 0
2796
2917
  });
@@ -2799,7 +2920,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2799
2920
  if (description) {
2800
2921
  parent.childCount++;
2801
2922
  dom.push({
2802
- type: Div,
2923
+ type: Div$1,
2803
2924
  className: QuickPickItemDescription,
2804
2925
  childCount: 1
2805
2926
  }, text(description));
@@ -2807,23 +2928,84 @@ const getQuickPickItemVirtualDom = visibleItem => {
2807
2928
  return dom;
2808
2929
  };
2809
2930
 
2931
+ const getQuickPickNoResultsVirtualDom = () => {
2932
+ return [{
2933
+ type: Div$1,
2934
+ className: 'QuickPickItem QuickPickItemActive QuickPickStatus',
2935
+ childCount: 1
2936
+ }, {
2937
+ type: Div$1,
2938
+ className: Label,
2939
+ childCount: 1
2940
+ }, text('No Results')];
2941
+ };
2942
+
2810
2943
  const getQuickPickItemsVirtualDom = visibleItems => {
2811
2944
  if (visibleItems.length === 0) {
2812
- return [{
2813
- type: Div,
2814
- className: 'QuickPickItem QuickPickItemActive QuickPickStatus',
2815
- childCount: 1
2816
- }, {
2817
- type: Div,
2818
- className: Label,
2819
- childCount: 1
2820
- }, text('No Results')];
2945
+ return getQuickPickNoResultsVirtualDom();
2821
2946
  }
2822
2947
  const dom = visibleItems.flatMap(getQuickPickItemVirtualDom);
2823
2948
  return dom;
2824
2949
  };
2825
2950
 
2951
+ const HandlePointerDown = 'handlePointerDown';
2952
+ const HandleWheel = 'handleWheel';
2953
+ const HandleBlur = 'handleBlur';
2954
+ const HandleBeforeInput = 'handleBeforeInput';
2955
+ const HandleInput = 'handleInput';
2956
+
2957
+ const QuickPick = 'QuickPick';
2958
+ const QuickPickItems = 'QuickPickItems';
2959
+ const QuickPickItemActive = 'QuickPickItemActive';
2960
+
2961
+ const getQuickPickHeaderVirtualDom = () => {
2962
+ const ariaLabel = typeNameofCommandToRun();
2963
+ return [{
2964
+ type: Div$1,
2965
+ className: QuickPickHeader,
2966
+ childCount: 1
2967
+ }, {
2968
+ type: Input$1,
2969
+ className: InputBox,
2970
+ spellcheck: false,
2971
+ autocapitalize: 'off',
2972
+ inputType: 'text',
2973
+ childCount: 0,
2974
+ role: ComboBox,
2975
+ name: QuickPickInput,
2976
+ onBeforeInput: HandleBeforeInput,
2977
+ onBlur: HandleBlur,
2978
+ onInput: HandleInput,
2979
+ ariaLabel: ariaLabel,
2980
+ ariaAutoComplete: 'list',
2981
+ ariaExpanded: true
2982
+ }];
2983
+ };
2984
+
2985
+ const getQuickPickVirtualDom = visibleItems => {
2986
+ const quickOpen$1 = quickOpen();
2987
+ return [{
2988
+ type: Div$1,
2989
+ className: mergeClassNames(Viewlet, QuickPick$1),
2990
+ childCount: 2,
2991
+ id: QuickPick,
2992
+ ariaLabel: quickOpen$1
2993
+ }, ...getQuickPickHeaderVirtualDom(), {
2994
+ type: Div$1,
2995
+ className: QuickPickItems$1,
2996
+ id: QuickPickItems,
2997
+ role: ListBox,
2998
+ ariaActiveDescendant: QuickPickItemActive,
2999
+ onWheel: HandleWheel,
3000
+ childCount: visibleItems.length
3001
+ }, ...getQuickPickItemsVirtualDom(visibleItems)];
3002
+ };
3003
+
2826
3004
  const renderItems = newState => {
3005
+ if (newState.renderAllItems) {
3006
+ const dom = getQuickPickVirtualDom(newState.visibleItems);
3007
+ return ['Viewlet.setDom2', dom];
3008
+ }
2827
3009
  const dom = getQuickPickItemsVirtualDom(newState.visibleItems);
2828
3010
  return ['Viewlet.send', newState.uid, /* method */'setItemsDom', dom];
2829
3011
  };
@@ -2855,6 +3037,12 @@ const applyRender = async (oldState, newState, diffResult) => {
2855
3037
  const commands = [];
2856
3038
  const viewModel = await createQuickPickViewModel(oldState, newState);
2857
3039
  for (const item of diffResult) {
3040
+ if (viewModel.renderAllItems && item === Height) {
3041
+ continue;
3042
+ }
3043
+ if (viewModel.renderAllItems && item === RenderFocusedIndex) {
3044
+ continue;
3045
+ }
2858
3046
  const fn = getRenderer(item);
2859
3047
  commands.push(fn(viewModel));
2860
3048
  }
@@ -2886,8 +3074,8 @@ const isEqual = (oldState, newState) => {
2886
3074
  return newState.inputSource === User || oldState.value === newState.value;
2887
3075
  };
2888
3076
 
2889
- const modules = [isEqual$2, isEqual$1, isEqual$4, isEqual, isEqual$3];
2890
- const numbers = [diffType$2, diffType$1, diffType$4, diffType, diffType$3];
3077
+ const modules = [isEqual$2, isEqual$1, isEqual, isEqual$3, isEqual$4];
3078
+ const numbers = [diffType$2, diffType$1, diffType, diffType$3, diffType$4];
2891
3079
 
2892
3080
  const diff = (oldState, newState) => {
2893
3081
  const diffResult = [];
@@ -2909,6 +3097,26 @@ const doRender = async uid => {
2909
3097
  return applyRender(oldState, newState, diffResult);
2910
3098
  };
2911
3099
 
3100
+ const renderEventListeners = () => {
3101
+ return [{
3102
+ name: HandlePointerDown,
3103
+ params: ['handlePointerDown', 'event.clientX', 'event.clientY'],
3104
+ preventDefault: true
3105
+ }, {
3106
+ name: HandleWheel,
3107
+ params: ['handleWheel', 'event.deltaMode', 'event.deltaY']
3108
+ }, {
3109
+ name: HandleBlur,
3110
+ params: ['handleBlur']
3111
+ }, {
3112
+ name: HandleBeforeInput,
3113
+ params: ['handleBeforeInput']
3114
+ }, {
3115
+ name: HandleInput,
3116
+ params: ['handleInput', 'event.target.value']
3117
+ }];
3118
+ };
3119
+
2912
3120
  const selectCurrentIndex = state => {
2913
3121
  return selectIndex(state, state.focusedIndex);
2914
3122
  };
@@ -2944,7 +3152,7 @@ const wrapCommand = fn => {
2944
3152
 
2945
3153
  const commandMap = {
2946
3154
  'QuickPick.addMenuEntries': add,
2947
- 'QuickPick.create2': create$1,
3155
+ 'QuickPick.create2': create,
2948
3156
  'QuickPick.focusFirst': wrapCommand(focusFirst),
2949
3157
  'QuickPick.focusIndex': wrapCommand(focusIndex),
2950
3158
  'QuickPick.focusLast': wrapCommand(focusLast),
@@ -2954,6 +3162,7 @@ const commandMap = {
2954
3162
  'QuickPick.getKeyBindings': getKeyBindings,
2955
3163
  'QuickPick.handleBeforeInput': wrapCommand(handleBeforeInput),
2956
3164
  'QuickPick.handleBlur': wrapCommand(handleBlur),
3165
+ 'QuickPick.dispose': dispose,
2957
3166
  'QuickPick.handleClickAt': wrapCommand(handleClickAt),
2958
3167
  'QuickPick.handleInput': wrapCommand(handleInput),
2959
3168
  'QuickPick.handleWheel': wrapCommand(handleWheel),
@@ -2965,10 +3174,10 @@ const commandMap = {
2965
3174
  'QuickPick.selectItem': wrapCommand(selectItem),
2966
3175
  'QuickPick.setDeltaY': wrapCommand(setDeltaY),
2967
3176
  'QuickPick.setValue': wrapCommand(setValue),
3177
+ 'QuickPick.renderEventListeners': renderEventListeners,
2968
3178
  // deprecated
2969
3179
  'SearchFile.filter': filterQuickPickItems,
2970
3180
  'SearchFile.searchFile': searchFile$5,
2971
- 'QuickPick.create': create,
2972
3181
  'QuickPick.loadEntries': loadQuickPickEntries
2973
3182
  };
2974
3183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "text-search"