Skip to content

Remove duplicate defcustom definitions #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
257 changes: 0 additions & 257 deletions lsp-java.el
Original file line number Diff line number Diff line change
Expand Up @@ -1755,263 +1755,6 @@ Visual Studio Code - Insiders."
:type 'boolean
:lsp-path "java.refactoring.extract.interface.replace")

(lsp-defcustom lsp-java-import-maven-offline-enabled nil
"Enable/disable the Maven offline mode."
:type 'boolean
:lsp-path "java.import.maven.offline.enabled")

(lsp-defcustom lsp-java-import-maven-disable-test-classpath-flag nil
"Enable/disable test classpath segregation. When enabled, this
permits the usage of test resources within a Maven project as
dependencies within the compile scope of other projects."
:type 'boolean
:lsp-path "java.import.maven.disableTestClasspathFlag")

(lsp-defcustom lsp-java-import-gradle-annotation-processing-enabled t
"Enable/disable the annotation processing on Gradle projects and
delegate Annotation Processing to JDT APT. Only works for Gradle
5.2 or higher."
:type 'boolean
:lsp-path "java.import.gradle.annotationProcessing.enabled")

(lsp-defcustom lsp-java-eclipse-download-sources nil
"Enable/disable download of Maven source artifacts for Eclipse
projects."
:type 'boolean
:lsp-path "java.eclipse.downloadSources")

(lsp-defcustom lsp-java-signature-help-description-enabled nil
"Enable/disable to show the description in signature help."
:type 'boolean
:lsp-path "java.signatureHelp.description.enabled")

(lsp-defcustom lsp-java-configuration-maven-global-settings nil
"Path to Maven's global settings.xml"
:type 'string
:lsp-path "java.configuration.maven.globalSettings")

(lsp-defcustom lsp-java-configuration-maven-not-covered-plugin-execution-severity "warning"
"Specifies severity if the plugin execution is not covered by Maven build lifecycle."
:type '(choice (:const "ignore") (:const "warning") (:const "error"))
:lsp-path "java.configuration.maven.notCoveredPluginExecutionSeverity")

(lsp-defcustom lsp-java-configuration-maven-default-mojo-execution-action "ignore"
"Specifies default mojo execution action when no associated metadata can be detected."
:type '(choice (:const "ignore") (:const "warn") (:const "error") (:const "execute"))
:lsp-path "java.configuration.maven.defaultMojoExecutionAction")

(lsp-defcustom lsp-java-configuration-workspace-cache-limit 90
"The number of days (if enabled) to keep unused workspace cache
data. Beyond this limit, cached workspace data may be removed."
:type '(repeat nil)
:lsp-path "java.configuration.workspaceCacheLimit")

(lsp-defcustom lsp-java-import-generates-metadata-files-at-project-root nil
"Specify whether the project metadata files(.project, .classpath,
.factorypath, .settings/) will be generated at the project root.
Click [HERE](command:_java.metadataFilesGeneration) to learn how
to change the setting to make it take effect."
:type 'boolean
:lsp-path "java.import.generatesMetadataFilesAtProjectRoot")

(lsp-defcustom lsp-java-project-output-path ""
"A relative path to the workspace where stores the compiled
output. `Only` effective in the `WORKSPACE` scope. The setting
will `NOT` affect Maven or Gradle project."
:type '(repeat string)
:lsp-path "java.project.outputPath")

(lsp-defcustom lsp-java-project-source-paths nil
"Relative paths to the workspace where stores the source files.
`Only` effective in the `WORKSPACE` scope. The setting will `NOT`
affect Maven or Gradle project."
:type 'lsp-string-vector
:lsp-path "java.project.sourcePaths")

(lsp-defcustom lsp-java-recommendations-dependency-analytics-show t
"Show the recommended Dependency Analytics extension."
:type 'boolean
:lsp-path "java.recommendations.dependency.analytics.show")

(lsp-defcustom lsp-java-completion-postfix-enabled t
"Enable/disable postfix completion support.
`#editor.snippetSuggestions#` can be used to customize how
postfix snippets are sorted."
:type 'boolean
:lsp-path "java.completion.postfix.enabled")

