diff options
author | Aleksey Kladov <[email protected]> | 2020-04-02 13:30:28 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-02 13:35:51 +0100 |
commit | 8a788c764f579361debd5ec7894fa164f5a84630 (patch) | |
tree | 1d624f581d490339fbfae9a342af5af2f50dd722 /editors/code | |
parent | 7a4ebd2c8dfee8ca15dab7ba053a6521840aa5e3 (diff) |
Allow fully overriding check and fmt commands
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/package.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 1f95cd130..e1c34c6ad 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -248,6 +248,13 @@ | |||
248 | "default": [], | 248 | "default": [], |
249 | "description": "Additional arguments to rustfmt" | 249 | "description": "Additional arguments to rustfmt" |
250 | }, | 250 | }, |
251 | "rust-analyzer.rustfmt.overrideCommand": { | ||
252 | "type": "array", | ||
253 | "items": { | ||
254 | "type": "string" | ||
255 | }, | ||
256 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting." | ||
257 | }, | ||
251 | "rust-analyzer.checkOnSave.enable": { | 258 | "rust-analyzer.checkOnSave.enable": { |
252 | "type": "boolean", | 259 | "type": "boolean", |
253 | "default": true, | 260 | "default": true, |
@@ -266,6 +273,13 @@ | |||
266 | "default": "check", | 273 | "default": "check", |
267 | "markdownDescription": "Cargo command to use for `cargo check`" | 274 | "markdownDescription": "Cargo command to use for `cargo check`" |
268 | }, | 275 | }, |
276 | "rust-analyzer.checkOnSave.overrideCommand": { | ||
277 | "type": "array", | ||
278 | "items": { | ||
279 | "type": "string" | ||
280 | }, | ||
281 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command must include `--message=format=json`." | ||
282 | }, | ||
269 | "rust-analyzer.checkOnSave.allTargets": { | 283 | "rust-analyzer.checkOnSave.allTargets": { |
270 | "type": "boolean", | 284 | "type": "boolean", |
271 | "default": true, | 285 | "default": true, |