mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Better config scheme & defaults
This commit is contained in:
parent
c859a6480a
commit
501c5b45ac
1 changed files with 14 additions and 6 deletions
|
@ -251,11 +251,15 @@
|
||||||
"description": "Additional arguments to rustfmt"
|
"description": "Additional arguments to rustfmt"
|
||||||
},
|
},
|
||||||
"rust-analyzer.rustfmt.overrideCommand": {
|
"rust-analyzer.rustfmt.overrideCommand": {
|
||||||
"type": "array",
|
"type": [
|
||||||
|
"null",
|
||||||
|
"array"
|
||||||
|
],
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"minItems": 1
|
||||||
},
|
},
|
||||||
"default": [],
|
"default": null,
|
||||||
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting."
|
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting."
|
||||||
},
|
},
|
||||||
"rust-analyzer.checkOnSave.enable": {
|
"rust-analyzer.checkOnSave.enable": {
|
||||||
|
@ -277,11 +281,15 @@
|
||||||
"markdownDescription": "Cargo command to use for `cargo check`"
|
"markdownDescription": "Cargo command to use for `cargo check`"
|
||||||
},
|
},
|
||||||
"rust-analyzer.checkOnSave.overrideCommand": {
|
"rust-analyzer.checkOnSave.overrideCommand": {
|
||||||
"type": "array",
|
"type": [
|
||||||
|
"null",
|
||||||
|
"array"
|
||||||
|
],
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"minItems": 1
|
||||||
},
|
},
|
||||||
"default": [],
|
"default": null,
|
||||||
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option."
|
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option."
|
||||||
},
|
},
|
||||||
"rust-analyzer.checkOnSave.allTargets": {
|
"rust-analyzer.checkOnSave.allTargets": {
|
||||||
|
|
Loading…
Reference in a new issue