diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-21 08:23:21 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-21 08:23:21 +0100 |
commit | eabfe3902f363ee03bef8421580c6fe8e3730899 (patch) | |
tree | 5f2353423113f378f6d782c0aa427f60b98a2918 /editors/code/src | |
parent | 4369c1c4a1f098b8e59a462afb9292137498bb43 (diff) | |
parent | 854dac335d3e8295fba637ad6413d952e6b973ef (diff) |
Merge #1293
1293: Pass `--all-targets` to `cargo watch` r=matklad a=aleksijuvani
A trivial change, but passes the `--all-targets` flag to `cargo watch`. This enables inline diagnostics for the example, bin and test targets. Previously, modifying an example would trigger a change notification for `cargo watch`, but `cargo check` does not actually check these unless either `--all-targets` or `--examples` is specified.
Co-authored-by: Aleksi Juvani <[email protected]>
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/commands/cargo_watch.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/cargo_watch.ts b/editors/code/src/commands/cargo_watch.ts index 1d939e28c..6ba794bb3 100644 --- a/editors/code/src/commands/cargo_watch.ts +++ b/editors/code/src/commands/cargo_watch.ts | |||
@@ -57,7 +57,7 @@ export class CargoWatchProvider implements vscode.Disposable { | |||
57 | return; | 57 | return; |
58 | } | 58 | } |
59 | 59 | ||
60 | let args = 'check --message-format json'; | 60 | let args = 'check --all-targets --message-format json'; |
61 | if (Server.config.cargoWatchOptions.checkArguments.length > 0) { | 61 | if (Server.config.cargoWatchOptions.checkArguments.length > 0) { |
62 | // Excape the double quote string: | 62 | // Excape the double quote string: |
63 | args += ' ' + Server.config.cargoWatchOptions.checkArguments; | 63 | args += ' ' + Server.config.cargoWatchOptions.checkArguments; |