aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cargo_watch
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-13 09:55:23 +0000
committerAleksey Kladov <[email protected]>2020-03-13 09:59:20 +0000
commitf2dd0231500bc645b58193c9c3fbc4df36b0a992 (patch)
tree60405f4a7d30c9e32a5eeefe8b96f02c43747a33 /crates/ra_cargo_watch
parent56590097ed71374902f1e1c44cde487db4e3ab4f (diff)
Check all crates of the workspace
Previously, if the root of the was was a real crate, only this crate was checked. Ideally, we might want some kind of config here (which might be just overriding the whole command), but `--workspace` is def a nicer default.
Diffstat (limited to 'crates/ra_cargo_watch')
-rw-r--r--crates/ra_cargo_watch/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs
index 94b9c03d0..1a6926db3 100644
--- a/crates/ra_cargo_watch/src/lib.rs
+++ b/crates/ra_cargo_watch/src/lib.rs
@@ -254,6 +254,7 @@ impl WatchThread {
254 fn new(options: &CheckOptions, workspace_root: &PathBuf) -> WatchThread { 254 fn new(options: &CheckOptions, workspace_root: &PathBuf) -> WatchThread {
255 let mut args: Vec<String> = vec![ 255 let mut args: Vec<String> = vec![
256 options.command.clone(), 256 options.command.clone(),
257 "--workspace".to_string(),
257 "--message-format=json".to_string(), 258 "--message-format=json".to_string(),
258 "--manifest-path".to_string(), 259 "--manifest-path".to_string(),
259 format!("{}/Cargo.toml", workspace_root.to_string_lossy()), 260 format!("{}/Cargo.toml", workspace_root.to_string_lossy()),