From bda6135b3b884110e39e7ada3c567f0f6cd46871 Mon Sep 17 00:00:00 2001 From: zbelial Date: Fri, 14 Jan 2022 17:41:49 +0800 Subject: [PATCH] Rename eglot-java-vmargs and rewrite its docstring. * eglot.el (eglot-eclipse-jdt-vmargs): Rename from eglot-java-vmargs. --- eglot.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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)))))