From 47c5ec4b94bcf114cee333c8a07ef6f4f5e9b72b Mon Sep 17 00:00:00 2001 From: Chinedu Francis Nwafili Date: Thu, 14 Jan 2021 06:03:41 -0500 Subject: Use --workspace when loading extern resources https://github.com/rust-analyzer/rust-analyzer/issues/5040#issuecomment-759853153 --- crates/project_model/src/cargo_workspace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/project_model/src/cargo_workspace.rs b/crates/project_model/src/cargo_workspace.rs index 2ee4e88b2..a1ab9c6db 100644 --- a/crates/project_model/src/cargo_workspace.rs +++ b/crates/project_model/src/cargo_workspace.rs @@ -377,7 +377,7 @@ pub(crate) fn load_extern_resources( progress: &dyn Fn(String), ) -> Result { 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 -- cgit v1.2.3