fix off by one error for codebase retrieval context items

This commit is contained in:
Dallin Romney 2025-02-12 17:16:16 -08:00
parent a4b6457ca7
commit 3c8b3ef599

View file

@ -119,7 +119,7 @@ export async function retrieveContextItemsFromEmbeddings(
}
return {
name: `${baseName} (${r.startLine}-${r.endLine})`,
name: `${baseName} (${r.startLine + 1}-${r.endLine + 1})`,
description: last2Parts,
content: `\`\`\`${relativePathOrBasename}\n${r.content}\n\`\`\``,
uri: {