Skip to content

Commit 27989b6

Browse files
committed
fix(getDiagnostics): remove Neovim context from description
1 parent 548fd1a commit 27989b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/claudecode/tools/get_diagnostics.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
--- Tool implementation for getting diagnostics.
22

3+
-- NOTE: Its important we don't tip off Claude that we're dealing with Neovim LSP diagnostics because it may adjust
4+
-- line and col numbers by 1 on its own (since it knows nvim LSP diagnostics are 0-indexed). By calling these
5+
-- "editor diagnostics" and converting to 1-indexed ourselves we (hopefully) avoid incorrect line and column numbers
6+
-- in Claude's responses.
37
local schema = {
4-
description = "Get Neovim LSP diagnostics (errors, warnings) from open buffers",
8+
description = "Get language diagnostics (errors, warnings) from the editor",
59
inputSchema = {
610
type = "object",
711
properties = {

0 commit comments

Comments
 (0)