mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
minor: Pad type inlay hints if no colons are requested
This commit is contained in:
parent
0b54d31359
commit
21af9ba4f0
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue