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

type hints still dont work after merge #77 #79

Closed
alexzanderr opened this issue Sep 1, 2022 · 6 comments
Closed

type hints still dont work after merge #77 #79

alexzanderr opened this issue Sep 1, 2022 · 6 comments

Comments

@alexzanderr
Copy link

hello again

type hints dont work, they are enabled by default in the plugin settings, everything else works

image

i have the latest LSP-rust-analyzer plugin which has rust-analyzer 28-08-2022 tag

~/.cache/sublime-text/Package Storage/LSP-rust-analyzer
> ./rust-analyzer --version
rust-analyzer 0.3.1186-standalone (e8e598f64 2022-08-28)

i have tried these compiler toolchains in combination with the language server

  • latest stable
  • latest nightly
  • nightly-2022-08-29 (same tag as the rust-analyzer)
    none of them works

what am i missing?

@rwols
Copy link
Member

rwols commented Sep 1, 2022

Do you have inlay hints enabled in ~/.config/sublime-text/User/LSP.sublime-settings?

    "show_inlay_hints": true,

@alexzanderr
Copy link
Author

wow, cant believe, its working now
image

thanks a lot.

but why its not enabled by default?

@alexzanderr
Copy link
Author

i know this is out of topic, but since are we already talking about type hints:

is it possible to change the colors? if yes, how?

@rchl
Copy link
Member

rchl commented Sep 2, 2022

but why its not enabled by default?

Because it's a matter of preference and not enabling it seems like a better default.
Also there are various bugs in ST regarding the feature that enables this - see Issues with phantoms used for Inlay Hints in sublimelsp/LSP#2007.

@alexzanderr
Copy link
Author

nice. thank you.

can i change the colors?

@rchl
Copy link
Member

rchl commented Sep 4, 2022

I'd say that there is no easy way currently. In theory there is a color scheme setting called "phantom_css" that is supposed to help with that but ST doesn't handle inheritance and merging of rules properly.

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

No branches or pull requests

3 participants