Skip to content

Commit d0c74e4

Browse files
committed
fix: increase the code start and end line number by 1
1 parent 6a731cb commit d0c74e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/context/contextCommandsProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class ContextCommandsProvider implements Disposable {
195195
codeCmds.push({
196196
...baseItem,
197197
command: item.symbol.name,
198-
description: `${item.symbol.kind}, ${path.join(wsFolderName, item.relativePath)}, L${item.symbol.range.start.line}-${item.symbol.range.end.line}`,
198+
description: `${item.symbol.kind}, ${path.join(wsFolderName, item.relativePath)}, L${item.symbol.range.start.line + 1}-${item.symbol.range.end.line + 1}`,
199199
label: 'code',
200200
icon: 'code-block',
201201
})

0 commit comments

Comments
 (0)