@lvce-editor/file-search-worker 6.0.0 → 6.1.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.
@@ -2283,7 +2283,13 @@ const warn = (...args) => {
2283
2283
  const state$2 = {
2284
2284
  menuEntries: []
2285
2285
  };
2286
- const getAll = () => {
2286
+ const getAll = async () => {
2287
+ try {
2288
+ // @ts-ignore
2289
+ return await invoke$1('Layout.getAllQuickPickMenuEntries');
2290
+ } catch {
2291
+ // ignore
2292
+ }
2287
2293
  return state$2.menuEntries;
2288
2294
  };
2289
2295
  const add = menuEntries => {
@@ -2292,7 +2298,7 @@ const add = menuEntries => {
2292
2298
 
2293
2299
  // TODO combine Ajax with cache (specify strategy: cacheFirst, networkFirst)
2294
2300
  const getBuiltinPicks = async () => {
2295
- const builtinPicks = getAll();
2301
+ const builtinPicks = await getAll();
2296
2302
  return builtinPicks;
2297
2303
  };
2298
2304
  const prefixIdWithExt = item => {
@@ -2310,6 +2316,7 @@ const prefixIdWithExt = item => {
2310
2316
  };
2311
2317
  const getExtensionPicks = async () => {
2312
2318
  try {
2319
+ // TODO ask extension host worker directly
2313
2320
  // TODO don't call this every time
2314
2321
  const extensionPicks = await invoke$1('ExtensionHost.getCommands');
2315
2322
  if (!extensionPicks) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "keywords": [
5
5
  "text-search"
6
6
  ],