You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add Go LSP MCP configs and tools guide for code navigation (#18613)
# Add Code Navigation and Investigation Guide for Go LSP Tools
Added a new section to the CLAUDE.md documentation that explains how to use Go Language Server Protocol (LSP) tools when working with the Coder codebase. The guide includes:
- Commands for finding function definitions, symbol references, and getting symbol information
- Examples of LSP usage with specific commands
- Guidance on when to use LSP versus other tools like grep or bash
- A structured investigation strategy for navigating the codebase, starting with route registration and tracing through to implementations
This documentation helps developers more efficiently explore and understand the codebase structure.
Copy file name to clipboardExpand all lines: CLAUDE.md
+108Lines changed: 108 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -270,6 +270,114 @@ if errors.Is(err, errInvalidPKCE) {
270
270
- Test both positive and negative cases
271
271
- Use`testutil.WaitLong`for timeouts in tests
272
272
273
+
## CodeNavigation and Investigation
274
+
275
+
### UsingGoLSPTools (STRONGLY RECOMMENDED)
276
+
277
+
**IMPORTANT**: Always use GoLSP tools for code navigation and understanding. These tools provide accurate, real-time analysis of the codebase and should be your first choice for code investigation.
278
+
279
+
When working with the Coder codebase, leverage GoLanguageServerProtocol tools for efficient code navigation:
280
+
281
+
1. **Find function definitions** (USE THISFREQUENTLY):
0 commit comments