Skip to content

Commit

Permalink
Merge branch 'Elpaggio-fix-search-context-provider' into preview
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Mar 17, 2024
2 parents 864c34e + e044fff commit 8460abb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion extensions/vscode/scripts/prepackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 3 additions & 1 deletion extensions/vscode/src/ideProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down
1 change: 1 addition & 0 deletions gui/src/components/mainInput/MentionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8460abb

Please sign in to comment.