We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 548fd1a commit 27989b6Copy full SHA for 27989b6
lua/claudecode/tools/get_diagnostics.lua
@@ -1,7 +1,11 @@
1
--- Tool implementation for getting diagnostics.
2
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.
7
local schema = {
- description = "Get Neovim LSP diagnostics (errors, warnings) from open buffers",
8
+ description = "Get language diagnostics (errors, warnings) from the editor",
9
inputSchema = {
10
type = "object",
11
properties = {
0 commit comments