Skip to content

Commit

Permalink
Check all crates of the workspace
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matklad committed Mar 13, 2020
1 parent 5659009 commit f2dd023
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ra_cargo_watch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ impl WatchThread {
fn new(options: &CheckOptions, workspace_root: &PathBuf) -> WatchThread {
let mut args: Vec<String> = vec![
options.command.clone(),
"--workspace".to_string(),
"--message-format=json".to_string(),
"--manifest-path".to_string(),
format!("{}/Cargo.toml", workspace_root.to_string_lossy()),
Expand Down

0 comments on commit f2dd023

Please sign in to comment.