Merge pull request #4121 from continuedev/dallin/file-links

Fix: Codebase retrieval context item file links
This commit is contained in:
Nate Sesti 2025-02-13 07:48:54 -08:00 • committed by GitHub
commit 64b97b03bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: {