(lsp-defcustom lsp-java-completion-match-case "auto"
"Specify whether to match case for code completion."
:type '(choice (:const "auto") (:const "firstLetter") (:const "off"))
:lsp-path "java.completion.matchCase")

(lsp-defcustom lsp-java-completion-lazy-resolve-text-edit-enabled t
"[Experimental] Enable/disable lazily resolving text edits for
code completion."
:type 'boolean
:lsp-path "java.completion.lazyResolveTextEdit.enabled")

(lsp-defcustom lsp-java-code-generation-insertion-location "afterCursor"
"Specifies the insertion location of the code generated by source
actions."
:type '(choice (:const "afterCursor") (:const "beforeCursor") (:const "lastMember"))
:lsp-path "java.codeGeneration.insertionLocation")

(lsp-defcustom lsp-java-templates-file-header nil
"Specifies the file header comment for new Java file. Supports
configuring multi-line comments with an array of strings, and
using ${variable} to reference the [predefined
variables](command:_java.templateVariables)."
:type 'lsp-string-vector
:lsp-path "java.templates.fileHeader")

(lsp-defcustom lsp-java-templates-type-comment nil
"Specifies the type comment for new Java type. Supports
configuring multi-line comments with an array of strings, and
using ${variable} to reference the [predefined
variables](command:_java.templateVariables)."
:type 'lsp-string-vector
:lsp-path "java.templates.typeComment")

(lsp-defcustom lsp-java-references-include-accessors t
"Include getter, setter and builder/constructor when finding
references."
:type 'boolean
:lsp-path "java.references.includeAccessors")

(lsp-defcustom lsp-java-references-include-decompiled-sources t
"Include the decompiled sources when finding references."
:type 'boolean
:lsp-path "java.references.includeDecompiledSources")

(lsp-defcustom lsp-java-type-hierarchy-lazy-load nil
"Enable/disable lazy loading the content in type hierarchy. Lazy
loading could save a lot of loading time but every type should be
expanded manually to load its content."
:type 'boolean
:lsp-path "java.typeHierarchy.lazyLoad")

