9051: Fix incorrect setting descriptions r=lnicola a=sclu1034

Descriptions for diagnostic warning hint and info display were swapped.

Fixes #8485.

Co-authored-by: Lucas Schwiderski <lucas@lschwiderski.de>
This commit is contained in:
bors[bot] 2021-05-29 16:23:59 +00:00 committed by GitHub
commit 11a1bd3259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

View file

@ -111,15 +111,15 @@ config_data! {
/// Map of prefixes to be substituted when parsing diagnostic file paths. /// Map of prefixes to be substituted when parsing diagnostic file paths.
/// This should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`. /// This should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`.
diagnostics_remapPrefix: FxHashMap<String, String> = "{}", diagnostics_remapPrefix: FxHashMap<String, String> = "{}",
/// List of warnings that should be displayed with info severity.
///
/// The warnings will be indicated by a blue squiggly underline in code
/// and a blue icon in the `Problems Panel`.
diagnostics_warningsAsHint: Vec<String> = "[]",
/// List of warnings that should be displayed with hint severity. /// List of warnings that should be displayed with hint severity.
/// ///
/// The warnings will be indicated by faded text or three dots in code /// The warnings will be indicated by faded text or three dots in code
/// and will not show up in the `Problems Panel`. /// and will not show up in the `Problems Panel`.
diagnostics_warningsAsHint: Vec<String> = "[]",
/// List of warnings that should be displayed with info severity.
///
/// The warnings will be indicated by a blue squiggly underline in code
/// and a blue icon in the `Problems Panel`.
diagnostics_warningsAsInfo: Vec<String> = "[]", diagnostics_warningsAsInfo: Vec<String> = "[]",
/// Controls file watching implementation. /// Controls file watching implementation.

View file

@ -161,19 +161,19 @@ This should be the reverse mapping of what is passed to `rustc` as `--remap-path
[[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`):: [[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`)::
+ +
-- --
List of warnings that should be displayed with info severity.
The warnings will be indicated by a blue squiggly underline in code
and a blue icon in the `Problems Panel`.
--
[[rust-analyzer.diagnostics.warningsAsInfo]]rust-analyzer.diagnostics.warningsAsInfo (default: `[]`)::
+
--
List of warnings that should be displayed with hint severity. List of warnings that should be displayed with hint severity.
The warnings will be indicated by faded text or three dots in code The warnings will be indicated by faded text or three dots in code
and will not show up in the `Problems Panel`. and will not show up in the `Problems Panel`.
-- --
[[rust-analyzer.diagnostics.warningsAsInfo]]rust-analyzer.diagnostics.warningsAsInfo (default: `[]`)::
+
--
List of warnings that should be displayed with info severity.
The warnings will be indicated by a blue squiggly underline in code
and a blue icon in the `Problems Panel`.
--
[[rust-analyzer.files.watcher]]rust-analyzer.files.watcher (default: `"client"`):: [[rust-analyzer.files.watcher]]rust-analyzer.files.watcher (default: `"client"`)::
+ +
-- --

View file

@ -597,7 +597,7 @@
"type": "object" "type": "object"
}, },
"rust-analyzer.diagnostics.warningsAsHint": { "rust-analyzer.diagnostics.warningsAsHint": {
"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`.", "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`.",
"default": [], "default": [],
"type": "array", "type": "array",
"items": { "items": {
@ -605,7 +605,7 @@
} }
}, },
"rust-analyzer.diagnostics.warningsAsInfo": { "rust-analyzer.diagnostics.warningsAsInfo": {
"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`.", "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`.",
"default": [], "default": [],
"type": "array", "type": "array",
"items": { "items": {