mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
fix: place type inlay hints after the item and without left-padding
This commit is contained in:
parent
2f8cd66fb4
commit
22599adf9b
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue