How to guide to create a client and server using a Service endpoint #911
Replies: 3 comments 4 replies
-
|
You can take LeMminX as example:
|
Beta Was this translation helpful? Give feedback.
-
|
@cmoulliard it seems you are developing a project based on JDT LS https://github.com/konveyor/java-analyzer-bundle In this case you need to create a mock LSP client which connects to JDT LS server and consume the standard |
Beta Was this translation helpful? Give feedback.
-
|
@cmoulliard Thank you for the feedback on the project's documentation! There is certainly room for improvement in this area.
Sounds like this might be what you are looking for: Implementing a JSON-RPC protocol with Eclipse LSP4J.
Do you have any specific suggestions to this end? Maybe it would be worth creating an issue with more details or even a PR with proposed changes?
Good catch. It should have been |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great to have a fully working guide based on this one https://github.com/eclipse-lsp4j/lsp4j/blob/main/documentation/jsonrpc.md in order to easily figure out how to create a service + endpoint and test it using a client and language server as the snippets provided within the guide are not enough and should be completed with a java main or java test class.
The guide should also better document how to generate the code for the xtend files: https://github.com/eclipse-lsp4j/lsp4j/blob/main/documentation/jsonrpc.md#lsp4j-json-rpc-generator
Remark: The guide is not up to date anymore as this method documented don't exist anymore
MyService proxy = ServiceEndpoints.toProxy(endpoint, MyService.class);Beta Was this translation helpful? Give feedback.
All reactions