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

Inlay hints (aka Parameter hints) #557

Open
jestarray opened this issue Apr 18, 2022 · 0 comments
Open

Inlay hints (aka Parameter hints) #557

jestarray opened this issue Apr 18, 2022 · 0 comments

Comments

@jestarray
Copy link

jestarray commented Apr 18, 2022

jeapostrophe/racket-langserver#29

Inlay Hints

(bug regarding wrong argument order)
racket/racket@96f26e0

Rendering inlay hints would be very useful, eliminating a lot of the guess work of function arguments and struct fields without needing to look at the documentation or the definition again and in the case of structs, creating functions with keyword arguments to see what the fields are.

(struct person (firstname middlename lastname age job))

; when constructing, it will render the field names as a sort of "background image", 
; the code that actually is ran is the valid amount of arguments, so (person "bob" "j" "smith" 20 "programmer")

(person firstname "bob" middlename "j" lastname "smith" age 20 job "programmer")
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

No branches or pull requests

1 participant