diff options
-rw-r--r-- | crates/project_model/src/cargo_workspace.rs | 2 |
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 |