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'?
This commit is contained in:
Lars Pagh 2024-02-17 10:38:52 +01:00
parent 06b9ae6a6b
commit 57daa01e1b

View file

@ -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 = "";