@lvce-editor/text-search-worker 7.17.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.
@@ -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 results = await invoke$3('ExtensionHostTextSearch.executeTextSearchProvider', scheme, query);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "7.17.0",
3
+ "version": "7.18.0",
4
4
  "description": "Text Search Worker",
5
5
  "keywords": [
6
6
  "text-search"