Commit 76a5a41
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
File tree
20 files changed
+1538
-1273
lines changed- src
- app
- lsp_server
- commands
- infra
- tests
20 files changed
+1538
-1273
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 37 | + | |
| 38 | + | |
41 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments