-
Notifications
You must be signed in to change notification settings - Fork 408
Language Server Settings & Capabilities
Preferences are sent by a client to the server to indicate a particular behaviour. They are located mainly within Preferences.java
.
When a client sends a particular set of preferences, it will happen within a settings
object, with the form :
"java": {
"foo": {
"bar": {
"baz": "someValue"
}
}
}
You can see the list of settings at https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request .
Due to the many categories of options (and varying granularity), there are many that cannot be set directly as request from the client. In the case of Java compiler options, there is a setting java.settings.url
, which represents the location of a properties file (key-value paired) of some Java compiler options.
The list of options can also be viewed on the JavaCore.java
Javadoc page.
`org.eclipse.jdt.core.compiler.debug.localVariable` *Generating Local Variable Debug Attribute.* `{ "generate", "do not generate" }`
`org.eclipse.jdt.core.compiler.debug.lineNumber` *Generating Line Number Debug Attribute.* `{ "generate", "do not generate" }`
`org.eclipse.jdt.core.compiler.debug.sourceFile` *Generating Source Debug Attribute.* `{ "generate", "do not generate" }`
`org.eclipse.jdt.core.compiler.codegen.unusedLocal` *Preserving Unused Local Variables.* `{ "preserve", "optimize out" }`
`org.eclipse.jdt.core.compiler.codegen.methodParameters` *Generating Method Parameters Attribute.* `{ "generate", "do not generate" }`
`org.eclipse.jdt.core.compiler.codegen.targetPlatform` *Defining Target Java Platform.* `{ "1.1", "cldc1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "9", "10", "11" }`
`org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode` *Inline JSR Bytecode Instruction.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.doc.comment.support` *Javadoc Comment Support.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod` *Reporting Attempt to Override Package Visible Method.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.methodWithConstructorName` *Reporting Method With Constructor Name.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.deprecation` *Reporting Deprecation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.terminalDeprecation` *Reporting Terminal Deprecation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode` *Reporting Deprecation Inside Deprecated Code.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod` *Reporting Deprecation When Overriding Deprecated Method.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock` *Reporting Hidden Catch Block.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedLocal` *Reporting Unused Local.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedParameter` *Reporting Unused Parameter.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter` *Reporting Unused Exception Parameter.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract` *Reporting Unused Parameter if Implementing Abstract Method.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete` *Reporting Unused Parameter if Overriding Concrete Method.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference` *Consider Reference in Doc Comment for Unused Parameter Check.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unusedImport` *Reporting Unused Import.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedTypeArgumentsForMethodInvocation` *Reporting Presence of Type Arguments for a Non-Generic Method Invocation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation` *Reporting Synthetic Access Emulation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedTypeParameter` *Reporting Unused Type Parameter.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral` *Reporting Non-Externalized String Literal.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.assertIdentifier` *Reporting Usage of <code>assert</code> Identifier.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.enumIdentifier` *Reporting Usage of <code>enum</code> Identifier.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.staticAccessReceiver` *Reporting Non-Static Reference to a Static Member.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.indirectStaticAccess` *Reporting Indirect Reference to a Static Member.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.noEffectAssignment` *Reporting Assignment with no Effect.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod` *Reporting Interface Method not Compatible with non-Inherited Methods.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedPrivateMember` *Reporting Unused Private Members.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.localVariableHiding` *Reporting Local Variable Declaration Hiding another Variable.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.specialParameterHidingField` *Reporting Special Parameter Hiding another Field.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.fieldHiding` *Reporting Field Declaration Hiding another Variable.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.typeParameterHiding` *Reporting Type Declaration Hiding another Type.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment` *Reporting Possible Accidental Boolean Assignment.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.fallthroughCase` *Reporting Switch Fall-Through Case.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.emptyStatement` *Reporting Empty Statements and Unnecessary Semicolons.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.booleanMethodThrowingException` ** `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck` *Reporting Unnecessary Type Check.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unnecessaryElse` *Reporting Unnecessary Else.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock` *Reporting Undocumented Empty Block.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally` *Reporting Finally Blocks Not Completing Normally.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException` *Reporting Unused Declared Thrown Exception.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding` *Reporting Unused Declared Thrown Exception in Overriding Method.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference` *Consider Reference in Doc Comment for Unused Declared Thrown Exception Check.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable` *Reporting Unused Declared Thrown Exception Exempts Exception And Throwable.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess` *Reporting Unqualified Access to Field.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation` *Reporting Unchecked Type Operation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.rawTypeReference` *Reporting Raw Type Reference.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems` *Reporting of Unavoidable Generic Type Problems due to raw APIs.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.finalParameterBound` *Reporting final Bound for Type Parameter.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingSerialVersion` *Reporting Missing Declaration of serialVersionUID Field on Serializable Class.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast` *Reporting Varargs Argument Needing a Cast in Method/Constructor Invocation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.autoboxing` *Reporting Boxing/Unboxing Conversion.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.annotationSuperInterface` *Reporting Use of Annotation Type as Super Interface.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation` *Reporting Missing <code>@Override</code> Annotation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation` *Reporting Missing <code>@Override</code> Annotation for interface method implementation.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation` *Reporting Missing <code>@Deprecated</code> Annotation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod` *Reporting Missing HashCode Method.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.deadCode` *Reporting Dead Code.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.deadCodeInTrivialIfStatement` *Reporting Dead Code Inside Trivial If Statement.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch` *Reporting Incomplete Enum Switch.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault` *Reporting Missing Enum Case In Switch Despite An Existing Default Case.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.missingDefaultCase` *Reporting Missing Default Case In Switch.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedLabel` *Reporting Unreferenced Label.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.invalidJavadoc` *Reporting Invalid Javadoc Comment.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.invalidJavadocTags` *Reporting Invalid Javadoc Tags.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef` *Reporting Invalid Javadoc Tags with Deprecated References.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef` *Reporting Invalid Javadoc Tags with Not Visible References.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility` *Visibility Level For Invalid Javadoc Tags.* `{ "public", "protected", "default", "private" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription` *Reporting missing tag description.* `{ "return_tag", "all_standard_tags", "no_tag" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocTags` *Reporting Missing Javadoc Tags.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility` *Visibility Level For Missing Javadoc Tags.* `{ "public", "protected", "default", "private" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding` *Reporting Missing Javadoc Tags on Overriding Methods.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters` *Reporting Missing Javadoc Tags for Method Type Parameters.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocComments` *Reporting Missing Javadoc Comments.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility` *Visibility Level For Missing Javadoc Comments.* `{ "public", "protected", "default", "private" }`
`org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding` *Reporting Missing Javadoc Comments on Overriding Methods.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion` *Reporting Usage of <code>char[]</code> Expressions in String Concatenations.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.maxProblemPerUnit` *Maximum Number of Problems Reported per Compilation Unit.* `{ }`
`org.eclipse.jdt.core.compiler.problem.fatalOptionalError` *Treating Optional Error as Fatal.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.parameterAssignment` *Reporting Parameter Assignment.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic` *Reporting a method that qualifies as static, but not declared static.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic` *Reporting a method that may qualify as static, but not declared static.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unclosedCloseable` *Reporting a resource that is not closed properly.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable` *Reporting a resource that may not be closed properly.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable` *Reporting a resource that is not managed by try-with-resources.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.annotation.resourceanalysis` *Enable the use of specific annotations for more precise analysis of resource leaks.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.annotation.owning` *Name of annotation type for owned resource values.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.notowning` *Name of annotation type for not-owned resource values.* `{ }`
`org.eclipse.jdt.core.compiler.problem.insufficientResourceAnalysis` *Reporting a resource that is not managed by recommended strategies.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.incompatibleOwningContract` *Reporting when a method override incompatibly changes the owning contract.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType` *Reporting a method invocation providing an argument of an unlikely type.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict` *Perform strict analysis against the expected type of collection methods.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType` *Reporting a method invocation providing an argument of an unlikely type to method equals.* `{ }`
`org.eclipse.jdt.core.compiler.problem.APILeak` *Reporting when public API uses a non-API type.* `{ }`
`org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName` *Reporting when a module requires an auto module with an unstable name.* `{ }`
`org.eclipse.jdt.core.compiler.problem.suppressWarningsNotFullyAnalysed` *Reporting when a {@code @SuppressWarnings} annotation might be unused, but exact information is not available.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.nullanalysis` *Annotation-based Null Analysis.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.annotation.nullable` *Name of Annotation Type for Nullable Types.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.nullable.secondary` *Names of Secondary Annotation Types for Nullable Types.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.nonnull` *Name of Annotation Type for Non-Null Types.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.nonnull.secondary` *Names of Secondary Annotation Types for Non-Null Types.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.nonnullbydefault` *Name of Annotation Type to specify a nullness default for unannotated types.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary` *Names of Secondary Annotation Types to specify a nullness default for unannotated types.* `{ }`
`org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation` *Reporting missing default nullness annotation.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.builder.annotationPath.allLocations` *Read external annotations from all build path entries.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.nullSpecViolation` *Reporting Violations of Null Specifications.* `{ "error", "warning" }`
`org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict` *Reporting conflicts between declared null annotation and inferred null value* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion` *Reporting unchecked conversion from a type with unknown nullness to a null annotated type* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables` *Reporting problems detected by pessimistic null analysis for free type variables.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation` *Reporting Redundant Null Annotations.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields` *Perform syntactic null analysis for fields.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations` *Inheritance of null annotations.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped` *Reporting Dropped Nonnull Parameter Annotations.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation` *Reporting Unsafe NonNull Interpretation Of Type Variables.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.annotatedTypeArgumentToUnannotated` *Reporting Unsafe Conversion To Unannotated Type Argument.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.source` *Setting Source Compatibility Mode.* `{ "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "9", "10", "11" }`
`org.eclipse.jdt.core.compiler.compliance` *Setting Compliance Level.* `{ "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "9", "10", "11" }`
`org.eclipse.jdt.core.compiler.release` *Use system libraries from release.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.taskPriorities` *Defining the Automatic Task Priorities.* `{ "<priority>[,<priority>]*" }`
`org.eclipse.jdt.core.compiler.taskTags` *Defining the Automatic Task Tags.* `{ "<tag>[,<tag>]*" }`
`org.eclipse.jdt.core.compiler.taskCaseSensitive` *Determining whether task tags are case-sensitive.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.forbiddenReference` *Reporting Forbidden Reference to Type with Restricted Access.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.discouragedReference` *Reporting Discouraged Reference to Type with Restricted Access.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.suppressWarnings` *Determining Effect of <code>@SuppressWarnings</code>.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts` *Raise null related errors or warnings arising because of assert statements.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors` *Further Determining the Effect of <code>@SuppressWarnings</code> if also* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.unhandledWarningToken` *Reporting Unhandled Warning Token for <code>@SuppressWarnings</code>.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedWarningToken` *Reporting Unnecessary <code>@SuppressWarnings</code>.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.nullReference` *Reporting Null Dereference.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.potentialNullReference` *Reporting Potential Null Dereference.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.redundantNullCheck` *Reporting Redundant Null Check.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.overridingMethodWithoutSuperInvocation` *Reporting Overriding method that* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.redundantSuperinterface` *Reporting Redundant Superinterface.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.comparingIdentical` *Reporting Comparison of Identical Expressions.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod` *Reporting Missing Synchronized Modifier On Inherited Method.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation` *Reporting Allocation of an Unused Object.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments` *Reporting redundant specification of type arguments in class instance creation expressions.* `{ "error", "warning", "info", "ignore" }`
`org.eclipse.jdt.core.computeJavaBuildOrder` *Computing Project Build Order.* `{ "compute", "ignore" }`
`org.eclipse.jdt.core.builder.resourceCopyExclusionFilter` *Specifying Filters for Resource Copying Control.* `{ "<name>[,<name>]* }`
`org.eclipse.jdt.core.builder.duplicateResourceTask` *Reporting Duplicate Resources.* `{ "error", "warning" }`
`org.eclipse.jdt.core.builder.cleanOutputFolder` *Cleaning Output Folder(s).* `{ "clean", "ignore" }`
`org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder` *Recreate Modified class files in Output Folder.* `{ "enabled", "ignore" }`
`org.eclipse.jdt.core.incompleteClasspath` *Reporting Incomplete Classpath.* `{ "error", "warning" }`
`org.eclipse.jdt.core.circularClasspath` *Reporting Classpath Cycle.* `{ "error", "warning" }`
`org.eclipse.jdt.core.incompatibleJDKLevel` *Reporting Incompatible JDK Level for Required Binaries.* `{ "error", "warning", "ignore" }`
`org.eclipse.jdt.core.builder.invalidClasspath` *Abort if Invalid Classpath.* `{ "abort", "ignore" }`
`org.eclipse.jdt.core.classpath.exclusionPatterns` *Enabling Usage of Classpath Exclusion Patterns.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.classpath.multipleOutputLocations` *Enabling Usage of Classpath Multiple Output Locations.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource` *Reporting an output location overlapping another source location.* `{ "error", "warning", "ignore" }`
`org.eclipse.jdt.core.classpath.mainOnlyProjectHasTestOnlyDependency` *Reporting if a project which has only main sources depends on a project with only test sources.* `{ "error", "ignore" }`
`org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures` *Enabling support for preview language features.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures` *Reporting Preview features.* `{ "warning", "info", "ignore" }`
`org.eclipse.jdt.core.compiler.ignoreUnnamedModuleForSplitPackage` *Ignore unnamed module for split package.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.timeoutForParameterNameFromAttachedJavadoc` *Set the timeout value for retrieving the* `{ }`
`org.eclipse.jdt.core.codeComplete.visibilityCheck` *Activate Visibility Sensitive Completion.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.codeComplete.deprecationCheck` *Activate Deprecation Sensitive Completion.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.codeComplete.camelCaseMatch` *Activate Camel Case Sensitive Completion.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.codeComplete.subwordMatch` *Activate Subword Code Completion.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.codeComplete.forceImplicitQualification` *Automatic Qualification of Implicit Members.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.codeComplete.fieldPrefixes` *Define the Prefixes for Field Name.* `{ "<prefix>[,<prefix>]*" }`
`org.eclipse.jdt.core.codeComplete.staticFieldPrefixes` *Define the Prefixes for Static Field Name.* `{ "<prefix>[,<prefix>]*" }`
`org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes` *Define the Prefixes for Static Final Field Name.* `{ "<prefix>[,<prefix>]*" }`
`org.eclipse.jdt.core.codeComplete.localPrefixes` *Define the Prefixes for Local Variable Name.* `{ "<prefix>[,<prefix>]*" }`
`org.eclipse.jdt.core.codeComplete.argumentPrefixes` *Define the Prefixes for Argument Name.* `{ "<prefix>[,<prefix>]*" }`
`org.eclipse.jdt.core.codeComplete.fieldSuffixes` *Define the Suffixes for Field Name.* `{ "<suffix>[,<suffix>]*" }`
`org.eclipse.jdt.core.codeComplete.staticFieldSuffixes` *Define the Suffixes for Static Field Name.* `{ @code "<suffix>[,<suffix>]*" < where @code <suffix> }`
`org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes` *Define the Suffixes for Static Final Field Name.* `{ @code "<suffix>[<suffix>]*" < where @code <suffix> }`
`org.eclipse.jdt.core.codeComplete.localSuffixes` *Define the Suffixes for Local Variable Name.* `{ "<suffix>[,<suffix>]*" }`
`org.eclipse.jdt.core.codeComplete.argumentSuffixes` *Define the Suffixes for Argument Name.* `{ "<suffix>[,<suffix>]*" }`
`org.eclipse.jdt.core.codeComplete.forbiddenReferenceCheck` *Activate Forbidden Reference Sensitive Completion.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.codeComplete.discouragedReferenceCheck` *Activate Discouraged Reference Sensitive Completion.* `{ "enabled", "disabled" }`
`org.eclipse.jdt.core.codeComplete.suggestStaticImports` *Activate Suggestion of Static Import.* `{ "enabled", "disabled" }`
Much like the compiler options, there are simply too many formatter options to handle individually, so java.format.settings.url
exists to permit custom formatters. Since the formatting file has a very specific XML syntax, another option is to use java.settings.url
to provide any formatter setting as a key-value pair.
The list of options can be viewed on the DefaultCodeFormatterConstants.java
Javadoc page.
These are options that change the behaviour of the language server that are beyond the scope of the standard client capabilities defined by the Language Server Protocol specification.
The list of options can be viewed in the ClientPreferences.java
actionableNotificationSupported
- [Experimental] Enable/disable progress reports from background processes on the server.
actionableRuntimeNotificationSupport
- Client supports receiving notifications that may result in performing certain actions/commands on the client side.
advancedExtractRefactoringSupport
- Client support "Extract" refactoring operations represented as commands rather than code actions.
advancedGenerateAccessorsSupport
- Client supports using a prompt to allow a user to configure behaviour for generating Getters/Setters.
advancedIntroduceParameterRefactoringSupport
- Client supports "Introduce Parameter" refactoring operations represented as commands rather than code actions.
advancedOrganizeImportsSupport
- Client supports "Organize Imports" operations represented as commands rather than code actions.
classFileContentsSupport
- Client supports rendering of class file contents.
clientDocumentSymbolProvider
- Client supports providing document symbols.
clientHoverProvider
- Client supports providing document hover.
generateConstructorsPromptSupport
- Client supports using a prompt to allow a user to configure behaviour for generating constructors.
generateDelegateMethodsPromptSupport
- Client supports using a prompt to allow a user to configure behaviour for generating delegate methods.
generateToStringPromptSupport
- Client supports using a prompt to allow a user to configure behaviour for generating toString() method.
gradleChecksumWrapperPromptSupport
- Client supports using a prompt to allow a user to configure behaviour when a Gradle wrapper's checksum is not known or trusted.
hashCodeEqualsPromptSupport
- Client supports using a prompt to allow a user to configure behaviour for generating hashCode() & equals() methods.
inferSelectionSupport
- The list of commands for which a client supports using a prompt to allow a user to select from a series of inferred selections. This is often needed when a refactoring is activated without a selection and multiple terms may be applicable.
moveRefactoringSupport
- Client supports refactoring that involves moving a Java member.
onCompletionItemSelectedCommand
- The command to be performed (if any) once a completion item is selected.
overrideMethodsPromptSupport
- Client supports using a prompt to allow a user to configure behaviour for the Override/Implement methods operation.
shouldLanguageServerExitOnShutdown
- Client property indicating that the language server should exit immediately on receiving a shutdown() request, without waiting for the additional exit() request from the client.
excludedMarkerTypes
- Client property for a list of diagnostic types that should not be published, should any problems be a sub-type of the given diagnostic type.
skipProjectConfiguration
- Client property to indicate that the language server should not attempt to import & configure any detected projects. This can be useful in cases where the client wishes to take ownership over project import/configuration.
skipTextEventPropagation
- Client property to indicate that the language client will handle document changes originating from the user (eg. typing) and the language server should not produce text edits for such events.
snippetEditSupport
- Client property to indicate that the language client supports the LSP Snippet syntax within code action text document edits. Once LSP 3.18.0 is supported, the client capability "workspace.workspaceEdit.snippetEditSupport" should be used instead.