Merge branch 'preview' of https://github.com/continuedev/continue into preview

This commit is contained in:
Nate Sesti 2024-02-21 14:02:12 -08:00
commit e3c52d136f
2 changed files with 5 additions and 3 deletions

View file

@ -137,7 +137,7 @@ export async function retrieveContextItemsFromEmbeddings(
if (extras.fullInput.trim() !== "") {
ftsResults = await ftsIndex.retrieve(
tags,
extras.fullInput.trim().split(" ").join(" OR "),
extras.fullInput.trim().split(" ").map(element => `"${element}"`).join(" OR "),
nRetrieve / 2,
filterDirectory,
undefined

View file

@ -165,12 +165,14 @@ async function getAddRemoveForTag(
case AddRemoveResultType.Remove:
await db.run(
`DELETE FROM tag_catalog WHERE
path IN (?) AND
cacheKey = ? AND
path = ? AND
dir = ? AND
branch = ? AND
artifactId = ?
`,
remove.map((r) => `'${r.path}'`).join(", "),
cacheKey,
path,
tag.directory,
tag.branch,
tag.artifactId