@lvce-editor/search-process 15.8.1 → 15.10.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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1937,7 +1937,7 @@ const textSearchIncremental = async ({
|
|
|
1937
1937
|
const charsBefore = 26;
|
|
1938
1938
|
const charsAfter = 50;
|
|
1939
1939
|
const childProcess = spawn(ripGrepArgs, {
|
|
1940
|
-
cwd: searchDir
|
|
1940
|
+
cwd: ensurePath(searchDir)
|
|
1941
1941
|
});
|
|
1942
1942
|
const pipeLinePromise = collectStdoutIncremental(id, childProcess.stdout, childProcess.kill, maxSearchResults, charsBefore, charsAfter);
|
|
1943
1943
|
const closePromise = waitForProcessToExit(childProcess);
|
|
@@ -2060,7 +2060,7 @@ const textSearchPull = async (rpc, {
|
|
|
2060
2060
|
uid
|
|
2061
2061
|
}) => {
|
|
2062
2062
|
const childProcess = spawn(ripGrepArgs, {
|
|
2063
|
-
cwd: searchDir
|
|
2063
|
+
cwd: ensurePath(searchDir)
|
|
2064
2064
|
});
|
|
2065
2065
|
const notifyResultsFound = () => {
|
|
2066
2066
|
// @ts-ignore
|