-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: preview adt field when hover #15847
Conversation
Nit: we should probably match the standard Rust formatting ( |
Sure. Fixes have been pushed. |
bc0578f
to
46af7d3
Compare
Unrelated, let's test this little thing: @bors2 try |
@bors2 try |
feat: preview adt field when hover Closes #13977 ![20231108194345_rec_](https://github.com/rust-lang/rust-analyzer/assets/14040068/95894c4b-de6e-4ca4-98b3-6ab4559d0950)
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks, would you mind squashing? |
cccd8e7
to
41bcd54
Compare
Sure, already squashed. |
@bors r+ |
☀️ Test successful - checks-actions |
Related #3197, that is we might want to do something similar for enum (variants). |
I think we might want to expose a config for this, to enable, disable and maybe set a maximum field amount to render? Unsure, will probably see after having used this a bit. |
…eykril feat: add hover display for trait assoc items This PR enable preview assoc items when hover on `trait` ![image](https://github.com/rust-lang/rust-analyzer/assets/71162630/d9c3949c-33cf-4a32-aa97-3af46b28033a) inspired by #15847
Closes #13977