Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Use Language Server Xtext
Use Language Server Xtext [message #1822682] Wed, 11 March 2020 06:51 Go to next message
Eclipse UserFriend
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 11:06 Go to previous message
Eclipse UserFriend
i dont know of any orion support for LSP do you?
Previous Topic:Test generated code that includes Maven dependencies
Next Topic:Token Splitting via custom lexer?
Goto Forum:
  


Current Time: Sun Jul 06 23:16:28 EDT 2025

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

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

Back to the top