Merge branch 'fix-search-context-provider' of https://github.com/Elpaggio/continue into Elpaggio-fix-search-context-provider
This commit is contained in:
commit
e044fff467
3 changed files with 11 additions and 2 deletions
|
|
@ -317,7 +317,13 @@ if (args[2] === "--target") {
|
|||
});
|
||||
|
||||
// Copy node_modules for pre-built binaries
|
||||
const NODE_MODULES_TO_COPY = ["esbuild", "@esbuild", "@lancedb", "jsdom"];
|
||||
const NODE_MODULES_TO_COPY = [
|
||||
"esbuild",
|
||||
"@esbuild",
|
||||
"@lancedb",
|
||||
"@vscode",
|
||||
"jsdom",
|
||||
];
|
||||
fs.mkdirSync("out/node_modules", { recursive: true });
|
||||
|
||||
await Promise.all(
|
||||
|
|
|
|||
|
|
@ -240,13 +240,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 = "";
|
||||
|
|
|
|||
|
|
@ -301,6 +301,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
|
|||
} else {
|
||||
props.command({
|
||||
...querySubmenuItem,
|
||||
itemType: querySubmenuItem.type,
|
||||
query: queryInputRef.current.value,
|
||||
label: `${querySubmenuItem.label}: ${queryInputRef.current.value}`,
|
||||
itemType: querySubmenuItem.type,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue