Skip to content

Commit 76a5a41

Browse files
authored
refactor(lsp): Improve LSP Server and Component Architecture (#18)
This introduces a series of refactorings to improve the structure, testability, and robustness of the LSP server and its related components. Key changes include: - Centralized command execution and error handling within the LSP server. - Implemented the command pattern for LSP actions, organizing them into distinct modules. - Extracted the `LspServer` into its own module for better separation of concerns. - Improved the component factory and LSP server lifecycle management. - Introduced `mockall` to enhance testing capabilities. - Used a trait for `ComponentFactory` to allow for easier mocking and dependency injection. - Addressed clippy warnings by deriving `Default` for test helper structs.
1 parent bc3cc5c commit 76a5a41

20 files changed

+1538
-1273
lines changed

Cargo.lock

Lines changed: 77 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ tracing = "0.1.41"
3434
tracing-subscriber = "0.3.19"
3535

3636
[dev-dependencies]
37-
itertools = "0.14.0"
38-
lazy_static = "1.5.0"
39-
rstest = "0.26.1"
40-
tracing-subscriber = { version = "0.3.19", features = ["fmt", "env-filter"] }
37+
rstest = "0.21.0"
38+
serial_test = "3.1.1"
4139
tracing-test = "0.2.5"
40+
mockall = "0.13.0"
41+
42+
[features]
43+
default = []

0 commit comments

Comments
 (0)