Skip to content

Commit cbde5ce

Browse files
committed
update implementation code lens option
1 parent 21c8924 commit cbde5ce

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lsp-java.el

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,21 @@ pass a list, only a vector."
213213
:lsp-path "java.signatureHelp.enabled")
214214

215215
(lsp-defcustom lsp-java-implementations-code-lens-enabled nil
216-
"Enable/disable the implementations code lens."
216+
"Enable/disable the implementations code lens. For old version of jdtls."
217217
:type 'boolean
218218
:lsp-path "java.implementationsCodeLens.enabled")
219219

220+
(lsp-defcustom lsp-java-implementation-code-lens "none"
221+
"Configure the implementations code lens.
222+
223+
\"none\" means disabled.
224+
ref: https://github.com/eclipse-jdtls/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/CodeLensHandler.java#L234"
225+
:type '(choice (const "none")
226+
(const "all")
227+
(const "types")
228+
(const "methods"))
229+
:lsp-path "java.implementationCodeLens")
230+
220231
(lsp-defcustom lsp-java-configuration-maven-user-settings nil
221232
"Path to Maven's settings.xml"
222233
:type '(choice (string)

0 commit comments

Comments
 (0)