diff options
author | Blaž Hrastnik | 2021-03-15 07:19:31 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-15 07:19:31 +0000 |
commit | 87e3cd3df283a6da055488bbea60637713bd1f35 (patch) | |
tree | 94fc1d72a136d4ccadc927ea19f95cac370eb61c /helix-term/src/application.rs | |
parent | 1abf2953cdee525f8c1f30e881bc5c4211cb62fd (diff) |
ui: Render diagnostic errors in sideline.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 24b5317b..c22cf996 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -140,14 +140,17 @@ impl Application { .into_iter() .map(|diagnostic| { use helix_core::diagnostic::Severity::*; - use helix_core::{diagnostic::Severity, Diagnostic}; + use helix_core::{ + diagnostic::{Range, Severity}, + Diagnostic, + }; use helix_lsp::{lsp, util::lsp_pos_to_pos}; use lsp::DiagnosticSeverity; let start = lsp_pos_to_pos(doc, diagnostic.range.start); let end = lsp_pos_to_pos(doc, diagnostic.range.end); Diagnostic { - range: (start, end), + range: Range { start, end }, line: diagnostic.range.start.line as usize, message: diagnostic.message, severity: diagnostic.severity.map( |