fix: Allow configuration of colons in inlay-hints

This commit is contained in:
Lukas Wirth
2022-03-11 21:06:26 +01:00
parent 224a255c5a
commit 62265ee9cb
8 changed files with 40 additions and 10 deletions

View File

@@ -1331,11 +1331,12 @@ pub(crate) fn handle_inlay_hints(
)
})
.transpose()?;
let inlay_hints_config = snap.config.inlay_hints();
Ok(snap
.analysis
.inlay_hints(&snap.config.inlay_hints(), file_id, range)?
.inlay_hints(&inlay_hints_config, file_id, range)?
.into_iter()
.map(|it| to_proto::inlay_hint(&line_index, it))
.map(|it| to_proto::inlay_hint(inlay_hints_config.render_colons, &line_index, it))
.collect())
}