From 57daa01e1ba50024958fdfbd0369188db10c9c62 Mon Sep 17 00:00:00 2001 From: Lars Pagh Date: Sat, 17 Feb 2024 10:38:52 +0100 Subject: [PATCH] Amended path for ripgrep executable We have to preprend the 'out' folder in order to find the ripgrep executable in the distribution. Prepending 'out' during development is not necessary. We need a way to distinguish in 'ideProtocol'? --- extensions/vscode/src/ideProtocol.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/vscode/src/ideProtocol.ts b/extensions/vscode/src/ideProtocol.ts index e7855934a..1b291bbbd 100644 --- a/extensions/vscode/src/ideProtocol.ts +++ b/extensions/vscode/src/ideProtocol.ts @@ -156,13 +156,15 @@ class VsCodeIde implements IDE { const p = child_process.spawn( path.join( getExtensionUri().fsPath, + "out", "node_modules", "@vscode", "ripgrep", "bin", "rg" ), - ["-i", "-C", "2", `"${query}"`, "."], + ["-i", "-C", "2", "--", `${query}`, "."], //no regex + //["-i", "-C", "2", "-e", `${query}`, "."], //use regex { cwd: dir } ); let output = "";