Skip to content

Commit 17373f0

Browse files
committed
compress lsp section in claude.md
1 parent 7db402e commit 17373f0

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

CLAUDE.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,44 +31,6 @@ Use LSP tools for:
3131
- **Diagnostics:** `get_diagnostics` for compiler errors and warnings
3232
- **Completions:** `get_completions` for valid code suggestions
3333

34-
### Why LSP Over Text Search
35-
36-
**LSP Advantages:**
37-
- **Semantic understanding:** Knows about scopes, types, and language semantics
38-
- **Accurate references:** Distinguishes between `Result` (std) vs `Result` (custom type)
39-
- **Cross-file navigation:** Follows imports and module boundaries correctly
40-
- **Type-aware:** Understands trait bounds, generic parameters, associated types
41-
- **Compiler-backed:** Uses the same analysis as the compiler
42-
43-
**When Text Search is Appropriate:**
44-
- Finding string literals or comments
45-
- Pattern-based searches across multiple file types
46-
- Exploratory searches when you don't know exact symbols
47-
- Searching in non-code files (markdown, configs, etc.)
48-
49-
### Common LSP Workflows
50-
51-
**Understanding a function:**
52-
```
53-
1. get_symbol_definitions (find where it's defined)
54-
2. get_hover (see type signature and docs)
55-
3. get_symbol_references (see where it's used)
56-
```
57-
58-
**Exploring a trait:**
59-
```
60-
1. get_symbol_definitions (find trait definition)
61-
2. get_implementations (find all implementations)
62-
3. get_type_hierarchy (understand inheritance)
63-
```
64-
65-
**Fixing errors:**
66-
```
67-
1. get_diagnostics (get all errors/warnings)
68-
2. get_code_actions (get automated fixes)
69-
3. get_hover (understand type mismatches)
70-
```
71-
7234
### Integration with Development
7335

7436
Before modifying code:

0 commit comments

Comments
 (0)