minor: Pad type inlay hints if no colons are requested

This commit is contained in:
Lukas Wirth 2022-03-12 14:08:39 +01:00
parent 0b54d31359
commit 21af9ba4f0

View File

@ -437,7 +437,8 @@ pub(crate) fn inlay_hint(
},
tooltip: None,
padding_left: Some(match inlay_hint.kind {
InlayKind::TypeHint | InlayKind::ParameterHint => false,
InlayKind::TypeHint => !render_colons,
InlayKind::ParameterHint => false,
InlayKind::ChainingHint => true,
}),
padding_right: Some(match inlay_hint.kind {