internal: Improve inlay hint tooltips

This commit is contained in:
Lukas Wirth
2022-05-19 13:38:37 +02:00
parent 018975b041
commit 74230e26ff
4 changed files with 71 additions and 57 deletions

View File

@@ -1344,12 +1344,7 @@ pub(crate) fn handle_inlay_hints(
.inlay_hints(&inlay_hints_config, file_id, Some(range))?
.into_iter()
.map(|it| {
to_proto::inlay_hint(
&line_index,
&params.text_document,
inlay_hints_config.render_colons,
it,
)
to_proto::inlay_hint(&snap, &line_index, inlay_hints_config.render_colons, it)
})
.collect(),
))