lsp tool: offer to install a missing language server
This commit is contained in:
1 parent
ee167ce6ed
commit
ee0714d271
10 files changed
+378
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user