Skip to content

Commit 7e25f1b

Browse files
fix: show custom check-command
1 parent 4c20d68 commit 7e25f1b

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)