Rename 'document_highlight' to 'highlight_related'

This commit is contained in:
Lukas Wirth 2021-06-23 14:56:40 +02:00
parent b26a8ecca1
commit 14b66bb458
4 changed files with 51 additions and 19 deletions

View file

@ -1168,7 +1168,7 @@ pub(crate) fn handle_document_highlight(
let position = from_proto::file_position(&snap, params.text_document_position_params)?;
let line_index = snap.file_line_index(position.file_id)?;
let refs = match snap.analysis.highlight_document(position)? {
let refs = match snap.analysis.highlight_related(position)? {
None => return Ok(None),
Some(refs) => refs,
};