mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
fix: Fix standard flycheck command not being executed in the workspace it is being invoked for
This commit is contained in:
parent
43fb9563b2
commit
fbae83acd0
1 changed files with 3 additions and 1 deletions
|
@ -295,7 +295,9 @@ impl FlycheckActor {
|
||||||
} => {
|
} => {
|
||||||
let mut cmd = Command::new(toolchain::cargo());
|
let mut cmd = Command::new(toolchain::cargo());
|
||||||
cmd.arg(command);
|
cmd.arg(command);
|
||||||
cmd.args(&["--workspace", "--message-format=json"]);
|
cmd.current_dir(&self.root);
|
||||||
|
cmd.args(&["--workspace", "--message-format=json", "--manifest-path"])
|
||||||
|
.arg(self.root.join("Cargo.toml").as_os_str());
|
||||||
|
|
||||||
if let Some(target) = target_triple {
|
if let Some(target) = target_triple {
|
||||||
cmd.args(&["--target", target.as_str()]);
|
cmd.args(&["--target", target.as_str()]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue