Make it possible to override JAVA_OPTS directly in the extension #121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you run Visual Studio Code from a shell, this might seem redundant. If it is run directly from a GUI on the other hand, it might be difficult for some users to be able to set their
JAVA_OPTS
and have VSCode pick it up. One example is OS X where many environment variables are not sent if run through Spotlight. (yeah, I know it is possible to tweak, but let's make it more user friendly than that!). This PR aims to make it super easy for people to be able to configure their Java options by need. One big example is to combat issues like #120 and fwcd/kotlin-language-server#441 with a custom heap size setting:It might also help users who want to tweak other settings easily like the garbage collector being used. Computers with beefy CPUs might have owners who want to use the parallel garbage collector to limit heap size at the cost of CPU usage with
-XX:+UseParallelGC
.