Skip to content

Commit 0d69750

Browse files
committed
Sync with latest settings
- fixes #248
1 parent 43ea412 commit 0d69750

File tree

1 file changed

+95
-1
lines changed

1 file changed

+95
-1
lines changed

lsp-java.el

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,107 @@ example 'java.awt.*' will hide all types from the awt packages."
408408
("java.configuration.checkProjectSettingsExclusions" lsp-java-configuration-check-project-settings-exclusions t)
409409
("java.errors.incompleteClasspath.severity" lsp-java-errors-incomplete-classpath-severity)
410410
("java.dependency.packagePresentation" lsp-java-dependency-package-representation)
411-
("java.completion.filteredTypes" lsp-java-completion-filtered-types)))
411+
("java.completion.filteredTypes" lsp-java-completion-filtered-types)
412+
("java.project.importHint" lsp-java-project-import-hint t)
413+
("java.project.importOnFirstTimeStartup" lsp-java-project-import-on-first-time-startup)
414+
("java.imports.gradle.wrapper.checksums" lsp-java-imports-gradle-wrapper-checksums)
415+
("java.refactor.renameFromFileExplorer" lsp-java-refactor-rename-from-file-explorer)
416+
("java.sources.organizeImports.staticStarThreshold" lsp-java-sources-organize-imports-static-star-threshold)
417+
("java.sources.organizeImports.starThreshold" lsp-java-sources-organize-imports-star-threshold)
418+
("java.server.launchMode" lsp-java-server-launch-mode)
419+
("java.configuration.runtimes" lsp-java-configuration-runtimes)
420+
("java.showBuildStatusOnStart.enabled" lsp-java-show-build-status-on-start-enabled t)
421+
("java.selectionRange.enabled" lsp-java-selection-range-enabled t)
422+
("java.completion.maxResults" lsp-java-completion-max-results)
423+
("java.project.referencedLibraries" lsp-java-project-referenced-libraries)
424+
("java.maven.updateSnapshots" lsp-java-maven-update-snapshots t)
425+
("java.import.gradle.user.home" lsp-java-import-gradle-user-home)
426+
("java.import.gradle.arguments" lsp-java-import-gradle-arguments)
427+
("java.import.gradle.offline.enabled" lsp-java-import-gradle-offline-enabled t)
428+
("java.import.gradle.java.home" lsp-java-import-gradle-java-home)
429+
("java.import.gradle.home" lsp-java-import-gradle-home)))
412430

413431
(defcustom lsp-java-inhibit-message t
414432
"If non-nil, inhibit java messages echo via `inhibit-message'."
415433
:type 'boolean
416434
:group 'lsp-mode)
417435

436+
(defcustom lsp-java-import-gradle-home nil
437+
"Use Gradle from the specified local installation directory or GRADLE_HOME if the Gradle wrapper is missing or disabled and no 'java.import.gradle.version' is specified."
438+
:type 'string)
439+
440+
(defcustom lsp-java-import-gradle-java-home nil
441+
"The location to the JVM used to run the Gradle daemon."
442+
:type 'string)
443+
444+
(defcustom lsp-java-import-gradle-offline-enabled nil
445+
"Enable/disable the Gradle offline mode."
446+
:type 'boolean)
447+
448+
(defcustom lsp-java-import-gradle-arguments nil
449+
"Arguments to pass to Gradle."
450+
:type 'string)
451+
452+
(defcustom lsp-java-import-gradle-user-home nil
453+
"Setting for GRADLE_USER_HOME."
454+
:type 'string)
455+
456+
(defcustom lsp-java-maven-update-snapshots nil
457+
"Force update of Snapshots/Releases."
458+
:type 'boolean)
459+
460+
(defcustom lsp-java-project-referenced-libraries ["lib/**/*.jar"]
461+
"Configure glob patterns for referencing local libraries to a
462+
Java project."
463+
:type
464+
'(repeat lsp-string-vector))
465+
466+
(defcustom lsp-java-completion-max-results 0
467+
"Maximum number of completion results (not including
468+
snippets).`0' (the default value) disables the limit, all results
469+
are returned. In case of performance problems, consider setting a
470+
sensible limit."
471+
:type 'number)
472+
473+
(defcustom lsp-java-selection-range-enabled t
474+
"Enable/disable Smart Selection support for Java. Disabling
475+
this option will not affect the VS Code built-in word-based and
476+
bracket-based smart selection."
477+
:type 'boolean)
478+
479+
(defcustom lsp-java-show-build-status-on-start-enabled nil
480+
"Automatically show build status on startup."
481+
:type 'boolean)
482+
483+
(defcustom lsp-java-configuration-runtimes nil
484+
"Map Java Execution Environments to local JDKs."
485+
:type 'lsp-string-vector)
486+
487+
(defcustom lsp-java-server-launch-mode "Hybrid"
488+
"The launch mode for the Java extension"
489+
:type '(choice (:tag "Standard" "LightWeight" "Hybrid")))
490+
491+
(defcustom lsp-java-sources-organize-imports-star-threshold 99
492+
"Specifies the number of imports added before a star-import declaration is used."
493+
:type 'number)
494+
495+
(defcustom lsp-java-sources-organize-imports-static-star-threshold 99
496+
"Specifies the number of static imports added before a star-import declaration is used."
497+
:type 'number)
498+
499+
(defcustom lsp-java-imports-gradle-wrapper-checksums nil
500+
"Defines allowed/disallowed SHA-256 checksums of Gradle Wrappers"
501+
:type 'lsp-string-vector)
502+
503+
(defcustom lsp-java-project-import-on-first-time-startup "automatic"
504+
"Specifies whether to import the Java projects, when opening the folder in Hybrid mode for the first time."
505+
:type '(choice (:tag "disabled" "interactive" "automatic")))
506+
507+
(defcustom lsp-java-project-import-hint t
508+
"Enable/disable the server-mode switch information, when Java
509+
projects import is skipped on startup."
510+
:type 'boolean)
511+
418512
(defvar lsp-java--download-root "https://raw.githubusercontent.com/emacs-lsp/lsp-java/master/install/")
419513

420514
(defun lsp-java--json-bool (param)

0 commit comments

Comments
 (0)