@lvce-editor/file-search-worker 5.3.0 → 5.5.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.
@@ -809,6 +809,9 @@ const createRpc = ipc => {
809
809
  },
810
810
  invokeAndTransfer(method, ...params) {
811
811
  return invokeAndTransfer(ipc, method, ...params);
812
+ },
813
+ async dispose() {
814
+ await ipc?.dispose();
812
815
  }
813
816
  };
814
817
  return rpc;
@@ -944,7 +947,7 @@ const getQuickPickProviderId = prefix => {
944
947
  }
945
948
  };
946
949
 
947
- const getVisibleItems$i = (picks, minLineY, maxLineY, focusedIndex, setSize, icons) => {
950
+ const getVisibleItems$i = (picks, icons) => {
948
951
  return [];
949
952
  };
950
953
 
@@ -1052,9 +1055,9 @@ const state$b = {
1052
1055
  provider: QuickPickNoop,
1053
1056
  prefix: 'string-that-should-never-match-another-string'
1054
1057
  };
1055
- const getVisibleItems$g = (picks, minLineY, maxLineY, focusedIndex, setSize, icons) => {
1058
+ const getVisibleItems$g = (picks, icons) => {
1056
1059
  const items = picks.map(pick => pick.pick);
1057
- const visibleItems = state$b.provider.getVisibleItems(items, minLineY, maxLineY, focusedIndex, setSize, icons);
1060
+ const visibleItems = state$b.provider.getVisibleItems(items, icons);
1058
1061
  return visibleItems;
1059
1062
  };
1060
1063
 
@@ -1599,53 +1602,47 @@ const getKeyBindings = () => {
1599
1602
  }];
1600
1603
  };
1601
1604
 
1602
- const InsertText = 'insertText';
1603
- const DeleteContentBackward = 'deleteContentBackward';
1604
- const DeleteContentForward = 'deleteContentForward';
1605
- const DeleteWordForward = 'deleteWordForward';
1606
- const DeleteWordBackward = 'deleteWordBackward';
1607
- const InsertLineBreak = 'insertLineBreak';
1608
- const InsertCompositionText = 'insertCompositionText';
1609
- const InsertFromPaste = 'insertFromPaste';
1610
-
1611
- const RE_ALPHA_NUMERIC = /[a-z\d]/i;
1612
- const isAlphaNumeric = character => {
1613
- return RE_ALPHA_NUMERIC.test(character);
1614
- };
1615
-
1616
- const getNewValueInsertText = (value, selectionStart, selectionEnd, data) => {
1617
- if (selectionStart === value.length) {
1618
- const newValue = value + data;
1605
+ const getNewValueDeleteContentBackward = (value, selectionStart, selectionEnd, data) => {
1606
+ const after = value.slice(selectionEnd);
1607
+ if (selectionStart === selectionEnd) {
1608
+ const before = value.slice(0, selectionStart - 1);
1609
+ const newValue = before + after;
1619
1610
  return {
1620
1611
  newValue,
1621
- cursorOffset: newValue.length
1612
+ cursorOffset: before.length
1622
1613
  };
1623
1614
  }
1624
1615
  const before = value.slice(0, selectionStart);
1625
- const after = value.slice(selectionEnd);
1626
- const newValue = before + data + after;
1616
+ const newValue = before + after;
1627
1617
  return {
1628
1618
  newValue,
1629
- cursorOffset: selectionStart + data.length
1619
+ cursorOffset: selectionStart
1630
1620
  };
1631
1621
  };
1632
- const getNewValueDeleteContentBackward = (value, selectionStart, selectionEnd, data) => {
1633
- const after = value.slice(selectionEnd);
1622
+
1623
+ const getNewValueDeleteContentForward = (value, selectionStart, selectionEnd, data) => {
1624
+ const before = value.slice(0, selectionStart);
1634
1625
  if (selectionStart === selectionEnd) {
1635
- const before = value.slice(0, selectionStart - 1);
1626
+ const after = value.slice(selectionEnd + 1);
1636
1627
  const newValue = before + after;
1637
1628
  return {
1638
1629
  newValue,
1639
- cursorOffset: before.length
1630
+ cursorOffset: selectionStart
1640
1631
  };
1641
1632
  }
1642
- const before = value.slice(0, selectionStart);
1633
+ const after = value.slice(selectionEnd);
1643
1634
  const newValue = before + after;
1644
1635
  return {
1645
1636
  newValue,
1646
1637
  cursorOffset: selectionStart
1647
1638
  };
1648
1639
  };
1640
+
1641
+ const RE_ALPHA_NUMERIC = /[a-z\d]/i;
1642
+ const isAlphaNumeric = character => {
1643
+ return RE_ALPHA_NUMERIC.test(character);
1644
+ };
1645
+
1649
1646
  const getNewValueDeleteWordBackward = (value, selectionStart, selectionEnd, data) => {
1650
1647
  const after = value.slice(selectionEnd);
1651
1648
  if (selectionStart === selectionEnd) {
@@ -1667,14 +1664,19 @@ const getNewValueDeleteWordBackward = (value, selectionStart, selectionEnd, data
1667
1664
  cursorOffset: selectionStart
1668
1665
  };
1669
1666
  };
1670
- const getNewValueDeleteContentForward = (value, selectionStart, selectionEnd, data) => {
1667
+
1668
+ const getNewValueDeleteWordForward = (value, selectionStart, selectionEnd, data) => {
1671
1669
  const before = value.slice(0, selectionStart);
1672
1670
  if (selectionStart === selectionEnd) {
1673
- const after = value.slice(selectionEnd + 1);
1671
+ let startIndex = Math.min(selectionStart + 1, value.length - 1);
1672
+ while (startIndex < value.length && isAlphaNumeric(value[startIndex])) {
1673
+ startIndex++;
1674
+ }
1675
+ const after = value.slice(startIndex);
1674
1676
  const newValue = before + after;
1675
1677
  return {
1676
1678
  newValue,
1677
- cursorOffset: selectionStart
1679
+ cursorOffset: before.length
1678
1680
  };
1679
1681
  }
1680
1682
  const after = value.slice(selectionEnd);
@@ -1684,36 +1686,44 @@ const getNewValueDeleteContentForward = (value, selectionStart, selectionEnd, da
1684
1686
  cursorOffset: selectionStart
1685
1687
  };
1686
1688
  };
1687
- const getNewValueDeleteWordForward = (value, selectionStart, selectionEnd, data) => {
1688
- const before = value.slice(0, selectionStart);
1689
- if (selectionStart === selectionEnd) {
1690
- let startIndex = Math.min(selectionStart + 1, value.length - 1);
1691
- while (startIndex < value.length && isAlphaNumeric(value[startIndex])) {
1692
- startIndex++;
1693
- }
1694
- const after = value.slice(startIndex);
1695
- const newValue = before + after;
1689
+
1690
+ const getNewValueInsertText = (value, selectionStart, selectionEnd, data) => {
1691
+ if (selectionStart === value.length) {
1692
+ const newValue = value + data;
1696
1693
  return {
1697
1694
  newValue,
1698
- cursorOffset: before.length
1695
+ cursorOffset: newValue.length
1699
1696
  };
1700
1697
  }
1698
+ const before = value.slice(0, selectionStart);
1701
1699
  const after = value.slice(selectionEnd);
1702
- const newValue = before + after;
1700
+ const newValue = before + data + after;
1703
1701
  return {
1704
1702
  newValue,
1705
- cursorOffset: selectionStart
1703
+ cursorOffset: selectionStart + data.length
1706
1704
  };
1707
1705
  };
1706
+
1708
1707
  const getNewValueInsertCompositionText = (value, selectionStart, selectionEnd, data) => {
1709
1708
  return getNewValueInsertText(value, selectionStart, selectionEnd, data);
1710
1709
  };
1710
+
1711
1711
  const getNewValueInsertLineBreak = (value, selectionStart, selectionEnd, data) => {
1712
1712
  return {
1713
1713
  newValue: value,
1714
1714
  cursorOffset: selectionEnd
1715
1715
  };
1716
1716
  };
1717
+
1718
+ const InsertText = 'insertText';
1719
+ const DeleteContentBackward = 'deleteContentBackward';
1720
+ const DeleteContentForward = 'deleteContentForward';
1721
+ const DeleteWordForward = 'deleteWordForward';
1722
+ const DeleteWordBackward = 'deleteWordBackward';
1723
+ const InsertLineBreak = 'insertLineBreak';
1724
+ const InsertCompositionText = 'insertCompositionText';
1725
+ const InsertFromPaste = 'insertFromPaste';
1726
+
1717
1727
  const getNewValueFunction = inputType => {
1718
1728
  switch (inputType) {
1719
1729
  case InsertFromPaste:
@@ -2035,6 +2045,9 @@ const selectIndex = async (state, index, button = /* left */0) => {
2035
2045
  } = state;
2036
2046
  const actualIndex = index + minLineY;
2037
2047
  const pick = getPick(items, actualIndex);
2048
+ if (!pick) {
2049
+ return state;
2050
+ }
2038
2051
  // @ts-ignore
2039
2052
  const selectPickResult = await provider.selectPick(pick, actualIndex, button);
2040
2053
  object(selectPickResult);
@@ -2144,10 +2157,13 @@ const add = menuEntries => {
2144
2157
  state$9.menuEntries = [...state$9.menuEntries, ...menuEntries];
2145
2158
  };
2146
2159
 
2147
- const getVisible = (provider, items, minLineY, maxLineY, focusedIndex, icons) => {
2148
- const setSize = items.length;
2160
+ const getVisible$1 = (provider, items, minLineY, maxLineY, icons) => {
2149
2161
  const range = items.slice(minLineY, maxLineY);
2150
- const protoVisibleItems = provider.getVisibleItems(range, minLineY, maxLineY, focusedIndex, setSize, icons);
2162
+ const protoVisibleItems = provider.getVisibleItems(range, icons);
2163
+ return protoVisibleItems;
2164
+ };
2165
+
2166
+ const getVisible = (setSize, protoVisibleItems, minLineY, focusedIndex) => {
2151
2167
  const visibleItems = protoVisibleItems.map((visibleItem, i) => {
2152
2168
  return {
2153
2169
  ...visibleItem,
@@ -2160,7 +2176,8 @@ const getVisible = (provider, items, minLineY, maxLineY, focusedIndex, icons) =>
2160
2176
  };
2161
2177
 
2162
2178
  const createQuickPickViewModel = (oldState, newState) => {
2163
- const visibleItems = getVisible(newState.provider, newState.items, newState.minLineY, newState.maxLineY, newState.focusedIndex, newState.icons);
2179
+ const protoVisibleItems = getVisible$1(newState.provider, newState.items, newState.minLineY, newState.maxLineY, newState.icons);
2180
+ const visibleItems = getVisible(newState.items.length, protoVisibleItems, newState.minLineY, newState.focusedIndex);
2164
2181
  const oldFocusedIndex = oldState.focusedIndex - oldState.minLineY;
2165
2182
  const newFocusedIndex = newState.focusedIndex - newState.minLineY;
2166
2183
  const maxLineY = Math.min(newState.maxLineY, newState.items.length);
@@ -2561,10 +2578,6 @@ const commandMap = {
2561
2578
  'QuickPick.loadEntries2': get$1
2562
2579
  };
2563
2580
 
2564
- const getColorThemeNames = async () => {
2565
- return invoke$1(/* Ajax.getJson */'ColorTheme.getColorThemeNames');
2566
- };
2567
-
2568
2581
  const getPickDescription$c = value => {
2569
2582
  return '';
2570
2583
  };
@@ -2574,7 +2587,7 @@ const getPickIcon$d = pick => {
2574
2587
  const getPickLabel$d = pick => {
2575
2588
  return pick;
2576
2589
  };
2577
- const getVisibleItems$f = (picks, minLineY, maxLineY, focusedIndex, setSize, icons) => {
2590
+ const getVisibleItems$f = (picks, icons) => {
2578
2591
  const visibleItems = picks.map((item, index) => {
2579
2592
  const pick = item.pick;
2580
2593
  return {
@@ -2588,29 +2601,37 @@ const getVisibleItems$f = (picks, minLineY, maxLineY, focusedIndex, setSize, ico
2588
2601
  return visibleItems;
2589
2602
  };
2590
2603
 
2591
- const setColorTheme = id => {
2592
- return invoke$1(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
2593
- };
2594
- const getPlaceholder$7 = () => {
2595
- return selectColorTheme();
2596
- };
2597
- const getLabel$4 = () => {
2598
- return selectColorTheme();
2604
+ const getColorThemeNames = async () => {
2605
+ return invoke$1(/* Ajax.getJson */'ColorTheme.getColorThemeNames');
2599
2606
  };
2607
+
2600
2608
  const getPicks$7 = async searchValue => {
2601
2609
  const colorThemeNames = await getColorThemeNames();
2602
2610
  return colorThemeNames;
2603
2611
  };
2604
- const getVisibleItems$e = getVisibleItems$f;
2612
+
2613
+ const setColorTheme = id => {
2614
+ return invoke$1(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
2615
+ };
2616
+
2605
2617
  const selectPick$7 = async pick => {
2606
2618
  await setColorTheme(/* colorThemeId */pick);
2607
2619
  return {
2608
2620
  command: Hide
2609
2621
  };
2610
2622
  };
2623
+
2611
2624
  const focusPick = async pick => {
2612
2625
  await setColorTheme(/* colorThemeId */pick);
2613
2626
  };
2627
+
2628
+ const getPlaceholder$7 = () => {
2629
+ return selectColorTheme();
2630
+ };
2631
+ const getLabel$4 = () => {
2632
+ return selectColorTheme();
2633
+ };
2634
+ const getVisibleItems$e = getVisibleItems$f;
2614
2635
  const getFilterValue$7 = value => {
2615
2636
  return value;
2616
2637
  };
@@ -2657,37 +2678,16 @@ const QuickPickEntriesColorTheme = {
2657
2678
  isPrepared: isPrepared$7,
2658
2679
  name: name$7,
2659
2680
  selectPick: selectPick$7,
2660
- setColorTheme,
2661
2681
  state: state$8
2662
2682
  };
2663
2683
 
2664
- const handleError = async (error, notify = true, prefix = '') => {
2665
- console.error(error);
2666
- };
2667
- const showErrorDialog = async error => {
2668
- const code = error.code;
2669
- const message = error.message;
2670
- const stack = error.stack;
2671
- const name = error.name;
2672
- const errorInfo = {
2673
- code,
2674
- message,
2675
- stack,
2676
- name
2677
- };
2678
- await invoke$1('ErrorHandling.showErrorDialog', errorInfo);
2679
- };
2680
- const warn = (...args) => {
2681
- console.warn(...args);
2682
- };
2683
-
2684
2684
  const getPickIcon$b = () => {
2685
2685
  return '';
2686
2686
  };
2687
2687
  const getPickLabel$b = pick => {
2688
2688
  return pick.label;
2689
2689
  };
2690
- const getVisibleItems$d = (picks, minLineY, maxLineY, focusedIndex, setSize, icons) => {
2690
+ const getVisibleItems$d = (picks, icons) => {
2691
2691
  const visibleItems = picks.map((item, index) => {
2692
2692
  const pick = item;
2693
2693
  return {
@@ -2701,24 +2701,24 @@ const getVisibleItems$d = (picks, minLineY, maxLineY, focusedIndex, setSize, ico
2701
2701
  return visibleItems;
2702
2702
  };
2703
2703
 
2704
- const name$6 = 'command';
2705
- const state$7 = {};
2706
- const isPrepared$6 = () => {
2707
- return false;
2708
- };
2709
- const getPickDescription$a = () => {
2710
- return '';
2711
- };
2712
- const getPlaceholder$6 = () => {
2713
- return typeNameofCommandToRun();
2714
- };
2715
- const getLabel$3 = () => {
2716
- return '';
2704
+ const handleError = async (error, notify = true, prefix = '') => {
2705
+ console.error(error);
2717
2706
  };
2718
- const getNoResults$6 = () => {
2719
- return {
2720
- label: noMatchingResults()
2707
+ const showErrorDialog = async error => {
2708
+ const code = error.code;
2709
+ const message = error.message;
2710
+ const stack = error.stack;
2711
+ const name = error.name;
2712
+ const errorInfo = {
2713
+ code,
2714
+ message,
2715
+ stack,
2716
+ name
2721
2717
  };
2718
+ await invoke$1('ErrorHandling.showErrorDialog', errorInfo);
2719
+ };
2720
+ const warn = (...args) => {
2721
+ console.warn(...args);
2722
2722
  };
2723
2723
 
2724
2724
  // TODO combine Ajax with cache (specify strategy: cacheFirst, networkFirst)
@@ -2753,16 +2753,13 @@ const getExtensionPicks = async () => {
2753
2753
  return [];
2754
2754
  }
2755
2755
  };
2756
-
2757
- // TODO send strings to renderer process only once for next occurrence send uint16array of ids of strings
2758
-
2759
2756
  const getPicks$6 = async () => {
2760
2757
  const builtinPicks = await getBuiltinPicks();
2761
2758
  const extensionPicks = await getExtensionPicks();
2762
2759
  const allPicks = [...builtinPicks, ...extensionPicks];
2763
2760
  return allPicks;
2764
2761
  };
2765
- const getVisibleItems$c = getVisibleItems$d;
2762
+
2766
2763
  const shouldHide = item => {
2767
2764
  if (item.id === 'Viewlet.openWidget' && item.args[0] === 'QuickPick') {
2768
2765
  return false;
@@ -2800,6 +2797,27 @@ const selectPick$6 = async item => {
2800
2797
  }
2801
2798
  return selectPickBuiltin(item);
2802
2799
  };
2800
+
2801
+ const name$6 = 'command';
2802
+ const state$7 = {};
2803
+ const isPrepared$6 = () => {
2804
+ return false;
2805
+ };
2806
+ const getPickDescription$a = () => {
2807
+ return '';
2808
+ };
2809
+ const getPlaceholder$6 = () => {
2810
+ return typeNameofCommandToRun();
2811
+ };
2812
+ const getLabel$3 = () => {
2813
+ return '';
2814
+ };
2815
+ const getNoResults$6 = () => {
2816
+ return {
2817
+ label: noMatchingResults()
2818
+ };
2819
+ };
2820
+ const getVisibleItems$c = getVisibleItems$d;
2803
2821
  const getFilterValue$6 = value => {
2804
2822
  return value.trim();
2805
2823
  };
@@ -2861,8 +2879,8 @@ const convertIcon$1 = icon => {
2861
2879
  const getPickIcon$9 = pick => {
2862
2880
  return convertIcon$1(pick.icon);
2863
2881
  };
2864
- const getVisibleItems$b = (picks, minLineY, maxLineY, focusedIndex, setSize, icons) => {
2865
- const visibleItems = picks.slice(minLineY, maxLineY + 1).map((pick, index) => ({
2882
+ const getVisibleItems$b = (picks, icons) => {
2883
+ const visibleItems = picks.map((pick, index) => ({
2866
2884
  description: getPickDescription$9(pick),
2867
2885
  fileIcon: '',
2868
2886
  icon: getPickIcon$9(pick),
@@ -2970,7 +2988,7 @@ const getProtocol = uri => {
2970
2988
  return '';
2971
2989
  };
2972
2990
 
2973
- const getVisibleItems$9 = (files, minLineY, maxLineY, focusedIndex, setSize, icons) => {
2991
+ const getVisibleItems$9 = (files, icons) => {
2974
2992
  const visibleItems = files.map((item, i) => {
2975
2993
  const pick = item.pick;
2976
2994
  const label = getPickLabel$7(pick);
@@ -3009,10 +3027,6 @@ const getWorkspacePath = async () => {
3009
3027
  return invoke$1('Workspace.getPath');
3010
3028
  };
3011
3029
 
3012
- const openUri = async uri => {
3013
- await invoke$1(/* Main.openUri */'Main.openUri', /* uri */uri);
3014
- };
3015
-
3016
3030
  const state$5 = Object.create(null);
3017
3031
  const register = modules => {
3018
3032
  Object.assign(state$5, modules);
@@ -3029,25 +3043,12 @@ const searchFile$5 = async (path, value, prepare, assetDir) => {
3029
3043
  return result;
3030
3044
  };
3031
3045
 
3032
- const state$4 = {};
3033
3046
  const searchFile$4 = async (path, value) => {
3034
3047
  const prepare = true;
3035
3048
  // @ts-ignore
3036
3049
  const files = await searchFile$5(/* path */path, /* searchTerm */value, prepare);
3037
3050
  return files;
3038
3051
  };
3039
- const name$4 = 'file';
3040
- const getPlaceholder$4 = () => {
3041
- return '';
3042
- };
3043
- const getLabel$1 = () => {
3044
- return files();
3045
- };
3046
- const getNoResults$4 = () => {
3047
- return {
3048
- label: noMatchingResults()
3049
- };
3050
- };
3051
3052
  const getPicks$4 = async searchValue => {
3052
3053
  // TODO cache workspace path
3053
3054
  const workspace = await getWorkspacePath();
@@ -3057,6 +3058,11 @@ const getPicks$4 = async searchValue => {
3057
3058
  const files = await searchFile$4(workspace, searchValue);
3058
3059
  return files;
3059
3060
  };
3061
+
3062
+ const openUri = async uri => {
3063
+ await invoke$1(/* Main.openUri */'Main.openUri', /* uri */uri);
3064
+ };
3065
+
3060
3066
  const selectPick$4 = async pick => {
3061
3067
  if (typeof pick === 'object') {
3062
3068
  pick = pick.pick;
@@ -3068,6 +3074,20 @@ const selectPick$4 = async pick => {
3068
3074
  command: Hide
3069
3075
  };
3070
3076
  };
3077
+
3078
+ const state$4 = {};
3079
+ const name$4 = 'file';
3080
+ const getPlaceholder$4 = () => {
3081
+ return '';
3082
+ };
3083
+ const getLabel$1 = () => {
3084
+ return files();
3085
+ };
3086
+ const getNoResults$4 = () => {
3087
+ return {
3088
+ label: noMatchingResults()
3089
+ };
3090
+ };
3071
3091
  const getFilterValue$4 = value => {
3072
3092
  return value;
3073
3093
  };
@@ -3148,7 +3168,7 @@ const getPickIcon$5 = () => {
3148
3168
  const getPickLabel$5 = pick => {
3149
3169
  return pathBaseName(pick);
3150
3170
  };
3151
- const getVisibleItems$7 = (picks, minLineY, maxLineY, focusedIndex, setSize, icons) => {
3171
+ const getVisibleItems$7 = (picks, icons) => {
3152
3172
  const visibleItems = picks.map((item, index) => {
3153
3173
  const pick = item.pick;
3154
3174
  const fileIcon = icons[index];
@@ -3157,7 +3177,7 @@ const getVisibleItems$7 = (picks, minLineY, maxLineY, focusedIndex, setSize, ico
3157
3177
  fileIcon,
3158
3178
  icon: getPickIcon$5(),
3159
3179
  label: getPickLabel$5(pick),
3160
- matches: pick.matches
3180
+ matches: pick.matches || []
3161
3181
  };
3162
3182
  });
3163
3183
  return visibleItems;
@@ -3167,6 +3187,15 @@ const openWorkspaceFolder = uri => {
3167
3187
  return invoke$1(/* Workspace.setPath */'Workspace.setPath', /* path */uri);
3168
3188
  };
3169
3189
 
3190
+ // TODO selectPick should be independent of show/hide
3191
+ const selectPick$3 = async pick => {
3192
+ const path = pick;
3193
+ await openWorkspaceFolder(path);
3194
+ return {
3195
+ command: Hide
3196
+ };
3197
+ };
3198
+
3170
3199
  const getPlaceholder$3 = () => {
3171
3200
  return selectToOpen();
3172
3201
  };
@@ -3189,15 +3218,6 @@ const getPicks$3 = async () => {
3189
3218
  return recentlyOpened;
3190
3219
  };
3191
3220
  const getVisibleItems$6 = getVisibleItems$7;
3192
-
3193
- // TODO selectPick should be independent of show/hide
3194
- const selectPick$3 = async pick => {
3195
- const path = pick;
3196
- await openWorkspaceFolder(path);
3197
- return {
3198
- command: Hide
3199
- };
3200
- };
3201
3221
  const getFilterValue$3 = value => {
3202
3222
  return pathBaseName(value);
3203
3223
  };
@@ -3252,10 +3272,16 @@ const QuickPickEntriesOpenRecent = {
3252
3272
  state: state$3
3253
3273
  };
3254
3274
 
3255
- const getVisibleItems$5 = (picks, minLineY, maxLineY, focusedIndex, setSize) => {
3275
+ const getVisibleItems$5 = picks => {
3256
3276
  return [];
3257
3277
  };
3258
3278
 
3279
+ const selectPick$2 = async item => {
3280
+ return {
3281
+ command: Hide
3282
+ };
3283
+ };
3284
+
3259
3285
  const name$2 = 'symbol';
3260
3286
  const getPlaceholder$2 = () => {
3261
3287
  return '';
@@ -3270,11 +3296,6 @@ const getPicks$2 = async () => {
3270
3296
  return picks;
3271
3297
  };
3272
3298
  const getVisibleItems$4 = getVisibleItems$5;
3273
- const selectPick$2 = async item => {
3274
- return {
3275
- command: Hide
3276
- };
3277
- };
3278
3299
  const getFilterValue$2 = value => {
3279
3300
  return value;
3280
3301
  };
@@ -3321,7 +3342,7 @@ const getPickIcon$2 = value => {
3321
3342
  const getPickLabel$2 = value => {
3322
3343
  return value;
3323
3344
  };
3324
- const getVisibleItems$3 = (picks, minLineY, maxLineY, focusedIndex, setSize) => {
3345
+ const getVisibleItems$3 = picks => {
3325
3346
  const visibleItems = picks.map((pick, index) => ({
3326
3347
  description: getPickDescription$2(),
3327
3348
  fileIcon: '',
@@ -3332,6 +3353,13 @@ const getVisibleItems$3 = (picks, minLineY, maxLineY, focusedIndex, setSize) =>
3332
3353
  return visibleItems;
3333
3354
  };
3334
3355
 
3356
+ const selectPick$1 = async item => {
3357
+ // Command.execute(/* openView */ 549, /* viewName */ item.label)
3358
+ // return {
3359
+ // command: QuickPickReturnValue.Hide,
3360
+ // }
3361
+ };
3362
+
3335
3363
  // TODO probably not needed
3336
3364
 
3337
3365
  const getPlaceholder$1 = () => {
@@ -3346,12 +3374,6 @@ const getPicks$1 = async () => {
3346
3374
  // return picks
3347
3375
  return [];
3348
3376
  };
3349
- const selectPick$1 = async item => {
3350
- // Command.execute(/* openView */ 549, /* viewName */ item.label)
3351
- // return {
3352
- // command: QuickPickReturnValue.Hide,
3353
- // }
3354
- };
3355
3377
  const getFilterValue$1 = value => {
3356
3378
  return value;
3357
3379
  };
@@ -3395,7 +3417,7 @@ const QuickPickEntriesView = {
3395
3417
  state: state$1
3396
3418
  };
3397
3419
 
3398
- const getVisibleItems$1 = (picks, minLineY, maxLineY, focusedIndex, setSize) => {
3420
+ const getVisibleItems$1 = picks => {
3399
3421
  const visibleItems = picks.map((pick, index) => ({
3400
3422
  description: '',
3401
3423
  fileIcon: '',
@@ -3406,6 +3428,12 @@ const getVisibleItems$1 = (picks, minLineY, maxLineY, focusedIndex, setSize) =>
3406
3428
  return visibleItems;
3407
3429
  };
3408
3430
 
3431
+ const selectPick = async item => {
3432
+ return {
3433
+ command: Hide
3434
+ };
3435
+ };
3436
+
3409
3437
  const name = 'workspace-symbol';
3410
3438
  const getPlaceholder = () => {
3411
3439
  return '';
@@ -3435,11 +3463,6 @@ const getPicks = async () => {
3435
3463
  const picks = [];
3436
3464
  return picks;
3437
3465
  };
3438
- const selectPick = async item => {
3439
- return {
3440
- command: Hide
3441
- };
3442
- };
3443
3466
  const getFilterValue = value => {
3444
3467
  return value;
3445
3468
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "text-search"