(lsp-defcustom lsp-java-settings-url nil
"Specifies the url or file path to the workspace Java settings.
See [Setting Global
Preferences](https://github.com/redhat-developer/vscode-java/wiki/Settings-Global-Preferences)"
:type 'string
:lsp-path "java.settings.url")

(lsp-defcustom lsp-java-symbols-include-source-method-declarations nil
"Include method declarations from source files in symbol search."
:type 'boolean
:lsp-path "java.symbols.includeSourceMethodDeclarations")

(lsp-defcustom lsp-java-quickfix-show-at "line"
"Show quickfixes at the problem or line level."
:type '(choice (:const "line") (:const "problem"))
:lsp-path "java.quickfix.showAt")

(lsp-defcustom lsp-java-inlay-hints-parameter-names-enabled "literals"
"Enable/disable inlay hints for parameter names:
```java

Integer.valueOf(/* s: */ '123', /* radix: */ 10)

```
`#java.inlayHints.parameterNames.exclusions#` can be used to disable the inlay hints for methods."
:type '(choice (:const "none") (:const "literals") (:const "all"))
:lsp-path "java.inlayHints.parameterNames.enabled")

(lsp-defcustom lsp-java-inlay-hints-parameter-names-exclusions nil
"The patterns for the methods that will be disabled to show the
inlay hints. Supported pattern examples:
- `java.lang.Math.*` - All the methods from java.lang.Math.
- `*.Arrays.asList` - Methods named as 'asList' in the types named as 'Arrays'.
- `*.println(*)` - Methods named as 'println'.
- `(from, to)` - Methods with two parameters named as 'from' and 'to'.
- `(arg*)` - Methods with one parameter whose name starts with 'arg'."
:type 'lsp-string-vector
:lsp-path "java.inlayHints.parameterNames.exclusions")

(lsp-defcustom lsp-java-project-encoding "ignore"
"Project encoding settings"
:type '(choice (:const "warning") (:const "setDefault"))
:lsp-path "java.project.encoding")

(lsp-defcustom lsp-java-jdt-ls-lombok-support-enabled t
"Whether to load lombok processors from project classpath"
:type 'boolean
:lsp-path "java.jdt.ls.lombokSupport.enabled")

(lsp-defcustom lsp-java-jdt-ls-protobuf-support-enabled t
"Specify whether to automatically add Protobuf output source
directories to the classpath.

**Note:** Only works for Gradle `com.google.protobuf` plugin `0.8.4` or higher."
:type 'boolean
:lsp-path "java.jdt.ls.protobufSupport.enabled")

(lsp-defcustom lsp-java-jdt-ls-android-support-enabled "auto"
"[Experimental] Specify whether to enable Android project
importing. When set to `auto`, the Android support will be
enabled in Visual Studio Code - Insiders.

**Note:** Only works for Android Gradle Plugin `3.2.0` or higher."
:type '(choice (:const "on") (:const "off"))
:lsp-path "java.jdt.ls.androidSupport.enabled")

(lsp-defcustom lsp-java-code-action-sort-members-avoid-volatile-changes t
"Reordering of fields, enum constants, and initializers can result
in semantic and runtime changes due to different initialization
and persistence order. This setting prevents this from occurring."
:type 'boolean
:lsp-path "java.codeAction.sortMembers.avoidVolatileChanges")

(lsp-defcustom lsp-java-compile-null-analysis-nonnull ["javax.annotation.Nonnull" "org.eclipse.jdt.annotation.NonNull" "org.springframework.lang.NonNull"]
"Specify the Nonnull annotation types to be used for null
analysis. If more than one annotation is specified, then the
topmost annotation will be used first if it exists in project
dependencies. This setting will be ignored if
`java.compile.nullAnalysis.mode` is set to `disabled`"
:type 'lsp-string-vector
:lsp-path "java.compile.nullAnalysis.nonnull")

(lsp-defcustom lsp-java-compile-null-analysis-nullable ["javax.annotation.Nullable" "org.eclipse.jdt.annotation.Nullable" "org.springframework.lang.Nullable"]
"Specify the Nullable annotation types to be used for null
analysis. If more than one annotation is specified, then the
topmost annotation will be used first if it exists in project
dependencies. This setting will be ignored if
`java.compile.nullAnalysis.mode` is set to `disabled`"
:type 'lsp-string-vector
:lsp-path "java.compile.nullAnalysis.nullable")

(lsp-defcustom lsp-java-compile-null-analysis-mode "interactive"
"Specify how to enable the annotation-based null analysis."
:type '(choice (:const "interactive") (:const "automatic"))
:lsp-path "java.compile.nullAnalysis.mode")

(lsp-defcustom lsp-java-cleanup-actions-on-save nil
"The list of clean ups to be run on the current document when it's
saved. Clean ups can automatically fix code style or programming
mistakes. Click [HERE](command:_java.learnMoreAboutCleanUps) to
learn more about what each clean up does."
:type 'lsp-string-vector
:lsp-path "java.cleanup.actionsOnSave")

(lsp-defcustom lsp-java-shared-indexes-enabled "auto"
"[Experimental] Specify whether to share indexes between different
workspaces. When set to `auto`, shared indexes will be enabled in
Visual Studio Code - Insiders."
:type '(choice (:const "on") (:const "off"))
:lsp-path "java.sharedIndexes.enabled")

(lsp-defcustom lsp-java-shared-indexes-location ""
"Specifies a common index location for all workspaces."
:type 'string
:lsp-path "java.sharedIndexes.location")

(lsp-defcustom lsp-java-refactoring-extract-interface-replace t
"Specify whether to replace all the occurrences of the subtype with the new extracted interface."
:type 'boolean
:lsp-path "java.refactoring.extract.interface.replace")

;; lsp-java run

(defvar lsp-lens-backends)
Expand Down