Skip to content

Hover path does not correctly account for block scopes #18187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Veykril opened this issue Sep 25, 2024 · 0 comments · Fixed by #18206
Closed

Hover path does not correctly account for block scopes #18187

Veykril opened this issue Sep 25, 2024 · 0 comments · Fixed by #18206
Assignees
Labels
A-ide general IDE features C-bug Category: bug

Comments

@Veykril
Copy link
Member

Veykril commented Sep 25, 2024

Given

mod m {
    const _: () = {
        mod m2 {
            const C$0: () = ();
        }
    };
}

we get a hover path of <crate-name>, it ought to be <crate-name>::m::m2 though (that is also what module_path!() would yield)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ide general IDE features C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants