Can we reference an external build of JDT-LS ? #3149
Replies: 2 comments 5 replies
-
There is no way to refer to another JDT-LS instance without either rebuilding a new vsix (probably the easiest way), or without replacing the contents of the installation location (eg. I'm not sure why either of the above approaches isn't enough, given that all of the state-based information/settings are stored in completely different areas. We could make a setting in vscode-java itself to allow using some external JDT-LS, but it seems unnecessary. |
Beta Was this translation helpful? Give feedback.
-
@mickaelistria @rgrunber You can also try the following:
You don't have to build Java LS. You can debug Java LS, use Hot code replace (HCR)... |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to test changes in upstream JDT or m2e down to VSCode-Java. As I have JDT-LS code locally and am comfortable playing with it, I can produce a JDT-LS build with the desired content.
Now I'm looking for a way to get VSCode-Java using this local build without having to build/install a local extensions and without tweaking the default deployment (I'd like to avoid playing with the internal filesystem of the extension to replace the server/ folder with alternative content or a symlink, so I keep easy access to default behavior by default). Ideally, I would hope for an environment variable I can set to reference an alternative location for JDT-LS and would use it when starting VSCode for testing purpose.
I couldn't find anything allowing to easily achieve that in the code; but I'm not much fluent with the codebase, so maybe I missed something... Did I miss something? If not, I will open an issue to suggest such a env variable for easier testing.
Beta Was this translation helpful? Give feedback.
All reactions