Skip to content
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

Provide links to type definitions in parameter hover menu #633

Open
not-my-profile opened this issue Sep 13, 2021 · 2 comments
Open

Provide links to type definitions in parameter hover menu #633

not-my-profile opened this issue Sep 13, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@not-my-profile
Copy link

type alias Person =
    { firstname : String }

getFirstname : Person -> String
getFirstname person =
    person.firstname

While hovering over person here does reveal person : Person the hover menu provides no link to the Person definition, which would be handy for functions that are so long that you need to scroll up to reach the type definition.

I'm assuming that because of a limitation with VS Code these types in the hover menu cannot be linked directly, but it would also be helpful if the links were provided below, like for example rust-analyzer does it:

goto_hover

@razzeee razzeee added the enhancement New feature or request label Sep 17, 2021
@razzeee
Copy link
Member

razzeee commented Sep 18, 2021

Your saying, Alt + Click on the Person in the annotation line is not an option? You could also right click it and choosing Go to definition.

@not-my-profile
Copy link
Author

I didn't give the best example. I am more thinking of e.g. an update function of an Elm app with many cases that are pattern matched. in the middle of the function you only have the variables from the pattern, there is no definition you can quickly jump to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants