Skip to content

Commit 9a057c0

Browse files
committed
Fix incorrect setting descriptions
Descriptions for diagnostic warning hint and info display were swapped. Fixes rust-lang#8485. Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
1 parent 247faf2 commit 9a057c0

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ config_data! {
111111
/// Map of prefixes to be substituted when parsing diagnostic file paths.
112112
/// This should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`.
113113
diagnostics_remapPrefix: FxHashMap<String, String> = "{}",
114-
/// List of warnings that should be displayed with info severity.
115-
///
116-
/// The warnings will be indicated by a blue squiggly underline in code
117-
/// and a blue icon in the `Problems Panel`.
118-
diagnostics_warningsAsHint: Vec<String> = "[]",
119114
/// List of warnings that should be displayed with hint severity.
120115
///
121116
/// The warnings will be indicated by faded text or three dots in code
122117
/// and will not show up in the `Problems Panel`.
118+
diagnostics_warningsAsHint: Vec<String> = "[]",
119+
/// List of warnings that should be displayed with info severity.
120+
///
121+
/// The warnings will be indicated by a blue squiggly underline in code
122+
/// and a blue icon in the `Problems Panel`.
123123
diagnostics_warningsAsInfo: Vec<String> = "[]",
124124

125125
/// Controls file watching implementation.

docs/user/generated_config.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,18 @@ This should be the reverse mapping of what is passed to `rustc` as `--remap-path
161161
[[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`)::
162162
+
163163
--
164-
List of warnings that should be displayed with info severity.
164+
List of warnings that should be displayed with hint severity.
165165

166-
The warnings will be indicated by a blue squiggly underline in code
167-
and a blue icon in the `Problems Panel`.
166+
The warnings will be indicated by faded text or three dots in code
167+
and will not show up in the `Problems Panel`.
168168
--
169169
[[rust-analyzer.diagnostics.warningsAsInfo]]rust-analyzer.diagnostics.warningsAsInfo (default: `[]`)::
170170
+
171171
--
172-
List of warnings that should be displayed with hint severity.
172+
List of warnings that should be displayed with info severity.
173173

174-
The warnings will be indicated by faded text or three dots in code
175-
and will not show up in the `Problems Panel`.
174+
The warnings will be indicated by a blue squiggly underline in code
175+
and a blue icon in the `Problems Panel`.
176176
--
177177
[[rust-analyzer.files.watcher]]rust-analyzer.files.watcher (default: `"client"`)::
178178
+

editors/code/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,15 +597,15 @@
597597
"type": "object"
598598
},
599599
"rust-analyzer.diagnostics.warningsAsHint": {
600-
"markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.",
600+
"markdownDescription": "List of warnings that should be displayed with hint severity.\n\nThe warnings will be indicated by faded text or three dots in code\nand will not show up in the `Problems Panel`.",
601601
"default": [],
602602
"type": "array",
603603
"items": {
604604
"type": "string"
605605
}
606606
},
607607
"rust-analyzer.diagnostics.warningsAsInfo": {
608-
"markdownDescription": "List of warnings that should be displayed with hint severity.\n\nThe warnings will be indicated by faded text or three dots in code\nand will not show up in the `Problems Panel`.",
608+
"markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.",
609609
"default": [],
610610
"type": "array",
611611
"items": {

0 commit comments

Comments
 (0)