Skip to content

Commit cf2ddb9

Browse files
Merge #10808
10808: fix: show custom check-command r=Veykril a=Florian-Schoenherr just realized this is a lot cleaner and actually shows something on a custom command, also debugged it this time. Co-authored-by: Florian-Schoenherr <[email protected]>
2 parents 4c20d68 + 7e25f1b commit cf2ddb9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -407,16 +407,7 @@ impl GlobalState {
407407
// the title, or the editor complains. Note that this is a user-facing string.
408408
let title = if self.flycheck.len() == 1 {
409409
match self.config.flycheck() {
410-
Some(flycheck::FlycheckConfig::CargoCommand {
411-
command,
412-
..
413-
}) => {
414-
format!("cargo {}", command)
415-
}
416-
Some(flycheck::FlycheckConfig::CustomCommand {
417-
command,
418-
..
419-
}) => command,
410+
Some(config) => format!("{}", config),
420411
None => "cargo check".to_string(),
421412
}
422413
} else {

0 commit comments

Comments
 (0)