diff --git a/eglot.el b/eglot.el index 28e1e483..d68679c2 100644 --- a/eglot.el +++ b/eglot.el @@ -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) () @@ -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)))))