mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
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 <65456722+Florian-Schoenherr@users.noreply.github.com>
This commit is contained in:
commit
cf2ddb935e
1 changed files with 1 additions and 10 deletions
|
@ -407,16 +407,7 @@ impl GlobalState {
|
|||
// the title, or the editor complains. Note that this is a user-facing string.
|
||||
let title = if self.flycheck.len() == 1 {
|
||||
match self.config.flycheck() {
|
||||
Some(flycheck::FlycheckConfig::CargoCommand {
|
||||
command,
|
||||
..
|
||||
}) => {
|
||||
format!("cargo {}", command)
|
||||
}
|
||||
Some(flycheck::FlycheckConfig::CustomCommand {
|
||||
command,
|
||||
..
|
||||
}) => command,
|
||||
Some(config) => format!("{}", config),
|
||||
None => "cargo check".to_string(),
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue