summaryrefslogtreecommitdiff
path: root/support/texlab/src/db/diagnostics/log.rs
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-03-13 03:04:43 +0000
committerNorbert Preining <norbert@preining.info>2023-03-13 03:04:43 +0000
commite3c18c7072eebabaa706008b7fa42c73ec2ff83e (patch)
treebdd26a908e2baa0a97a38169346e53b9e6e51944 /support/texlab/src/db/diagnostics/log.rs
parentb3d8df92a44aa1df24a0869d728b45b0baeaa54c (diff)
CTAN sync 202303130304
Diffstat (limited to 'support/texlab/src/db/diagnostics/log.rs')
-rw-r--r--support/texlab/src/db/diagnostics/log.rs4
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