Skip to content

Commit

Permalink
Rename eglot-java-vmargs and rewrite its docstring.
Browse files Browse the repository at this point in the history
* eglot.el (eglot-eclipse-jdt-vmargs): Rename from eglot-java-vmargs.
  • Loading branch information
zbelial committed Jan 14, 2022
1 parent fe07910 commit bda6135
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -3005,13 +3005,12 @@ If NOERROR, return predicate, else erroring function."

;;; eclipse-jdt-specific
;;;
(defcustom eglot-java-vmargs '("-XX:+UseParallelGC" "-XX:GCTimeRatio=4" "-XX:AdaptiveSizePolicyWeight=90" "-Dsun.zip.disableMemoryMapping=true" "-Xmx1G" "-Xms100m")
(defcustom eglot-eclipse-jdt-vmargs '()
"Specifies extra VM arguments used to launch the Java Language Server.
Eg. use `-noverify -Xmx1G -XX:+UseG1GC
-XX:+UseStringDeduplication` to bypass class
verification,increase the heap size to 1GB and enable String
deduplication with the G1 Garbage collector"
For example, if you are a Lombok user, you can specify the argument needed here.
You can also specify some arguments to reduce memory consumption.
See https://github.com/redhat-developer/vscode-java/pull/1262 for more details.
"
:type '(repeat string))

(defclass eglot-eclipse-jdt (eglot-lsp-server) ()
Expand Down Expand Up @@ -3096,7 +3095,7 @@ If INTERACTIVE, prompt user for details."
"-Declipse.application=org.eclipse.jdt.ls.core.id1"
"-Dosgi.bundles.defaultStartLevel=4"
"-Declipse.product=org.eclipse.jdt.ls.core.product"
,@eglot-java-vmargs
,@eglot-eclipse-jdt-vmargs
"-jar" ,jar
"-configuration" ,config
"-data" ,workspace)))))
Expand Down

0 comments on commit bda6135

Please sign in to comment.