mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +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.
|
// the title, or the editor complains. Note that this is a user-facing string.
|
||||||
let title = if self.flycheck.len() == 1 {
|
let title = if self.flycheck.len() == 1 {
|
||||||
match self.config.flycheck() {
|
match self.config.flycheck() {
|
||||||
Some(flycheck::FlycheckConfig::CargoCommand {
|
Some(config) => format!("{}", config),
|
||||||
command,
|
|
||||||
..
|
|
||||||
}) => {
|
|
||||||
format!("cargo {}", command)
|
|
||||||
}
|
|
||||||
Some(flycheck::FlycheckConfig::CustomCommand {
|
|
||||||
command,
|
|
||||||
..
|
|
||||||
}) => command,
|
|
||||||
None => "cargo check".to_string(),
|
None => "cargo check".to_string(),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue