mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
Default to use colored ANSI diagnostics
This commit is contained in:
parent
1b8141b54c
commit
40207906f4
1 changed files with 6 additions and 2 deletions
|
@ -297,8 +297,12 @@ impl FlycheckActor {
|
|||
let mut cmd = Command::new(toolchain::cargo());
|
||||
cmd.arg(command);
|
||||
cmd.current_dir(&self.root);
|
||||
cmd.args(["--workspace", "--message-format=json", "--manifest-path"])
|
||||
.arg(self.root.join("Cargo.toml").as_os_str());
|
||||
cmd.args([
|
||||
"--workspace",
|
||||
"--message-format=json-diagnostic-rendered-ansi",
|
||||
"--manifest-path",
|
||||
])
|
||||
.arg(self.root.join("Cargo.toml").as_os_str());
|
||||
|
||||
for target in target_triples {
|
||||
cmd.args(["--target", target.as_str()]);
|
||||
|
|
Loading…
Reference in a new issue