Currently, the only CodeLenses that rust-analyzer shows are Run above fn main(), Run Test | Debug above tests, and n implementations above struct, enum, union and trait definitions. A useful addition to this would be a CodeLens of the form n references above definitions where this makes sense. When clicked, this CodeLens would show all the references to the symbol the definition defines.
Here鈥檚 a list of some possible definitions above which the references CodeLens could be shown:
It _might_ be a good idea to show the CodeLens above enum variant definitions as well as struct and union field definitions, but that might be a bit much.
I'm working on it.
Most helpful comment
I'm working on it.