TheArchitectit
|
d610657cf0
|
refactor: split LSP modules under 500 lines each
Split the three large LSP files into module directories with sub-files:
lsp_transport/ (was 560 lines):
- mod.rs (425) — types + LspTransport impl
- tests.rs (134) — test module
lsp_process/ (was 929 lines):
- mod.rs (436) — LspProcess struct + public methods + error types
- parse.rs (311) — helper functions and LSP response parsers
- tests.rs (194) — test module
lsp_client/ (was 1338 lines):
- mod.rs (466) — LspRegistry struct + impl, re-exports from types
- types.rs (103) — LspAction, LspDiagnostic, LspServerStatus, etc.
- dispatch.rs (224) — LspRegistry::dispatch() method
- tests.rs (273) — core registry tests
- tests_lifecycle.rs (294) — lifecycle and integration tests
All files under 500 lines. All 501 runtime tests pass. Clippy clean.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-10 16:49:30 -05:00 |