From 4722e6d491a29bdb077fc01aa8c5bdc734282c69 Mon Sep 17 00:00:00 2001 From: Aleksei Sidorov Date: Mon, 24 Jun 2019 13:02:20 +0300 Subject: Introduce cargo-watch.check-command --- editors/code/src/config.ts | 13 ++++++++++++- 1 file changed, 12 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 3024546d2..85366fc34 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -1,6 +1,7 @@ import * as vscode from 'vscode'; import { Server } from './server'; +import { strict } from 'assert'; const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG; @@ -10,6 +11,7 @@ export type CargoWatchTraceOptions = 'off' | 'error' | 'verbose'; export interface CargoWatchOptions { enableOnStartup: CargoWatchStartupOptions; checkArguments: string; + checkCommand: string; trace: CargoWatchTraceOptions; } @@ -23,7 +25,8 @@ export class Config { public cargoWatchOptions: CargoWatchOptions = { enableOnStartup: 'ask', trace: 'off', - checkArguments: '' + checkArguments: '', + checkCommand: '' }; private prevEnhancedTyping: null | boolean = null; @@ -110,6 +113,14 @@ export class Config { '' ); } + + if (config.has('cargo-watch.check-command')) { + this.cargoWatchOptions.checkCommand = config.get( + 'cargo-watch.check-command', + '' + ); + } + if (config.has('lruCapacity')) { this.lruCapacity = config.get('lruCapacity') as number; } -- cgit v1.2.3