diff options
author | gfreezy <[email protected]> | 2018-12-23 16:39:33 +0000 |
---|---|---|
committer | gfreezy <[email protected]> | 2018-12-23 16:39:33 +0000 |
commit | 346638c8098fefd0b6fa3cf81fbdf22ebfaab9be (patch) | |
tree | 9c3065ad2d909786f802fbd1b4c2571cb2287482 /crates/ra_analysis/src/lib.rs | |
parent | 000aacafda209826b9b5aac86d175152d488f05b (diff) |
add serverity to vscode diagnostics
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 85df9c089..8ab6334a7 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -34,6 +34,7 @@ pub use crate::{ | |||
34 | }; | 34 | }; |
35 | pub use ra_editor::{ | 35 | pub use ra_editor::{ |
36 | FileSymbol, Fold, FoldKind, HighlightedRange, LineIndex, Runnable, RunnableKind, StructureNode, | 36 | FileSymbol, Fold, FoldKind, HighlightedRange, LineIndex, Runnable, RunnableKind, StructureNode, |
37 | Severity | ||
37 | }; | 38 | }; |
38 | pub use hir::FnSignatureInfo; | 39 | pub use hir::FnSignatureInfo; |
39 | 40 | ||
@@ -198,6 +199,7 @@ pub struct Diagnostic { | |||
198 | pub message: String, | 199 | pub message: String, |
199 | pub range: TextRange, | 200 | pub range: TextRange, |
200 | pub fix: Option<SourceChange>, | 201 | pub fix: Option<SourceChange>, |
202 | pub severity: Option<Severity>, | ||
201 | } | 203 | } |
202 | 204 | ||
203 | #[derive(Debug)] | 205 | #[derive(Debug)] |