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 <aleksi@aleksijuvani.com>
This commit is contained in:
bors[bot] 2019-05-21 07:23:21 +00:00
commit eabfe3902f

View file

@ -57,7 +57,7 @@ export class CargoWatchProvider implements vscode.Disposable {
return; return;
} }
let args = 'check --message-format json'; let args = 'check --all-targets --message-format json';
if (Server.config.cargoWatchOptions.checkArguments.length > 0) { if (Server.config.cargoWatchOptions.checkArguments.length > 0) {
// Excape the double quote string: // Excape the double quote string:
args += ' ' + Server.config.cargoWatchOptions.checkArguments; args += ' ' + Server.config.cargoWatchOptions.checkArguments;