@lvce-editor/text-search-worker 3.22.0 → 3.23.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/dist/textSearchWorkerMain.js +20 -5
- package/package.json +1 -1
|
@@ -2509,21 +2509,25 @@ const getProtocol$1 = uri => {
|
|
|
2509
2509
|
return '';
|
|
2510
2510
|
};
|
|
2511
2511
|
|
|
2512
|
-
const textSearch$
|
|
2512
|
+
const textSearch$6 = async (scheme, root, query) => {
|
|
2513
2513
|
string(scheme);
|
|
2514
2514
|
string(query);
|
|
2515
2515
|
const result = await invoke$2('ExtensionHostTextSearch.executeTextSearchProvider', scheme, query);
|
|
2516
2516
|
return result;
|
|
2517
2517
|
};
|
|
2518
2518
|
|
|
2519
|
-
const textSearch$
|
|
2519
|
+
const textSearch$5 = async (scheme, root, query, options, assetDir) => {
|
|
2520
2520
|
return invoke$2('ExtensionHostTextSearch.textSearchFetch', scheme, root, query, options, assetDir);
|
|
2521
2521
|
};
|
|
2522
2522
|
|
|
2523
|
-
const textSearch$
|
|
2523
|
+
const textSearch$4 = async (scheme, root, query) => {
|
|
2524
2524
|
return invoke$2('ExtensionHostTextSearch.textSearchHtml', scheme, root, query);
|
|
2525
2525
|
};
|
|
2526
2526
|
|
|
2527
|
+
const textSearch$3 = async (scheme, root, query, options, assetDir) => {
|
|
2528
|
+
return invoke$2('ExtensionHostTextSearch.textSearchMemory', scheme, root, query, options, assetDir);
|
|
2529
|
+
};
|
|
2530
|
+
|
|
2527
2531
|
const getRipGrepArgs = ({
|
|
2528
2532
|
threads,
|
|
2529
2533
|
isCaseSensitive,
|
|
@@ -2688,11 +2692,13 @@ const getProvider = scheme => {
|
|
|
2688
2692
|
case 'web':
|
|
2689
2693
|
return textSearch$1;
|
|
2690
2694
|
case 'fetch':
|
|
2691
|
-
return textSearch$
|
|
2695
|
+
return textSearch$5;
|
|
2692
2696
|
case 'html':
|
|
2697
|
+
return textSearch$4;
|
|
2698
|
+
case 'memfs':
|
|
2693
2699
|
return textSearch$3;
|
|
2694
2700
|
default:
|
|
2695
|
-
return textSearch$
|
|
2701
|
+
return textSearch$6;
|
|
2696
2702
|
}
|
|
2697
2703
|
};
|
|
2698
2704
|
|
|
@@ -2795,6 +2801,10 @@ const handleExcludeInput = (state, value, inputSource = Script) => {
|
|
|
2795
2801
|
});
|
|
2796
2802
|
};
|
|
2797
2803
|
|
|
2804
|
+
const noop = state => {
|
|
2805
|
+
return state;
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2798
2808
|
const getBulkReplacementEdits = (workspacePath, matches) => {
|
|
2799
2809
|
string(workspacePath);
|
|
2800
2810
|
array(matches);
|
|
@@ -2928,6 +2938,11 @@ const getClickHandler = name => {
|
|
|
2928
2938
|
case UseExcludeSettings:
|
|
2929
2939
|
// @ts-ignore
|
|
2930
2940
|
return toggleUseIgnoreFiles;
|
|
2941
|
+
case SearchValue:
|
|
2942
|
+
case ReplaceValue:
|
|
2943
|
+
case FilesToExclude:
|
|
2944
|
+
case FilesToInclude:
|
|
2945
|
+
return noop;
|
|
2931
2946
|
default:
|
|
2932
2947
|
throw new Error(`Click handler not found: ${name}`);
|
|
2933
2948
|
}
|