@lvce-editor/text-search-worker 7.16.0 → 7.18.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 +12 -2
- package/package.json +1 -1
|
@@ -1563,10 +1563,20 @@ const commandMap = {
|
|
|
1563
1563
|
'TextSearch.searchIncremental': textSearchIncremental
|
|
1564
1564
|
};
|
|
1565
1565
|
|
|
1566
|
-
const textSearch$5 = async (scheme, root, query) => {
|
|
1566
|
+
const textSearch$5 = async (scheme, root, query, options) => {
|
|
1567
1567
|
string(scheme);
|
|
1568
1568
|
string(query);
|
|
1569
|
-
const
|
|
1569
|
+
const ripGrepArgs = getRipGrepArgs({
|
|
1570
|
+
isCaseSensitive: false,
|
|
1571
|
+
threads: 1,
|
|
1572
|
+
useRegularExpression: false,
|
|
1573
|
+
...options,
|
|
1574
|
+
searchString: query
|
|
1575
|
+
});
|
|
1576
|
+
const results = await invoke$3('ExtensionHostTextSearch.executeTextSearchProvider', scheme, query, root, ripGrepArgs);
|
|
1577
|
+
if (!Array.isArray(results)) {
|
|
1578
|
+
return results;
|
|
1579
|
+
}
|
|
1570
1580
|
return {
|
|
1571
1581
|
limitHit: false,
|
|
1572
1582
|
results
|