diff options
author | Gabriel Valfridsson <[email protected]> | 2020-06-16 21:26:33 +0100 |
---|---|---|
committer | Gabriel Valfridsson <[email protected]> | 2020-06-16 23:00:43 +0100 |
commit | 656e95211edf26bd82bd66f53ca3bcdfb7296e81 (patch) | |
tree | 5770b5e07ac0906acfe80b0c882ec4aa095e958d /crates/rust-analyzer/src/diagnostics.rs | |
parent | 5d7974e5fb921236fea74731d8edde518f08e73a (diff) |
Warnings as hint or info
Diffstat (limited to 'crates/rust-analyzer/src/diagnostics.rs')
-rw-r--r-- | crates/rust-analyzer/src/diagnostics.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/diagnostics.rs b/crates/rust-analyzer/src/diagnostics.rs index 25856c543..290609e7f 100644 --- a/crates/rust-analyzer/src/diagnostics.rs +++ b/crates/rust-analyzer/src/diagnostics.rs | |||
@@ -11,6 +11,12 @@ use crate::lsp_ext; | |||
11 | pub type CheckFixes = Arc<HashMap<FileId, Vec<Fix>>>; | 11 | pub type CheckFixes = Arc<HashMap<FileId, Vec<Fix>>>; |
12 | 12 | ||
13 | #[derive(Debug, Default, Clone)] | 13 | #[derive(Debug, Default, Clone)] |
14 | pub struct DiagnosticsConfig { | ||
15 | pub warnings_as_info: Vec<String>, | ||
16 | pub warnings_as_hint: Vec<String>, | ||
17 | } | ||
18 | |||
19 | #[derive(Debug, Default, Clone)] | ||
14 | pub struct DiagnosticCollection { | 20 | pub struct DiagnosticCollection { |
15 | pub native: HashMap<FileId, Vec<Diagnostic>>, | 21 | pub native: HashMap<FileId, Vec<Diagnostic>>, |
16 | pub check: HashMap<FileId, Vec<Diagnostic>>, | 22 | pub check: HashMap<FileId, Vec<Diagnostic>>, |