csharp-language-server icon indicating copy to clipboard operation
csharp-language-server copied to clipboard

Inlay hints support?

Open theoparis opened this issue 3 years ago • 4 comments

Unfortunately this language server does not seem to support inlay hints.

Below is an example image from google on inlay hints in Rust with neovim:

image

Here is an ongoing issue on omnisharp supporting this as well.

theoparis avatar Mar 21 '22 03:03 theoparis

Please correct me if I'm wrong, but this "inlay hints" feature is not mapped by LSP protocol yet, right?

  • https://microsoft.github.io/language-server-protocol/specifications/specification-current/

I was reading through it and I don't see it. If you could point me to it then I could try to figure out. Otherwise we'd need to implement a custom extension to LSP which I am reluctant to do yet since it would involve editor changes too and we still have things to implement in LSP spec yet for csharp-ls.

razzmatazz avatar Mar 21 '22 19:03 razzmatazz

Oh, I think you're right. Rust analyzer apparently uses a workaround seen here: https://github.com/microsoft/language-server-protocol/issues/956. It seems like the language server protocol doesn't have this in the specification but VSCode has an api for it...

theoparis avatar Mar 21 '22 22:03 theoparis

Vscode has an API for it now. That pr has been merged.https://github.com/microsoft/language-server-protocol/issues/956

Decodetalkers avatar Apr 17 '22 04:04 Decodetalkers

I'd still have to wait for the neovim PR to be merged as well. https://github.com/neovim/neovim/issues/18086

theoparis avatar Apr 17 '22 04:04 theoparis