Show accessible fields before methods in completion menu #10944
Unanswered
boxbeam
asked this question in
Troubleshooting
Replies: 2 comments
-
What version of rust-analyzer do u use? |
Beta Was this translation helpful? Give feedback.
0 replies
-
That happened to me for a day then stopped, it was strange. I'll have to try updating. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When typing
.
after a struct value in rust (with rust-analyzer LSP), you're shown a listing of all methods and fields. The fields are intermixed with the methods, leading me to usually have to scroll around a lot of (mostly derived) methods to find the fields I'm looking for. In many cases it ends up being faster to just navigate to the struct and see its fields, then type out the name of the one I need. It would be really nice if accessible struct fields would always show above methods.In the same vein, it would be really nice if direct-impl methods would show above trait methods.
Beta Was this translation helpful? Give feedback.
All reactions