You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, a parameter inlay hint is automatically omitted using a series of heuristics defined here. This isn't referenced in the documentation at all, and while useful, also cannot be tweaked or disabled.
As a result it can appear that inlay hints for parameters are broken, since quite frequently these heuristics will match and they will be omitted.
I think an appropriate resolution would be to both document the heuristics being used (something I'm planning to PR in a moment), and to allow disabling these heuristics. Ideally each heuristic could be individually disabled and/or configured but a global disable for the heuristic omission would also be ideal.
The text was updated successfully, but these errors were encountered:
Lunaphied
added a commit
to Lunaphied/rust-analyzer
that referenced
this issue
Jun 16, 2024
These are not currently documented and could cause users to think
that their rust-analyzer configuration is broken.
Partially addresses rust-lang#17433.
…kril
docs: document omission heuristics for parameter inlay hints
These are not currently documented and could cause users to think that their rust-analyzer configuration is broken.
Partially addresses #17433.
Right now, a parameter inlay hint is automatically omitted using a series of heuristics defined here. This isn't referenced in the documentation at all, and while useful, also cannot be tweaked or disabled.
As a result it can appear that inlay hints for parameters are broken, since quite frequently these heuristics will match and they will be omitted.
I think an appropriate resolution would be to both document the heuristics being used (something I'm planning to PR in a moment), and to allow disabling these heuristics. Ideally each heuristic could be individually disabled and/or configured but a global disable for the heuristic omission would also be ideal.
The text was updated successfully, but these errors were encountered: