We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97202bd commit 691b5b4Copy full SHA for 691b5b4
src/services/search/file-search.ts
@@ -19,8 +19,12 @@ export async function executeRipgrep({
19
}): Promise<FileResult[]> {
20
const rgPath = await getBinPath(vscode.env.appRoot)
21
22
+ if (!rgPath) {
23
+ throw new Error(`ripgrep not found: ${rgPath}`)
24
+ }
25
+
26
return new Promise((resolve, reject) => {
- const rgProcess = childProcess.spawn(rgPath || "rg", args)
27
+ const rgProcess = childProcess.spawn(rgPath, args)
28
const rl = readline.createInterface({ input: rgProcess.stdout, crlfDelay: Infinity })
29
const fileResults: FileResult[] = []
30
const dirSet = new Set<string>() // Track unique directory paths.
0 commit comments