Skip to content
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

Heuristics for omitting parameter inlay hints are not documented nor are they configurable #17433

Open
Lunaphied opened this issue Jun 16, 2024 · 0 comments
Labels
A-config configuration

Comments

@Lunaphied
Copy link
Contributor

Lunaphied commented Jun 16, 2024

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.

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.
bors added a commit that referenced this issue Jun 17, 2024
…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.
@Veykril Veykril added the A-config configuration label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config configuration
Projects
None yet
Development

No branches or pull requests

2 participants