minor: Pad type inlay hints if no colons are requested
This commit is contained in:
parent
0b54d31359
commit
21af9ba4f0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user