Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Use Language Server Xtext
Use Language Server Xtext [message #1822682] Wed, 11 March 2020 10:51 Go to next message
Cessa Freschko is currently offline Cessa FreschkoFriend
Messages: 1
Registered: March 2020
Junior Member
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();
 server.connect(client);
		
 Future<?> startListening = launcher.startListening();


First Question: What is the Language Client for when my Client is an Orion Editor Running on a separate Server?

Second Question:
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.
Re: Use Language Server Xtext [message #1822695 is a reply to message #1822682] Wed, 11 March 2020 15:06 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
i dont know of any orion support for LSP do you?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Test generated code that includes Maven dependencies
Next Topic:Token Splitting via custom lexer?
Goto Forum:
  


Current Time: Thu Apr 25 09:59:40 GMT 2024

Powered by FUDForum. Page generated in 0.02699 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top