diff options
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs index bf77c9ab1..11391ef02 100644 --- a/crates/ra_ide_api/src/diagnostics.rs +++ b/crates/ra_ide_api/src/diagnostics.rs | |||
@@ -31,7 +31,7 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic> | |||
31 | let mut sink = DiagnosticSink::new(|d| { | 31 | let mut sink = DiagnosticSink::new(|d| { |
32 | res.borrow_mut().push(Diagnostic { | 32 | res.borrow_mut().push(Diagnostic { |
33 | message: d.message(), | 33 | message: d.message(), |
34 | range: d.syntax_node().range(), | 34 | range: d.highlight_range(), |
35 | severity: Severity::Error, | 35 | severity: Severity::Error, |
36 | fix: None, | 36 | fix: None, |
37 | }) | 37 | }) |
@@ -46,7 +46,7 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic> | |||
46 | cursor_position: None, | 46 | cursor_position: None, |
47 | }; | 47 | }; |
48 | res.borrow_mut().push(Diagnostic { | 48 | res.borrow_mut().push(Diagnostic { |
49 | range: d.syntax_node().range(), | 49 | range: d.highlight_range(), |
50 | message: d.message(), | 50 | message: d.message(), |
51 | severity: Severity::Error, | 51 | severity: Severity::Error, |
52 | fix: Some(fix), | 52 | fix: Some(fix), |