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());
|
let mut cmd = Command::new(toolchain::cargo());
|
||||||
cmd.arg(command);
|
cmd.arg(command);
|
||||||
cmd.current_dir(&self.root);
|
cmd.current_dir(&self.root);
|
||||||
cmd.args(["--workspace", "--message-format=json", "--manifest-path"])
|
cmd.args([
|
||||||
.arg(self.root.join("Cargo.toml").as_os_str());
|
"--workspace",
|
||||||
|
"--message-format=json-diagnostic-rendered-ansi",
|
||||||
|
"--manifest-path",
|
||||||
|
])
|
||||||
|
.arg(self.root.join("Cargo.toml").as_os_str());
|
||||||
|
|
||||||
for target in target_triples {
|
for target in target_triples {
|
||||||
cmd.args(["--target", target.as_str()]);
|
cmd.args(["--target", target.as_str()]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue