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, kind: InlayKind::Type,
label, label,
text_edit, text_edit,
position: InlayHintPosition::Before, position: InlayHintPosition::After,
pad_left: !has_colon, pad_left: false,
pad_right: false, pad_right: false,
}); });

View file

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