mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Introduce cargo-watch.check-command
This commit is contained in:
parent
7d79be3280
commit
4722e6d491
4 changed files with 27 additions and 7 deletions
|
@ -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<string>(
|
||||
'cargo-watch.check-command',
|
||||
''
|
||||
);
|
||||
}
|
||||
|
||||
if (config.has('lruCapacity')) {
|
||||
this.lruCapacity = config.get('lruCapacity') as number;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue