From e49c6340646ee69d78b4a5ddfac124e069ac8167 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Sat, 28 Nov 2026 03:38:37 +0800 Subject: [PATCH] fix(ci): expect commit fixOnCommit in default settings and format the execution-output fixture (#6572) #6540 added vcs.commit.fixOnCommit, so the defaults JSON shape test now lists it. #5131 left the execution-output plugin fixture unformatted, which failed the plugin crates' cargo fmt --check. --- .../tests/fixtures/execution-output/src/lib.rs | 14 ++++---------- crates/ide-workspace/src/settings.rs | 1 + 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/crates/ide-plugin/tests/fixtures/execution-output/src/lib.rs b/crates/ide-plugin/tests/fixtures/execution-output/src/lib.rs index 4d55427f7..6870c7dc5 100644 --- a/crates/ide-plugin/tests/fixtures/execution-output/src/lib.rs +++ b/crates/ide-plugin/tests/fixtures/execution-output/src/lib.rs @@ -16,12 +16,8 @@ impl Plugin for ExecutionOutput { _ => None, }; let debug = parts.next() == Some("debug"); - host::start_run_with_options( - config, - &["extra".into()], - &RunStartOptions { debug, output_mode: mode }, - ) - .map(Some) + host::start_run_with_options(config, &["extra".into()], &RunStartOptions { debug, output_mode: mode }) + .map(Some) } "start-legacy" => host::start_run(arg.unwrap_or("pty-default"), &["legacy".into()], false).map(Some), "events" => host::storage::get("events"), @@ -30,10 +26,8 @@ impl Plugin for ExecutionOutput { } fn handle_events(&mut self, events: &[Event], _: &Invocation) { - let mut received: Vec = host::storage::get("events") - .unwrap() - .and_then(|s| serde_json::from_str(&s).ok()) - .unwrap_or_default(); + let mut received: Vec = + host::storage::get("events").unwrap().and_then(|s| serde_json::from_str(&s).ok()).unwrap_or_default(); for event in events { if let Event::Other { kind, data } = event { received.push(serde_json::json!({"kind": kind, "data": data})); diff --git a/crates/ide-workspace/src/settings.rs b/crates/ide-workspace/src/settings.rs index ba2a6d9f8..b28e82be3 100644 --- a/crates/ide-workspace/src/settings.rs +++ b/crates/ide-workspace/src/settings.rs @@ -1000,6 +1000,7 @@ mod tests { "reformat": false, "optimizeImports": false, "cleanup": false, + "fixOnCommit": false, "blankLineAfterSubject": true, "limitSubject": true, "subjectLimit": 72,