Skip to content

Commit 691b5b4

Browse files
committed
Revert this
1 parent 97202bd commit 691b5b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/search/file-search.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ export async function executeRipgrep({
1919
}): Promise<FileResult[]> {
2020
const rgPath = await getBinPath(vscode.env.appRoot)
2121

22+
if (!rgPath) {
23+
throw new Error(`ripgrep not found: ${rgPath}`)
24+
}
25+
2226
return new Promise((resolve, reject) => {
23-
const rgProcess = childProcess.spawn(rgPath || "rg", args)
27+
const rgProcess = childProcess.spawn(rgPath, args)
2428
const rl = readline.createInterface({ input: rgProcess.stdout, crlfDelay: Infinity })
2529
const fileResults: FileResult[] = []
2630
const dirSet = new Set<string>() // Track unique directory paths.

0 commit comments

Comments
 (0)