Initial commit of highlight related configuration w/ implementation.

This commit is contained in:
Kevin DeLorey
2021-07-21 19:44:16 -06:00
parent 1dd1814100
commit b75e0e7bb1
6 changed files with 78 additions and 10 deletions

View File

@@ -1188,7 +1188,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_related(position)? {
let refs = match snap.analysis.highlight_related(snap.config.highlight_related(), position)? {
None => return Ok(None),
Some(refs) => refs,
};