Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ide-dev] Language Server Protocol


Michael
I think ls-api is using System.out/in to communicate, however the example server code you are using is actually using named pipes (or unix domain sockets when available) to communicate.
I guess that is why you are running into trouble with the communication.
—
Gorkem

On 13 Jun 2016, at 12:34, Mickael Istria wrote:

On 06/10/2016 10:08 PM, Sven Efftinge (sven@xxxxxxxxxxx) wrote:
A Java implementation of the protocol, that is VS Code independent can be found here: https://github.com/TypeFox/ls-api It defines all the structures in Java interfaces and beans and takes care of the (de)serialization to/from json. It is currently used by Che, Xtext, and the a JavaC based java language server.
Thanks Sven.
I'm trying to use this API to connect to VSCode implementation of language server (shipped with VSCode or with https://github.com/Microsoft/vscode-languageserver-node ) . As I'm new to ls-api and not fluent enough in JS/TS to find out the connection strategy by reading the code from vscode-ls-node, I'm currently stuck at setting up the connection to this external language server. Does the ls-api allow connections to this external language server? In any case, do you have any example or hint of how to achieve that?
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets <http://twitter.com/mickaelistria>
_______________________________________________
ide-dev mailing list
ide-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ide-dev


Back to the top