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

Hovering for argument labels #3849

Closed
GearsDatapacks opened this issue Nov 19, 2024 · 0 comments · Fixed by #3850
Closed

Hovering for argument labels #3849

GearsDatapacks opened this issue Nov 19, 2024 · 0 comments · Fixed by #3850

Comments

@GearsDatapacks
Copy link
Member

GearsDatapacks commented Nov 19, 2024

Currently, hovering on the label of an argument shows the type of the whole function/pattern. I would expect it to behave the same as hovering over the argument value itself.

For example:

fn add(wibble a, wobble b) {
  a + b
}

fn main() {
  add(wibble: 1, wobble: 2)
  //          ^ Hovering here correctly shows `Int`
  add(wibble: 1, wobble: 2)
  //  ^ Hovering here shows `fn(Int, Int) -> Int`, but it should probably also show `Int`
}

I already have a mostly working implementation for this but I thought I'd make an issue first

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

Successfully merging a pull request may close this issue.

1 participant