Rust analyzer and type aliases

Hi,

I was reading
https://users.rust-lang.org/t/is-there-a-way-to-make-rust-analyzer-to-use-type-aliases/53895

and I am in the exact same situation, where lens show the final type and not the overriden type by the use.

When you have

type MyType = u32

RA inlay lens shows u32 when it should show MyType

Just a quick question: if there are RA devs around here, do you think it is something that could happen?

It is really handy.
I use that a lot as hashmaps keys, or other long types (sometimes, you have to) that hinder the readability

Thanks,
( I ask here because I know many people are orbiting around this forum)

The canonical issue for this is Type annotations "look through" typedefs, which can be confusing. · Issue #1666 · rust-lang/rust-analyzer · GitHub I don't think it will be solved any time soon.

Thanks for your answer bjorn

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.