aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cargo_watch/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-16 11:55:36 +0000
committerGitHub <[email protected]>2020-03-16 11:55:36 +0000
commita007a123af294c14abd75777566d7ba8c4203683 (patch)
tree5911c1591b3994d74d752f586e9b19c731e4687e /crates/ra_cargo_watch/src
parent5bdc249b2c938df3eb2799c5efbdf1aa95d32a17 (diff)
parentf2dd0231500bc645b58193c9c3fbc4df36b0a992 (diff)
Merge #3573
3573: Check all crates of the workspace r=matklad a=matklad 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. r? @kiljacken Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_cargo_watch/src')
-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()),