@lvce-editor/file-search-worker 5.11.0 → 5.13.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.
@@ -1822,6 +1822,8 @@ const toProtoVisibleItem$1 = item => {
1822
1822
  };
1823
1823
  // @ts-ignore
1824
1824
  pick.id = item.id;
1825
+ // @ts-ignore
1826
+ pick.args = item.args;
1825
1827
  return pick;
1826
1828
  };
1827
1829
  const getPicks$b = async () => {
@@ -2270,7 +2272,10 @@ const getPicks = (id, searchValue) => {
2270
2272
  return fn(searchValue);
2271
2273
  };
2272
2274
 
2273
- const getQuickPickSubProviderId = prefix => {
2275
+ const getQuickPickSubProviderId = (id, prefix) => {
2276
+ if (id !== EveryThing$1) {
2277
+ return id;
2278
+ }
2274
2279
  switch (prefix) {
2275
2280
  case Command:
2276
2281
  return Commands$1;
@@ -2304,7 +2309,7 @@ const setValue = async (state, newValue) => {
2304
2309
  return state;
2305
2310
  }
2306
2311
  const prefix = getQuickPickPrefix(newValue);
2307
- const subId = getQuickPickSubProviderId(prefix);
2312
+ const subId = getQuickPickSubProviderId(providerId, prefix);
2308
2313
  const newPicks = await getPicks(subId, newValue);
2309
2314
  const filterValue = getFilterValue(providerId, newValue);
2310
2315
  const items = filterQuickPickItems(newPicks, filterValue);
@@ -2386,7 +2391,8 @@ const selectIndex = async (state, index, button = /* left */0) => {
2386
2391
  const {
2387
2392
  minLineY,
2388
2393
  items,
2389
- value
2394
+ value,
2395
+ providerId
2390
2396
  } = state;
2391
2397
  const actualIndex = index + minLineY;
2392
2398
  const pick = getPick(items, actualIndex);
@@ -2394,7 +2400,7 @@ const selectIndex = async (state, index, button = /* left */0) => {
2394
2400
  return state;
2395
2401
  }
2396
2402
  const prefix = getQuickPickPrefix(value);
2397
- const subId = getQuickPickSubProviderId(prefix);
2403
+ const subId = getQuickPickSubProviderId(providerId, prefix);
2398
2404
  const fn = getSelect(subId);
2399
2405
  const selectPickResult = await fn(pick);
2400
2406
  object(selectPickResult);
@@ -2508,7 +2514,7 @@ const loadContent = async state => {
2508
2514
  const id = getQuickPickProviderId(uri);
2509
2515
  const value = getDefaultValue(id);
2510
2516
  const prefix = getQuickPickPrefix(value);
2511
- const subId = getQuickPickSubProviderId(prefix);
2517
+ const subId = getQuickPickSubProviderId(id, prefix);
2512
2518
  setArgs(subId, args);
2513
2519
  const newPicks = await getPicks(subId, value);
2514
2520
  array(newPicks);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "5.11.0",
3
+ "version": "5.13.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "text-search"