1 parent
4592887325
commit
f4e55c8dd3
8 files changed
+1347
No files matched your search
@@ -68,6 +68,8 @@ struct LspCfg {
|
||||
enable_runners: Vec<String>,
|
||||
/// runner ids to disable (e.g. "rustfmt", "biome-format")
|
||||
disable_runners: Vec<String>,
|
||||
/// affected tests: turn_end (default) | agent_end | off
|
||||
tests: Option<hx_lens::testrun::TestMode>,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
@@ -268,6 +270,12 @@ async fn main() -> Result<()> {
|
||||
agent.bus.add(ArcHook(lens.clone()));
|
||||
agent.tools.add(hx_lens::DiagMark { lens: lens.clone() });
|
||||
agent.tools.add(hx_lens::LspTool { mgr: mgr.clone() });
|
||||
let tmode = lcfg.tests.unwrap_or(hx_lens::testrun::TestMode::TurnEnd);
|
||||
if tmode != hx_lens::testrun::TestMode::Off {
|
||||
agent
|
||||
.bus
|
||||
.add(hx_lens::testrun::TestLens::new(cwd.clone(), tmode));
|
||||
}
|
||||
// rust-analyzer & co are slow to index: start servers for languages present at the top level now
|
||||
let probe: Vec<_> = std::fs::read_dir(&cwd)
|
||||
.into_iter()
|
||||
|
||||
Reference in new issue
Block a user