Skip to content

Commit c312f3a

Browse files
wenhoujxWenshuai Hou
andauthored
update a java option. (#333)
* Update: lsp-java.el * Update: lsp-java.el Co-authored-by: Wenshuai Hou <whou@palantir.com>
1 parent b6f14d8 commit c312f3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lsp-java.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ usually)"
227227
:group 'lsp-java)
228228

229229
(defcustom lsp-java-selection-enabled t
230-
"Enable/disable the 'auto build'"
230+
"Enable/disable the selection range"
231231
:type 'boolean
232232
:group 'lsp-java)
233233

@@ -370,6 +370,7 @@ example 'java.awt.*' will hide all types from the awt packages."
370370
(declare-function projectile-project-root "ext:projectile")
371371
(declare-function helm-make-source "ext:helm-source")
372372

373+
;; see https://github.com/eclipse/eclipse.jdt.ls/blob/v1.1.2/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java
373374
(lsp-register-custom-settings
374375
`(("java.codeGeneration.toString.limitElements" lsp-java-code-generation-to-string-limit-elements)
375376
("java.codeGeneration.toString.listArrayContents" lsp-java-code-generation-to-string-list-array-contents t)
@@ -393,7 +394,7 @@ example 'java.awt.*' will hide all types from the awt packages."
393394
("java.completion.enabled" lsp-java-completion-enabled t)
394395
("java.maxConcurrentBuilds" lsp-java-max-concurrent-builds)
395396
("java.autobuild.enabled" lsp-java-autobuild-enabled t)
396-
("java.selection.enabled" lsp-java-autobuild-enabled t)
397+
("java.selectionRange.enabled" lsp-java-selection-enabled t)
397398
("java.contentProvider.preferred" lsp-java-content-provider-preferred)
398399
("java.import.exclusions" lsp-java-import-exclusions)
399400
("java.saveActions.organizeImports" lsp-java-save-actions-organize-imports t)

0 commit comments

Comments
 (0)