Closed adj5672 closed 1 year ago
Yes it's possible, but you'll need the remote ext host server
On the server:
npm install -g @codingame/monaco-vscode-server
vscode-ext-host-server
On the client:
remoteAuthority
of the server to the environment service override as parameterregisterExtension(extensionManifest, ExtensionHostKind.Remote, {
path: <path on the extension on the server>
})
extensionManifest is the content of the packageJson of the extension, and the extension path should point to the extension subdirectory containing the package.json
@CGNonofr thanks for your answer :)
I have some additional questions.
My understanding is that I need 3 servers. client server, language server and remote extension host server. is it correct?
my client server's host is http://localhost:3000 and language server is ws://localhost:30000/java.
when I run vscode-ext-host-server, it seems open with localhost:8000.
then, Is remoteAuthority localhost:8000??
When I request to localhost:8000, response is 403 forbidden.. 🥲
(Run with --without-connection-token option, response turn to be 'not found ')
In my code, I set userServices like this. and I cannot understand how I provide remoteAuthority to the environment service override as parameter... 🥲
Is there any remote ext host example that I can refer to??
What is the "client" server ? The vscode extension already includes the language client/server, you don't need anything else
You need the environment service override to set the remoteAuthority
The demo here demonstates it on a simple remote extension
What I meant by client server was langauge client.. 😅
I registered service override like this and extension host looks like works. :) thanks @CGNonofr
The following warning log also occurred. Is there any problem?
Red Hat Java extension seems to have been applied well.. But lombok doesn't seem to apply. 🥲
In my language servers, after set vmargs javaagent lombok path, it perfectly works!!
-javaagent:path-to-lombok-jar -Xbootclasspath/a:path-to-lombok-jar
Thanks :)
I'm using monaco-vscode-api and monaco-languageclient to edit Java code with monaco editor. (with @codingame default java extension)
I have my own language server based on eclipse.jdt.ls and pretty works well like this.
but, there's something I want to register extensions.
It's vscode-lombok..
since my language server has lombok dependency, so annotations of lombok can auto complete. but, getter and setter method can not be recognized..
I think that if I register vscode-lombok extension then it may works well.. (since lombok extension use redhat java extension, java extension have to register too..) I don't know how to register extension using registerExtension method..
Is it possible..?? and if possible, how I register that extension... 🥲