oni icon indicating copy to clipboard operation
oni copied to clipboard

Language server over TCP

Open zxiest opened this issue 8 years ago • 3 comments

As per https://langserver.org/ , language_server-ruby is very basic where as https://github.com/castwide/solargraph supports more capabilities.

Solargraph, however, only supports TCP; the author is suggesting he was getting more performant results over TCP vs stdio, this is why he kept TCP. ref: https://github.com/castwide/solargraph/issues/65

The author will take a look at stdio again but it would make sense for Oni to support TCP, especially it might be faster.

zxiest avatar Jun 24 '18 07:06 zxiest

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Jun 24 '18 07:06 oni-bot

Solargraph gem v0.23.2 includes the first version of the stdio transport. castwide/solargraph#65

castwide avatar Jul 05 '18 03:07 castwide

Thanks for logging the issue, @zxiest ! Would love for Oni to support TCP too - I believe that the performance is better (particularly on Windows).

If anyone is up for checking this out, here's where we connect to stdin/stdout today: https://github.com/onivim/oni/blob/3c6f8d4173c07f259fe5a14c1bb7d71cc888c085/browser/src/Services/Language/LanguageClientProcess.ts#L143

I think it'd just be a matter of adding a configuration for language server registration to pick the transport - and then update the code there to respect that configuration setting.

bryphe avatar Jul 05 '18 04:07 bryphe