We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c747512 + 4fb7674 commit 8996107Copy full SHA for 8996107
crates/rust-analyzer/src/main_loop.rs
@@ -406,7 +406,19 @@ impl GlobalState {
406
// When we're running multiple flychecks, we have to include a disambiguator in
407
// the title, or the editor complains. Note that this is a user-facing string.
408
let title = if self.flycheck.len() == 1 {
409
- "cargo check".to_string()
+ match self.config.flycheck() {
410
+ Some(flycheck::FlycheckConfig::CargoCommand {
411
+ command,
412
+ ..
413
+ }) => {
414
+ format!("cargo {}", command)
415
+ }
416
+ Some(flycheck::FlycheckConfig::CustomCommand {
417
418
419
+ }) => command,
420
+ None => "cargo check".to_string(),
421
422
} else {
423
format!("cargo check (#{})", id + 1)
424
};
0 commit comments