Using vscode.when i hover a enum,it can show its whole definition,when i hover a struct it can't,but a few days ago it works well

截图 2024-04-04 11-22-51

Might be due to feat: limit struct hover display nums by Young-Flash · Pull Request #16906 · rust-lang/rust-analyzer · GitHub, which requires rust-analyzer.hover.show.structFields should be set.

Edit: tested it. Yes, that's the setting. You should set it to a maximum number for displaying fields. If the amount of fields is more than that, extra fields are hidden as /* … */.

4 Likes

Solved!! Thank you for the help :wink: