aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/diagnostics.rs
diff options
context:
space:
mode:
authorGabriel Valfridsson <[email protected]>2020-06-16 21:26:33 +0100
committerGabriel Valfridsson <[email protected]>2020-06-16 23:00:43 +0100
commit656e95211edf26bd82bd66f53ca3bcdfb7296e81 (patch)
tree5770b5e07ac0906acfe80b0c882ec4aa095e958d /crates/rust-analyzer/src/diagnostics.rs
parent5d7974e5fb921236fea74731d8edde518f08e73a (diff)
Warnings as hint or info
Diffstat (limited to 'crates/rust-analyzer/src/diagnostics.rs')
-rw-r--r--crates/rust-analyzer/src/diagnostics.rs6
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;
11pub type CheckFixes = Arc<HashMap<FileId, Vec<Fix>>>; 11pub type CheckFixes = Arc<HashMap<FileId, Vec<Fix>>>;
12 12
13#[derive(Debug, Default, Clone)] 13#[derive(Debug, Default, Clone)]
14pub struct DiagnosticsConfig {
15 pub warnings_as_info: Vec<String>,
16 pub warnings_as_hint: Vec<String>,
17}
18
19#[derive(Debug, Default, Clone)]
14pub struct DiagnosticCollection { 20pub 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>>,