mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Rename 'document_highlight' to 'highlight_related'
This commit is contained in:
parent
b26a8ecca1
commit
14b66bb458
4 changed files with 51 additions and 19 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue