Increase Highlights highlight range to covering element

This commit is contained in:
Lukas Wirth 2021-02-04 11:37:14 +01:00
parent 81a9ad3672
commit 34d5d77cfa

View File

@ -72,7 +72,7 @@ pub(crate) fn highlight(
}
};
let mut hl = highlights::Highlights::new(range_to_highlight);
let mut hl = highlights::Highlights::new(root.text_range());
traverse(&mut hl, &sema, &root, range_to_highlight, syntactic_name_ref_highlighting);
hl.to_vec()
}