Sublime Forum

Inlay hints

#1

There could be something I’m missing but it doesn’t seem like sublime text supports inlay hints and I cannot find a plugin that does either. Is support planned for them either in sublime text or a plugin?

0 Likes

#2

In what context are you seeking inlay hints?

0 Likes

#3

For writing rust code; the rust analyzer (and maybe rls?) can provide inlay hints in the form of type info for rust code, but I can’t actually see those hints in sublime text, whereas in VS Code, for example, they do show up.

0 Likes

#4

Are you using rust-analyzer via LSP?

0 Likes

#5

Yeah, is there another package that would do this better? I am also using the RustEnhanced package.

0 Likes

#6

It’s not a standard request so we don’t implement it in the base LSP package https://github.com/microsoft/language-server-protocol/issues/956

0 Likes

#7

This is a major blocker for me using ST at the moment (together with rust), I’m wondering if inlay hints are just not supported/ possible in ST or if the LSP package could (at least in theory/ if it wanted) support this extension and thus bring ST to the same level as VSCode in this aspect.

Inlay hints are valuable in rust for both type annotations and parameter names which get displayed at the callside.

0 Likes

#8

There’s effort to standardize it now: https://github.com/microsoft/language-server-protocol/pull/1249

1 Like

#9

Appears that this ended up being standardised here: https://github.com/microsoft/language-server-protocol/commit/c63b5f5266b3ffc1c83747f782cc70f0fa1e38e8

0 Likes

#10

It’s also part of the LSP package now. You can enable it with a boolean in the settings.

0 Likes