-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: add hover display for trait assoc items #15938
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
feat: add hover display for trait assoc items #15938
Conversation
How does this look when hovering |
Looks like we don't display |
IMO hiding the documentation below this is not worth it, at least not by default. Or we should at least limit it (like rustdoc collapses the long list of methods). |
Agreed, if we do this we should at least have a config for limiting the number of items / disabling it fully, similarly how we should still do such a config for struct fields hover -> #15847 (comment) |
kind of ugly haha I may not want to browse the detail of it within a hover len |
☔ The latest upstream changes (presumably #16279) made this pull request unmergeable. Please resolve the merge conflicts. |
@Young-Flash what is the status on this PR? |
will continue working on this after my vacation |
cc620f6
to
675bd36
Compare
☔ The latest upstream changes (presumably #16606) made this pull request unmergeable. Please resolve the merge conflicts. |
675bd36
to
2e87f31
Compare
will do the same for hover |
Yes let's have a config for those as well |
will make it at next PR |
how about merge this for now (anything else I can do here?) |
@rustbot ready |
Thanks! (will do a minor adjustment as a follow up) |
☀️ Test successful - checks-actions |
internal: Adjust a few things for trait assoc item hovers #15938 (minor turned major wrt diff because of test changes)
This PR enable preview assoc items when hover on
trait
inspired by #15847