Skip to content

Commit b3d671c

Browse files
committed
Expose guess arguments parameter
- requires eclipse-jdtls/eclipse.jdt.ls@fc6b40e
1 parent 4c20d25 commit b3d671c

File tree

2 files changed

+34
-27
lines changed

2 files changed

+34
-27
lines changed

README.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -137,32 +137,33 @@ some of them are bound to Emacs commands:
137137
| lsp-java-extract-method | Extract method refactoring |
138138
| lsp-java-add-import | Add missing import |
139139
## Supported settings
140-
| Setting | Description |
141-
|---------------------------------------|----------------------------------------------------------------------------------------|
142-
| lsp-java-server-install-dir | Install directory for eclipsejdtls-server |
143-
| lsp-java-java-path | Path of the java executable |
144-
| lsp-java-workspace-dir | LSP java workspace directory |
145-
| lsp-java-workspace-cache-dir | LSP java workspace cache directory |
146-
| lsp-java--workspace-folders | LSP java workspace folders storing files downloaded from JDT |
147-
| lsp-java-vmargs | Specifies extra VM arguments used to launch the Java Language Server |
148-
| lsp-java-incomplete-classpath | Specifies the severity of the message when the classpath is incomplete for a Java file |
149-
| lsp-java-update-build-configuration | Specifies how modifications on build files update the Java classpath/configuration |
150-
| lsp-java-import-exclusions | Configure glob patterns for excluding folders |
151-
| lsp-java-favorite-static-members | Defines a list of static members or types with static members |
152-
| lsp-java-import-order | Defines the sorting order of import statements |
153-
| lsp-java-trace-server | Traces the communication between Emacs and the Java language server |
154-
| lsp-java-enable-file-watch | Defines whether the client will monitor the files for changes |
155-
| lsp-java-format-enabled | Specifies whether or not formatting is enabled on the language server |
156-
| lsp-java-format-settings-url | Specifies the file path to the formatter xml url |
157-
| lsp-java-format-settings-profile | Specifies the formatter profile name |
158-
| lsp-java-format-comments-enabled | Preference key used to include the comments during the formatting |
159-
| lsp-java-save-action-organize-imports | Organize imports on save |
160-
| lsp-java-organize-imports | Specifies whether or not organize imports is enabled as a save action |
161-
| lsp-java-bundles | List of bundles that will be loaded in the JDT server |
162-
| lsp-java-import-gradle-enabled | Enable/disable the Gradle importer |
163-
| lsp-java-import-maven-enabled | Enable/disable the Maven importer |
164-
| lsp-java-auto-build | Enable/disable the 'auto build' |
165-
| lsp-java-progress-report | [Experimental] Enable/disable progress reports from background processes on the server |
140+
| Setting | Description |
141+
|---------------------------------------|-----------------------------------------------------------------------------------------------------------------|
142+
| lsp-java-server-install-dir | Install directory for eclipsejdtls-server |
143+
| lsp-java-java-path | Path of the java executable |
144+
| lsp-java-workspace-dir | LSP java workspace directory |
145+
| lsp-java-workspace-cache-dir | LSP java workspace cache directory |
146+
| lsp-java--workspace-folders | LSP java workspace folders storing files downloaded from JDT |
147+
| lsp-java-vmargs | Specifies extra VM arguments used to launch the Java Language Server |
148+
| lsp-java-incomplete-classpath | Specifies the severity of the message when the classpath is incomplete for a Java file |
149+
| lsp-java-update-build-configuration | Specifies how modifications on build files update the Java classpath/configuration |
150+
| lsp-java-import-exclusions | Configure glob patterns for excluding folders |
151+
| lsp-java-favorite-static-members | Defines a list of static members or types with static members |
152+
| lsp-java-import-order | Defines the sorting order of import statements |
153+
| lsp-java-trace-server | Traces the communication between Emacs and the Java language server |
154+
| lsp-java-enable-file-watch | Defines whether the client will monitor the files for changes |
155+
| lsp-java-format-enabled | Specifies whether or not formatting is enabled on the language server |
156+
| lsp-java-format-settings-url | Specifies the file path to the formatter xml url |
157+
| lsp-java-format-settings-profile | Specifies the formatter profile name |
158+
| lsp-java-format-comments-enabled | Preference key used to include the comments during the formatting |
159+
| lsp-java-save-action-organize-imports | Organize imports on save |
160+
| lsp-java-organize-imports | Specifies whether or not organize imports is enabled as a save action |
161+
| lsp-java-bundles | List of bundles that will be loaded in the JDT server |
162+
| lsp-java-import-gradle-enabled | Enable/disable the Gradle importer |
163+
| lsp-java-import-maven-enabled | Enable/disable the Maven importer |
164+
| lsp-java-auto-build | Enable/disable the 'auto build' |
165+
| lsp-java-progress-report | [Experimental] Enable/disable progress reports from background processes on the server |
166+
| lsp-java-completion-guess-arguments | When set to true, method arguments are guessed when a method is selected from as list of code assist proposals. |
166167
## Screenshot
167168
![demo](images/demo.png)
168169
## Additional packages

lsp-java.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ A package or type name prefix (e.g. 'org.eclipse') is a valid entry. An import i
210210
:group 'lsp-java
211211
:type 'boolean)
212212

213+
(defcustom lsp-java-completion-guess-arguments nil
214+
"When set to true, method arguments are guessed when a method is selected from as list of code assist proposals."
215+
:group 'lsp-java
216+
:type 'boolean)
217+
213218
(defun lsp-java--json-bool (param)
214219
"Return a PARAM for setting parsable by json.el for booleans."
215220
(or param :json-false))
@@ -256,7 +261,8 @@ A package or type name prefix (e.g. 'org.eclipse') is a valid entry. An import i
256261
(enabled . ,(lsp-java--json-bool lsp-java-auto-build)))
257262
(completion
258263
(favoriteStaticMembers . ,lsp-java-favorite-static-members)
259-
(importOrder . ,lsp-java-import-order)))))
264+
(importOrder . ,lsp-java-import-order)
265+
(guessMethodArguments . ,lsp-java-completion-guess-arguments)))))
260266

261267
(defun lsp-java--locate-server-jar ()
262268
"Return the jar file location of the language server.

0 commit comments

Comments
 (0)