diff options
Diffstat (limited to 'docs/user/generated_config.adoc')
-rw-r--r-- | docs/user/generated_config.adoc | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index c02bab7cc..dbd9a3503 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc | |||
@@ -136,6 +136,12 @@ Whether to show postfix snippets like `dbg`, `if`, `not`, etc. | |||
136 | Toggles the additional completions that automatically add imports when completed. | 136 | Toggles the additional completions that automatically add imports when completed. |
137 | Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled. | 137 | Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled. |
138 | -- | 138 | -- |
139 | [[rust-analyzer.completion.autoself.enable]]rust-analyzer.completion.autoself.enable (default: `true`):: | ||
140 | + | ||
141 | -- | ||
142 | Toggles the additional completions that automatically show method calls and field accesses | ||
143 | with `self` prefixed to them when inside a method. | ||
144 | -- | ||
139 | [[rust-analyzer.diagnostics.enable]]rust-analyzer.diagnostics.enable (default: `true`):: | 145 | [[rust-analyzer.diagnostics.enable]]rust-analyzer.diagnostics.enable (default: `true`):: |
140 | + | 146 | + |
141 | -- | 147 | -- |
@@ -161,18 +167,18 @@ This should be the reverse mapping of what is passed to `rustc` as `--remap-path | |||
161 | [[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`):: | 167 | [[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`):: |
162 | + | 168 | + |
163 | -- | 169 | -- |
164 | List of warnings that should be displayed with info severity. | 170 | List of warnings that should be displayed with hint severity. |
165 | 171 | ||
166 | The warnings will be indicated by a blue squiggly underline in code | 172 | The warnings will be indicated by faded text or three dots in code |
167 | and a blue icon in the `Problems Panel`. | 173 | and will not show up in the `Problems Panel`. |
168 | -- | 174 | -- |
169 | [[rust-analyzer.diagnostics.warningsAsInfo]]rust-analyzer.diagnostics.warningsAsInfo (default: `[]`):: | 175 | [[rust-analyzer.diagnostics.warningsAsInfo]]rust-analyzer.diagnostics.warningsAsInfo (default: `[]`):: |
170 | + | 176 | + |
171 | -- | 177 | -- |
172 | List of warnings that should be displayed with hint severity. | 178 | List of warnings that should be displayed with info severity. |
173 | 179 | ||
174 | The warnings will be indicated by faded text or three dots in code | 180 | The warnings will be indicated by a blue squiggly underline in code |
175 | and will not show up in the `Problems Panel`. | 181 | and a blue icon in the `Problems Panel`. |
176 | -- | 182 | -- |
177 | [[rust-analyzer.files.watcher]]rust-analyzer.files.watcher (default: `"client"`):: | 183 | [[rust-analyzer.files.watcher]]rust-analyzer.files.watcher (default: `"client"`):: |
178 | + | 184 | + |
@@ -346,6 +352,13 @@ Additional arguments to `rustfmt`. | |||
346 | Advanced option, fully override the command rust-analyzer uses for | 352 | Advanced option, fully override the command rust-analyzer uses for |
347 | formatting. | 353 | formatting. |
348 | -- | 354 | -- |
355 | [[rust-analyzer.rustfmt.enableRangeFormatting]]rust-analyzer.rustfmt.enableRangeFormatting (default: `false`):: | ||
356 | + | ||
357 | -- | ||
358 | Enables the use of rustfmt's unstable range formatting command for the | ||
359 | `textDocument/rangeFormatting` request. The rustfmt option is unstable and only | ||
360 | available on a nightly build. | ||
361 | -- | ||
349 | [[rust-analyzer.workspace.symbol.search.scope]]rust-analyzer.workspace.symbol.search.scope (default: `"workspace"`):: | 362 | [[rust-analyzer.workspace.symbol.search.scope]]rust-analyzer.workspace.symbol.search.scope (default: `"workspace"`):: |
350 | + | 363 | + |
351 | -- | 364 | -- |