@lvce-editor/search-process 14.0.0 → 15.0.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/index.js +8 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1761,9 +1761,7 @@ const collectStdoutIncremental = async (id, stdout, kill, maxSearchResults, char
|
|
|
1761
1761
|
const results = Object.values(allSearchResults).flat();
|
|
1762
1762
|
return results.slice(minLineY, maxLineY);
|
|
1763
1763
|
},
|
|
1764
|
-
getResultCount()
|
|
1765
|
-
return numberOfResults;
|
|
1766
|
-
}
|
|
1764
|
+
getResultCount: () => numberOfResults
|
|
1767
1765
|
};
|
|
1768
1766
|
set$1(id, search);
|
|
1769
1767
|
stdout.setEncoding(Utf8);
|
|
@@ -1825,7 +1823,7 @@ const collectStdoutIncremental = async (id, stdout, kill, maxSearchResults, char
|
|
|
1825
1823
|
// TODO maybe split text search and file search into two processes,
|
|
1826
1824
|
// so that long file text search cannot block file search and
|
|
1827
1825
|
// text and file search would be more independent
|
|
1828
|
-
// only the logic for ripgrep path and
|
|
1826
|
+
// only the logic for ripgrep path and WebSocket / messageport handling
|
|
1829
1827
|
// would need to be the same
|
|
1830
1828
|
// @deprecated use TextSearch.searchPull instead
|
|
1831
1829
|
const textSearchIncremental = async ({
|
|
@@ -1877,14 +1875,12 @@ const collectStdoutPull = async (searchId, stdout, kill, maxSearchResults, chars
|
|
|
1877
1875
|
hasUnfetchedResults = false;
|
|
1878
1876
|
return newItems;
|
|
1879
1877
|
},
|
|
1880
|
-
getProgress() {
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
};
|
|
1887
|
-
}
|
|
1878
|
+
getProgress: () => ({
|
|
1879
|
+
done,
|
|
1880
|
+
limitHit,
|
|
1881
|
+
resultCount: numberOfResults,
|
|
1882
|
+
stats
|
|
1883
|
+
})
|
|
1888
1884
|
};
|
|
1889
1885
|
set(searchId, search);
|
|
1890
1886
|
stdout.setEncoding(Utf8);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/search-process",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Search Process",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lvce Editor",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"ws": "^8.21.0"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@lvce-editor/ripgrep": "^
|
|
26
|
+
"@lvce-editor/ripgrep": "^5.1.0"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=24"
|