diff options
Diffstat (limited to 'support/texlab/src/db/diagnostics/log.rs')
-rw-r--r-- | support/texlab/src/db/diagnostics/log.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/texlab/src/db/diagnostics/log.rs b/support/texlab/src/db/diagnostics/log.rs index 436999259b..368fd3fdcc 100644 --- a/support/texlab/src/db/diagnostics/log.rs +++ b/support/texlab/src/db/diagnostics/log.rs @@ -81,10 +81,10 @@ fn find_range_of_hint( error: &BuildError, ) -> Option<Range> { let document = workspace.lookup_uri(db, uri)?; - let text = document.contents(db).text(db); + let text = document.text(db); let line = error.line? as usize; let hint = error.hint.as_deref()?; - let line_index = document.contents(db).line_index(db); + let line_index = document.line_index(db); let line_start = line_index.newlines.get(line).copied()?; let line_end = line_index |