summaryrefslogtreecommitdiff
path: root/support/texlab/src/features/highlight.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/features/highlight.rs')
-rw-r--r--support/texlab/src/features/highlight.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/support/texlab/src/features/highlight.rs b/support/texlab/src/features/highlight.rs
index e1aea6e2ad..386018f353 100644
--- a/support/texlab/src/features/highlight.rs
+++ b/support/texlab/src/features/highlight.rs
@@ -5,11 +5,12 @@ use lsp_types::{DocumentHighlight, DocumentHighlightParams};
use self::label::find_label_highlights;
-use super::FeatureRequest;
+use super::{cursor::CursorContext, FeatureRequest};
pub fn find_document_highlights(
request: FeatureRequest<DocumentHighlightParams>,
- token: &CancellationToken,
+ cancellation_token: &CancellationToken,
) -> Option<Vec<DocumentHighlight>> {
- find_label_highlights(&request, token)
+ let context = CursorContext::new(request);
+ find_label_highlights(&context, cancellation_token)
}