how to integrate java language server with monaco react editor #2384
-
Greetings, I wanted to integrate a java language server with react monaco editor, but unable to do after following documentation steps i got like this but from there i was not knowing on which port the server, and how to integrate with editor. jdt-language-server-1.9.0-202203031534$ java \
> -Declipse.application=org.eclipse.jdt.ls.core.id1 \
> -Dosgi.bundles.defaultStartLevel=4 \
> -Declipse.product=org.eclipse.jdt.ls.core.product \
> -Dlog.level=ALL \
> -noverify \
> -Xmx1G \
> --add-modules=ALL-SYSTEM \
> --add-opens java.base/java.util=ALL-UNNAMED \
> --add-opens java.base/java.lang=ALL-UNNAMED \
> -jar ./plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar \
> -configuration ./config_linux \
> -data . \
> -CLIENT_PORT=4000
Content-Length: 125
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"29-Dec-2022, 3:56:13 PM Main thread is waiting"}}
thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Looks like you've started the language server, and it's listening. However the editor needs some library (eg. https://github.com/TypeFox/monaco-languageclient ?) or configuration in order to connect to the server. Looks like there was some work done at #1933 . |
Beta Was this translation helpful? Give feedback.
-
I am doing a similar Editor running in ReactJS environment, trying to integrate with JAVA Language Server Can help, coordinate, post here some more updates if you have |
Beta Was this translation helpful? Give feedback.
Looks like you've started the language server, and it's listening. However the editor needs some library (eg. https://github.com/TypeFox/monaco-languageclient ?) or configuration in order to connect to the server.
Looks like there was some work done at #1933 .