diff --git a/binary/build.js b/binary/build.js
index bf8ea3719..072461f06 100644
--- a/binary/build.js
+++ b/binary/build.js
@@ -57,7 +57,7 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) {
console.log(`Copying ${packageName} to ${toCopy}`);
// This is a way to install only one package without npm trying to install all the dependencies
// Create a temporary directory for installing the package
- const adjustedName = packageName.replace(/^@/, "").replace("/", "-");
+ const adjustedName = packageName.replace(/@/g, "").replace("/", "-");
const tempDir = path.join(
__dirname,
"tmp",
diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js
index 8169fcc05..d5a8b0c0d 100644
--- a/extensions/vscode/scripts/prepackage.js
+++ b/extensions/vscode/scripts/prepackage.js
@@ -299,7 +299,7 @@ const exe = os === "win32" ? ".exe" : "";
console.log(`Copying ${packageName} to ${toCopy}`);
// This is a way to install only one package without npm trying to install all the dependencies
// Create a temporary directory for installing the package
- const adjustedName = packageName.replace(/^@/, "").replace("/", "-");
+ const adjustedName = packageName.replace(/@/g, "").replace("/", "-");
const tempDir = `/tmp/continue-node_modules-${adjustedName}`;
const currentDir = process.cwd();
diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx
index 0c27a9e56..1bff287e8 100644
--- a/gui/src/components/mainInput/MentionList.tsx
+++ b/gui/src/components/mainInput/MentionList.tsx
@@ -239,7 +239,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
setSelectedIndex((prevIndex) => {
const newIndex = prevIndex - 1 >= 0 ? prevIndex - 1 : 0;
itemRefs.current[newIndex]?.scrollIntoView({
- behavior: "instant",
+ behavior: "instant" as ScrollBehavior,
block: "nearest",
});
return newIndex;
@@ -250,7 +250,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
setSelectedIndex((prevIndex) => {
const newIndex = prevIndex + 1 < totalItems ? prevIndex + 1 : prevIndex;
itemRefs.current[newIndex]?.scrollIntoView({
- behavior: "instant",
+ behavior: "instant" as ScrollBehavior,
block: "nearest",
});
return newIndex;
@@ -362,9 +362,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
>
)}
-
- {item.title}
-
+ {item.title}
{" "}