mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
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 <aleksi@aleksijuvani.com>
This commit is contained in:
commit
eabfe3902f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue