Skip to content

Display the concrete type of a expression/item. #14852

@Ciel-MC

Description

@Ciel-MC

I always find myself adding let a = in front of lines to see what type things are, like when using serde and want to check what error the method returns, which is very inconvenient.

The hover now only shows Deserializer::Error, it would be nice to have a way to show the concrete type of the expression/item hovered/the cursor is on, something like (Vec<u8>, Packet) -> Result<(), SomeSerializeError>.

I know inlay hints are a thing, but they aren't displayed/not always desired everywhere. Plus inlays hints on (neo)vim isn't very cut out for this purpose yet either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions