Add option to disable all-targets.

Can be useful in embedded.
This commit is contained in:
Vadzim Dambrouski 2019-12-15 23:02:13 +05:30
parent 4e24b25c66
commit a85cd6455a
3 changed files with 18 additions and 1 deletions

View file

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