lsp tool: offer to install a missing language server
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s

This commit is contained in:
hermes committed 2026-09-30 21:10:13 +00:00
1 parent ee167ce6ed
commit ee0714d271
10 files changed
+378 -5

No files matched your search

+2 -2
View File
@@ -225,7 +225,7 @@ async fn main() -> Result<()> {
hx_lens::manager::default_servers(),
));
let mut reg = hx_core::tool::Registry::default();
reg.add(hx_lens::LspTool { mgr: mgr.clone() });
reg.add(hx_lens::LspTool::new(mgr.clone()));
let cx = ToolCtx {
cwd,
state: Default::default(),
@@ -324,7 +324,7 @@ async fn main() -> Result<()> {
lens_ref = Some(lens.clone());
agent.bus.add(ArcHook(lens.clone()));
agent.tools.add(hx_lens::DiagMark { lens: lens.clone() });
agent.tools.add(hx_lens::LspTool { mgr: mgr.clone() });
agent.tools.add(hx_lens::LspTool::new(mgr.clone()));
let tmode = lcfg.tests.unwrap_or(hx_lens::testrun::TestMode::TurnEnd);
if tmode != hx_lens::testrun::TestMode::Off {
agent