@lvce-editor/file-search-worker 5.12.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.
|
@@ -2272,7 +2272,10 @@ const getPicks = (id, searchValue) => {
|
|
|
2272
2272
|
return fn(searchValue);
|
|
2273
2273
|
};
|
|
2274
2274
|
|
|
2275
|
-
const getQuickPickSubProviderId = prefix => {
|
|
2275
|
+
const getQuickPickSubProviderId = (id, prefix) => {
|
|
2276
|
+
if (id !== EveryThing$1) {
|
|
2277
|
+
return id;
|
|
2278
|
+
}
|
|
2276
2279
|
switch (prefix) {
|
|
2277
2280
|
case Command:
|
|
2278
2281
|
return Commands$1;
|
|
@@ -2306,7 +2309,7 @@ const setValue = async (state, newValue) => {
|
|
|
2306
2309
|
return state;
|
|
2307
2310
|
}
|
|
2308
2311
|
const prefix = getQuickPickPrefix(newValue);
|
|
2309
|
-
const subId = getQuickPickSubProviderId(prefix);
|
|
2312
|
+
const subId = getQuickPickSubProviderId(providerId, prefix);
|
|
2310
2313
|
const newPicks = await getPicks(subId, newValue);
|
|
2311
2314
|
const filterValue = getFilterValue(providerId, newValue);
|
|
2312
2315
|
const items = filterQuickPickItems(newPicks, filterValue);
|
|
@@ -2388,7 +2391,8 @@ const selectIndex = async (state, index, button = /* left */0) => {
|
|
|
2388
2391
|
const {
|
|
2389
2392
|
minLineY,
|
|
2390
2393
|
items,
|
|
2391
|
-
value
|
|
2394
|
+
value,
|
|
2395
|
+
providerId
|
|
2392
2396
|
} = state;
|
|
2393
2397
|
const actualIndex = index + minLineY;
|
|
2394
2398
|
const pick = getPick(items, actualIndex);
|
|
@@ -2396,7 +2400,7 @@ const selectIndex = async (state, index, button = /* left */0) => {
|
|
|
2396
2400
|
return state;
|
|
2397
2401
|
}
|
|
2398
2402
|
const prefix = getQuickPickPrefix(value);
|
|
2399
|
-
const subId = getQuickPickSubProviderId(prefix);
|
|
2403
|
+
const subId = getQuickPickSubProviderId(providerId, prefix);
|
|
2400
2404
|
const fn = getSelect(subId);
|
|
2401
2405
|
const selectPickResult = await fn(pick);
|
|
2402
2406
|
object(selectPickResult);
|
|
@@ -2510,7 +2514,7 @@ const loadContent = async state => {
|
|
|
2510
2514
|
const id = getQuickPickProviderId(uri);
|
|
2511
2515
|
const value = getDefaultValue(id);
|
|
2512
2516
|
const prefix = getQuickPickPrefix(value);
|
|
2513
|
-
const subId = getQuickPickSubProviderId(prefix);
|
|
2517
|
+
const subId = getQuickPickSubProviderId(id, prefix);
|
|
2514
2518
|
setArgs(subId, args);
|
|
2515
2519
|
const newPicks = await getPicks(subId, value);
|
|
2516
2520
|
array(newPicks);
|