Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 22599ad

Browse files
committed
fix: place type inlay hints after the item and without left-padding
1 parent 2f8cd66 commit 22599ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/ide/src/inlay_hints/bind_pat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ pub(super) fn hints(
106106
kind: InlayKind::Type,
107107
label,
108108
text_edit,
109-
position: InlayHintPosition::Before,
110-
pad_left: !has_colon,
109+
position: InlayHintPosition::After,
110+
pad_left: false,
111111
pad_right: false,
112112
});
113113

crates/ide/src/inlay_hints/chaining.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ fn main() {
625625
[
626626
InlayHint {
627627
range: 124..130,
628-
position: Before,
629-
pad_left: true,
628+
position: After,
629+
pad_left: false,
630630
pad_right: false,
631631
kind: Type,
632632
label: [

0 commit comments

Comments
 (0)