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
Improve OnHover for Def/Let, App and Const #986
Conversation
I have rebased on the AST with types (#991) in the branch @byorgey and @kostmo feel free to test it. 🙂 The results look quite nice: Local variables
Tuples
Literal typesAll literals and constants get a type header.
Delay |
* add signature to const * add signature to var * add signature to let/def * unfold function application * hide internal force applications * fix indenting for multiline text The typing is not really correct and only works for top-level variables. That still gives us all defined variable types in call sites, which I hope will be useful. Just don't overwrite the names.
turns out it was never needed
@kostmo please take a look at this again, I have changed quite a lot after rebasing on the AST types. 😉 EDIT: The test failure is just an import problem with doctest, I will fix it soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! 🚢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@byorgey it seems emacs has a different take on markdown. 😕 It should be easy to tweak by adding newlines, but I don't have emacs set up. 😅 |
@xsebek no worries, maybe I can poke at it a bit. |
It seems emacs can render triple backtick code in lists, but if it turns out to be an issue, I can restore my original code. At some point, I had an extra parameter for "depth" that used single backticks in lists. It did not have nice syntax highlighting but it might render better for emacs. It was making the code a bit messy, so it's best avoided if possible. 😅 |
SrcLoc
info with variable binding sites #993