Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Tuple struct with #derive shows field types as references in tooltip #380

Open
@doxxx

Description

@doxxx

Given the following example:

#[derive(Debug)]
struct Bar {
    i: usize,
}

#[derive(Debug)]
struct Foo(Bar);

The hover tooltip for Bar in the Foo definition shows &module_name::Bar. If I remove the #derive lines, it shows Bar { i } as expected.

Additionally, when the #derive lines are present, Go To Definition does not work for Bar in the Foo definition. Remove the #derive lines and it works. Similarly for Find All References.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-HighbugrlsIssue related to the RLS itself rather than the extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions