-
-
Notifications
You must be signed in to change notification settings - Fork 392
Local binding hints (WIP) #4610
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
base: master
Are you sure you want to change the base?
Local binding hints (WIP) #4610
Conversation
Co-authored-by: fendor <[email protected]>
Now let and where clause will show binding type in inlay hints
4c79cba
to
5eae7ca
Compare
…to local-binding-hints
5eae7ca
to
9cde704
Compare
eede0e7
to
84673ac
Compare
properties = emptyProperties | ||
& defineEnumProperty #mode "Control how type lenses are shown" | ||
[ (Always, "Always displays type lenses of global bindings") | ||
, (Exported, "Only display type lenses of exported global bindings") | ||
, (Diagnostics, "Follows error messages produced by GHC about missing signatures") | ||
] Always | ||
& defineBooleanProperty #localBindingInlayHintOn | ||
"Display inlay hints of local bindings" |
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.
this needs a better explanation for documentation
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.
this may also be clearer as a three-way enum called localBindingHintsMode
with the options NoLocalHints
, UseInlayHints
, UseCodeLenses
.
happy to let others bikeshed this, though.
84673ac
to
a2759f6
Compare
"mode": "always" | ||
}, | ||
"globalOn": true | ||
"inlayHintsOn": true |
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.
regenerate these
continuation of #4368.
so far, I've merged in changes in master and updated things so they compile with ghc-9.12.
TODO:
update: this now allows either code lenses or inlay hints for local bindings. as we discussed, I've defaulted this to code lenses, with an optional toggle to flip on inlay hints instead. but the code lenses don't have their tests restored as yet. will reintroduce those tomorrow.