Skip to content

Commit f5b01d6

Browse files
committed
WIP: uniformalize external tools config
1 parent 35675de commit f5b01d6

File tree

1 file changed

+33
-17
lines changed

1 file changed

+33
-17
lines changed

editors/code/package.json

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -261,41 +261,57 @@
261261
"default": [],
262262
"description": "Paths to exclude from analysis"
263263
},
264-
"rust-analyzer.rustfmtArgs": {
264+
"rust-analyzer.useClientWatching": {
265+
"type": "boolean",
266+
"default": true,
267+
"description": "client provided file watching instead of notify watching."
268+
},
269+
"rust-analyzer.rustfmt.extraArgs": {
265270
"type": "array",
266271
"items": {
267272
"type": "string"
268273
},
269274
"default": [],
270-
"description": "Additional arguments to rustfmt"
275+
"markdownDescription": "Additional `cargo fmt` arguments"
271276
},
272-
"rust-analyzer.useClientWatching": {
277+
"rust-analyzer.rustfmt.overrideCommand": {
278+
"type": "array",
279+
"items": {
280+
"type": "string"
281+
},
282+
"default": [],
283+
"markdownDescription": "Advanced option, fully override `cargo fmt` command line"
284+
},
285+
"rust-analyzer.checkOnSave.enable": {
273286
"type": "boolean",
274287
"default": true,
275-
"description": "client provided file watching instead of notify watching."
288+
"markdownDescription": "Run `cargo check` command for diagnostics on save"
289+
},
290+
"rust-analyzer.checkOnSave.cargoCommand": {
291+
"type": "string",
292+
"default": "check",
293+
"markdownDescription": "Cargo command to run on save"
276294
},
277-
"rust-analyzer.cargo-watch.enable": {
295+
"rust-analyzer.checkOnSave.allTargets": {
278296
"type": "boolean",
279297
"default": true,
280-
"markdownDescription": "Run specified `cargo-watch` command for diagnostics on save"
298+
"markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
281299
},
282-
"rust-analyzer.cargo-watch.arguments": {
300+
"rust-analyzer.checkOnSave.extraArgs": {
283301
"type": "array",
284302
"items": {
285303
"type": "string"
286304
},
287-
"markdownDescription": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
305+
"markdownDescription": "Additional `cargo check` arguments",
288306
"default": []
289307
},
290-
"rust-analyzer.cargo-watch.command": {
291-
"type": "string",
292-
"markdownDescription": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )",
293-
"default": "check"
294-
},
295-
"rust-analyzer.cargo-watch.allTargets": {
296-
"type": "boolean",
297-
"markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)",
298-
"default": true
308+
"rust-analyzer.checkOnSave.overrideCommand": {
309+
"type": "array",
310+
"items": {
311+
"type": "string"
312+
},
313+
"default": [],
314+
"markdownDescription": "Advanced option, fully override `cargo check` command line (this must include at least `--message-format=json`)"
299315
},
300316
"rust-analyzer.trace.server": {
301317
"type": "string",

0 commit comments

Comments
 (0)