-
Notifications
You must be signed in to change notification settings - Fork 15
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 for textDocument/InlayHint
#595
Comments
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
textDocument/InlayHint
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
@FroMage @mkouba @maxandersen do you like this feature? Any ferdback ideas are welcome |
If that can be done reliably and without slowing down editing I'm all for it. very nice! |
I assume if type can't be inferred it just don't put any hint? |
No problem with that. InlayHint belongs to lsp specification. It works like codelens. If the compute of inlay hint takes time the will not be displayed but no problem with slow down
Yes I will record a demo to show more the inlay hint in action |
@maxandersen here a little demo: |
Looks very nice. Awesome! |
Glad it pleases you! |
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
So if the type info is not available it will just show nothing and cancel the computation in the background? |
Yes, you can see this behavior inthe demo when there is |
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
I like displaying the type on declaration, that makes sense (think |
At first there is a settings to show type for method parameter. Eclipse IDE provides this feature for parameter name (not type): |
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
@fbricon @maxandersen @mkouba do you think we should remove display of type for method parameter? Perhaps you would prefer displaying parameter name or nothing? |
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
I'm not sure but I think that displaying the parameter name would be a bit more practical as the param type is validated anyway, or? AFAIK ides show the param names on the left side too. |
Thanks for your feedback @mkouba ! |
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#595 Signed-off-by: azerr <azerr@redhat.com>
Fixes #595 Signed-off-by: azerr <azerr@redhat.com>
See redhat-developer/quarkus-ls#595 Signed-off-by: azerr <azerr@redhat.com>
Display the Java type of parameter name as inlay hint.
See inlay hints rendererd with gray background:
The text was updated successfully, but these errors were encountered: