@lvce-editor/file-search-worker 6.1.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # file search worker
1
+ # File Search Worker
2
2
 
3
3
  Web Worker for the file search functionality in LVCE Editor.
4
+
5
+ ## Contributing
6
+
7
+ ```sh
8
+ git clone git@github.com:lvce-editor/file-search-worker-worker.git &&
9
+ cd file-search-worker-worker &&
10
+ npm ci &&
11
+ npm test
12
+ ```
@@ -2286,7 +2286,8 @@ const state$2 = {
2286
2286
  const getAll = async () => {
2287
2287
  try {
2288
2288
  // @ts-ignore
2289
- return await invoke$1('Layout.getAllQuickPickMenuEntries');
2289
+ const entries = await invoke$1('Layout.getAllQuickPickMenuEntries');
2290
+ return entries || [];
2290
2291
  } catch {
2291
2292
  // ignore
2292
2293
  }
@@ -2650,18 +2651,20 @@ const KeepOpen = '';
2650
2651
 
2651
2652
  const selectPick$9 = async pick => {
2652
2653
  const id = pick.label;
2653
- await setColorTheme(/* colorThemeId */id);
2654
+ await setColorTheme(id);
2654
2655
  return {
2655
2656
  command: Hide
2656
2657
  };
2657
2658
  };
2658
2659
 
2660
+ const hideIds = ['AutoUpdater.checkForUpdates'];
2659
2661
  const shouldHide = item => {
2660
- if (item.id === 'Viewlet.openWidget' && item.args[0] === 'QuickPick') {
2662
+ if (hideIds.includes(item.id) || item.id === 'Viewlet.openWidget' && item.args[0] === 'QuickPick') {
2661
2663
  return false;
2662
2664
  }
2663
2665
  return true;
2664
2666
  };
2667
+
2665
2668
  const selectPickBuiltin = async item => {
2666
2669
  const args = item.args || [];
2667
2670
  // TODO ids should be all numbers for efficiency -> also directly can call command
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "6.1.0",
3
+ "version": "6.3.0",
4
4
  "keywords": [
5
5
  "text-search"
6
6
  ],