aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model
diff options
context:
space:
mode:
authorChinedu Francis Nwafili <[email protected]>2021-01-14 11:03:41 +0000
committerGitHub <[email protected]>2021-01-14 11:03:41 +0000
commit47c5ec4b94bcf114cee333c8a07ef6f4f5e9b72b (patch)
treea73bd1c92af8ea0fcb19836f8724be6022c93a00 /crates/project_model
parentd635806ea5090426cd4a5a57601a7f823277e84c (diff)
Use --workspace when loading extern resources
https://github.com/rust-analyzer/rust-analyzer/issues/5040#issuecomment-759853153
Diffstat (limited to 'crates/project_model')
-rw-r--r--crates/project_model/src/cargo_workspace.rs2
1 files changed, 1 insertions, 1 deletions
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(
377 progress: &dyn Fn(String), 377 progress: &dyn Fn(String),
378) -> Result<ExternResources> { 378) -> Result<ExternResources> {
379 let mut cmd = Command::new(toolchain::cargo()); 379 let mut cmd = Command::new(toolchain::cargo());
380 cmd.args(&["check", "--message-format=json", "--manifest-path"]).arg(cargo_toml); 380 cmd.args(&["check", "--workspace", "--message-format=json", "--manifest-path"]).arg(cargo_toml);
381 381
382 // --all-targets includes tests, benches and examples in addition to the 382 // --all-targets includes tests, benches and examples in addition to the
383 // default lib and bins. This is an independent concept from the --targets 383 // default lib and bins. This is an independent concept from the --targets