Auto merge of #14183 - lnicola:rustfmt-command-docs, r=lowr
minor: Try to improve the `rustfmt.overrideCommand` docs Closes #14078
This commit is contained in:
commit
27239fbb58
@ -456,7 +456,10 @@ config_data! {
|
||||
/// Additional arguments to `rustfmt`.
|
||||
rustfmt_extraArgs: Vec<String> = "[]",
|
||||
/// Advanced option, fully override the command rust-analyzer uses for
|
||||
/// formatting.
|
||||
/// formatting. This should be the equivalent of `rustfmt` here, and
|
||||
/// not that of `cargo fmt`. The file contents will be passed on the
|
||||
/// standard input and the formatted result will be read from the
|
||||
/// standard output.
|
||||
rustfmt_overrideCommand: Option<Vec<String>> = "null",
|
||||
/// Enables the use of rustfmt's unstable range formatting command for the
|
||||
/// `textDocument/rangeFormatting` request. The rustfmt option is unstable and only
|
||||
|
@ -699,7 +699,10 @@ Additional arguments to `rustfmt`.
|
||||
+
|
||||
--
|
||||
Advanced option, fully override the command rust-analyzer uses for
|
||||
formatting.
|
||||
formatting. This should be the equivalent of `rustfmt` here, and
|
||||
not that of `cargo fmt`. The file contents will be passed on the
|
||||
standard input and the formatted result will be read from the
|
||||
standard output.
|
||||
--
|
||||
[[rust-analyzer.rustfmt.rangeFormatting.enable]]rust-analyzer.rustfmt.rangeFormatting.enable (default: `false`)::
|
||||
+
|
||||
|
@ -1283,7 +1283,7 @@
|
||||
}
|
||||
},
|
||||
"rust-analyzer.rustfmt.overrideCommand": {
|
||||
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
|
||||
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting. This should be the equivalent of `rustfmt` here, and\nnot that of `cargo fmt`. The file contents will be passed on the\nstandard input and the formatted result will be read from the\nstandard output.",
|
||||
"default": null,
|
||||
"type": [
|
||||
"null",
|
||||
|
Loading…
x
Reference in New Issue
Block a user