|
Re: InMemory Language Server Protocol? [message #1767137 is a reply to message #1767128] |
Sat, 01 July 2017 20:17   |
|
Sure, the protocol will be still JSON-RPC, but within the same process. The server just accepts In/Out streams, that could be of course in-process. I'm not deep into LSP4E, but if I get it right the default implementation assumes that the language server is started in a separate process (see ProcessStreamConnectionProvider). You would have to implement your own StreamConnectionProvider and start the DSLs server in the same process.
|
|
|
Re: InMemory Language Server Protocol? [message #1767141 is a reply to message #1767137] |
Sat, 01 July 2017 23:23  |
David Black Messages: 33 Registered: June 2017 |
Member |
|
|
I've been tinkering around lately by "refactoring" the LSP4j LSP implementation to support other languages (a DSL of mine) and other messaging mechanisms, becausei if I remember well, right now only Java Sockets, Standard Streams and some native-bound sockets library are supported.
I might have missed many things, but I can't remember seeing the routines to start a different process.
Anyway I second what's been hinted by Karsten - begin around stream providers and implement your way through. Nothin impedes you from implementing everything within the same JVM process. You might need to refactor a good amount of code though to hook in your implementations (at least I needed to).
Good luck!
|
|
|
Powered by
FUDForum. Page generated in 0.01603 seconds