mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Merge #7264
7264: Use --workspace when loading extern resources r=edwin0cheng a=chinedufn https://github.com/rust-analyzer/rust-analyzer/issues/5040#issuecomment-759853153 Co-authored-by: Chinedu Francis Nwafili <frankie.nwafili@gmail.com>
This commit is contained in:
commit
e732b948e9
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ pub(crate) fn load_extern_resources(
|
|||
progress: &dyn Fn(String),
|
||||
) -> Result<ExternResources> {
|
||||
let mut cmd = Command::new(toolchain::cargo());
|
||||
cmd.args(&["check", "--message-format=json", "--manifest-path"]).arg(cargo_toml);
|
||||
cmd.args(&["check", "--workspace", "--message-format=json", "--manifest-path"]).arg(cargo_toml);
|
||||
|
||||
// --all-targets includes tests, benches and examples in addition to the
|
||||
// default lib and bins. This is an independent concept from the --targets
|
||||
|
|
Loading…
Reference in a new issue