M5: affected tests at turn end (closes #35 #36 #37 #38 #39 #40 #41)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s

This commit is contained in:
hermes committed 2026-09-30 15:03:17 +00:00
1 parent 4592887325
commit f4e55c8dd3
8 files changed
+1347

No files matched your search

+8
View File
@@ -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()