I try to use the Xtext based LanguageServerImpl. The following code shows how I implemented the LSP4J in the context of Xtext:
LanguageServerImpl server = injector.getInstance(LanguageServerImpl.class);
launcher = LSPLauncher.createServerLauncher(server, in, out);
LanguageClient client = launcher.getRemoteProxy();
Future<?> startListening = launcher.startListening();
First Question: What is the Language Client for when my Client is an Orion Editor Running on a separate Server?
I have a separated an Orion Editor running in a React Application. Now I want to start this Lsp Server(Xtext based holding a grammar) on a Backend. What kind of Json File should Orion pass to this Lsp Server using the Xtext LanguageServerImpl for validation and hover information? The way the code shows above, the Server is waiting for an InputStream. Using Lsp this InputStream passed by Orion should be a Json-File. Still I dont know how to invoke the validation or hover function of Xtext.
Hope someone can explain it, since the documentation is not helping at all.