From f4d50de2758b38208745d9594ccbcf0227d49d5b Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Thu, 17 Oct 2019 15:22:39 +0200 Subject: Adds config option for cargo-watch `--ignore` flag --- editors/code/src/config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'editors/code/src/config.ts') diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index a4581485c..49bdf7d72 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -12,6 +12,7 @@ export interface CargoWatchOptions { arguments: string; command: string; trace: CargoWatchTraceOptions; + ignore: string[]; } export class Config { @@ -29,7 +30,8 @@ export class Config { enableOnStartup: 'ask', trace: 'off', arguments: '', - command: '' + command: '', + ignore: [] }; private prevEnhancedTyping: null | boolean = null; @@ -124,6 +126,13 @@ export class Config { ); } + if (config.has('cargo-watch.ignore')) { + this.cargoWatchOptions.ignore = config.get( + 'cargo-watch.ignore', + [] + ); + } + if (config.has('lruCapacity')) { this.lruCapacity = config.get('lruCapacity') as number; } -- cgit v1.2.3