fix: place type inlay hints after the item and without left-padding

This commit is contained in:
Alexis (Poliorcetics) Bourget 2023-05-16 15:00:23 +02:00
parent 2f8cd66fb4
commit 22599adf9b
2 changed files with 4 additions and 4 deletions

View file

@ -106,8 +106,8 @@ pub(super) fn hints(
kind: InlayKind::Type,
label,
text_edit,
position: InlayHintPosition::Before,
pad_left: !has_colon,
position: InlayHintPosition::After,
pad_left: false,
pad_right: false,
});

View file

@ -625,8 +625,8 @@ fn main() {
[
InlayHint {
range: 124..130,
position: Before,
pad_left: true,
position: After,
pad_left: false,
pad_right: false,
kind: Type,
label: [