fix off by one error for codebase retrieval context items
This commit is contained in:
parent
a4b6457ca7
commit
3c8b3ef599
1 changed files with 1 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue