diff options
author | Luke Cycon | 2022-09-20 07:21:15 +0000 |
---|---|---|
committer | GitHub | 2022-09-20 07:21:15 +0000 |
commit | 64b074541363c72534dc86d00053ecbd5511a9ca (patch) | |
tree | d539352a10e301210b89ef0f2cd13f863474081e /helix-core | |
parent | 130793dfd06306d1f9d25c150c2dc456cda3f9ed (diff) |
Track source and tags in diagnostics (#3898)
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/diagnostic.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-core/src/diagnostic.rs b/helix-core/src/diagnostic.rs index 48a68dc0..da199ac9 100644 --- a/helix-core/src/diagnostic.rs +++ b/helix-core/src/diagnostic.rs @@ -29,6 +29,12 @@ pub enum NumberOrString { String(String), } +#[derive(Debug, Clone)] +pub enum DiagnosticTag { + Unnecessary, + Deprecated, +} + /// Corresponds to [`lsp_types::Diagnostic`](https://docs.rs/lsp-types/0.91.0/lsp_types/struct.Diagnostic.html) #[derive(Debug, Clone)] pub struct Diagnostic { @@ -37,4 +43,6 @@ pub struct Diagnostic { pub message: String, pub severity: Option<Severity>, pub code: Option<NumberOrString>, + pub tags: Option<Vec<DiagnosticTag>>, + pub source: Option<String>, } |