Fix code after "apply suggestions"

This commit is contained in:
Aleksei Sidorov 2019-06-24 13:50:34 +03:00
parent c40ee089f2
commit 28e9e8d4cf
4 changed files with 21 additions and 15 deletions

View file

@ -25,8 +25,8 @@ export class Config {
public cargoWatchOptions: CargoWatchOptions = {
enableOnStartup: 'ask',
trace: 'off',
checkArguments: '',
checkCommand: ''
arguments: '',
command: ''
};
private prevEnhancedTyping: null | boolean = null;
@ -107,16 +107,16 @@ export class Config {
);
}
if (config.has('cargo-watch.check-arguments')) {
this.cargoWatchOptions.checkArguments = config.get<string>(
'cargo-watch.check-arguments',
if (config.has('cargo-watch.arguments')) {
this.cargoWatchOptions.arguments = config.get<string>(
'cargo-watch.arguments',
''
);
}
if (config.has('cargo-watch.check-command')) {
this.cargoWatchOptions.checkCommand = config.get<string>(
'cargo-watch.check-command',
if (config.has('cargo-watch.command')) {
this.cargoWatchOptions.command = config.get<string>(
'cargo-watch.command',
''
);
}