-
Notifications
You must be signed in to change notification settings - Fork 126
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
Support inlay hints #685
Comments
2¢ after seeing what the inlay hint support looks like via #1159:
Just as an example, the screenshot from @ #1159 (comment) demonstrates what inlays will look like for a top-level function definition: Comparing what needs to be parsed for the inlay approach (including all of the always-variable parameter names, etc):
seems obviously more difficult to parse than the always-familiar notation for OCaml function signatures, It feels like there's a best of both worlds to be had here: inlays for locals, and the familiar format and display for all function definitions (even local functions, perhaps using line-level lenses?). (I guess that was more like $2 than 2¢, alas 😳) |
I don’t think there’s an issue with keeping the code lenses if people like them. Iirc they were disabled in response to complaints, but a number of people have mentioned that they’d like them back. (Also, they should be possible to enable on the client side. No code has actually been removed; they’re just off by default.) It’s certainly possible to use both lenses and inlay hints. |
Just chiming in to say I really like code lens and want it to stay. I don’t understand the argument for disabling it in the lsp, in vim I can just disable whether or not to display it with a config option? |
Inlay hints support was added to LSP 3.17:
What's an inlay hint?
See https://code.visualstudio.com/docs/languages/typescript#_inlay-hints
What's in it for us?
Having type annotations for local definitions as inlay hints would be very nice.
It's not an urgent but quite useful feature, IMO.
References:
The text was updated successfully, but these errors were encountered: