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

Upstream Inlay Hints #75

Closed
wants to merge 1 commit into from
Closed

Conversation

minerscale
Copy link

@minerscale minerscale commented Aug 29, 2022

Now that LSP supports inlay hints, and rust-analyzer has upstreamed them it makes sense to upstream inlay hints too so we can finally use the latest version of rust-analyzer instead of the backdated version which uses the legacy system (#73).

There are a few things that need to happen before this PR is merged, I haven't updated the config files to expose all the new features in rust-analyzer as I am not sure what they are and inlay hints appear to still be a bit early days as they're a bit busted at least on my machine (see this comment).

I have gone ahead and removed all the relevant inlay hint code as it doesn't appear to be required with the new system. rust-analyzer.inlayHints.smallerHints appears to be broken as well. The other parameters relating to inlay hints seem to work though.

Inlay hints can be enabled in the latest github dev version of LSP by setting "show_inlay_hints": true in LSP's settings.

Thanks,
Aaron.

@minerscale minerscale marked this pull request as ready for review August 29, 2022 05:02
@rchl
Copy link
Member

rchl commented Aug 29, 2022

I appreciate your work but I think it will be more efficient if I just do this and more in a separate PR since we should also update settings and schema to match new server version.

@rchl rchl closed this Aug 29, 2022
plugin.py Show resolved Hide resolved
@rchl
Copy link
Member

rchl commented Aug 29, 2022

Replaced by #77

@minerscale
Copy link
Author

Cheers mate I'm glad it's being looked at!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants