@@ -200,16 +200,19 @@ A package or type name prefix (e.g. 'org.eclipse') is a valid entry. An import i
200200 :group 'lsp-java
201201 :type 'boolean )
202202
203+ ;;;### autoload
203204(defcustom lsp-java-auto-build t
204205 " Enable/disable the 'auto build'."
205206 :group 'lsp-java
206207 :type 'boolean )
207208
209+ ;;;### autoload
208210(defcustom lsp-java-progress-report t
209211 " [Experimental] Enable/disable progress reports from background processes on the server."
210212 :group 'lsp-java
211213 :type 'boolean )
212214
215+ ;;;### autoload
213216(defcustom lsp-java-completion-guess-arguments nil
214217 " When set to true, method arguments are guessed when a method is selected from as list of code assist proposals."
215218 :group 'lsp-java
@@ -291,13 +294,15 @@ The entry point of the language server is in `lsp-java-server-install-dir'/plugi
291294 (message (format " using config for %s " config)))
292295 (expand-file-name config lsp-java-server-install-dir)))
293296
297+ ;;;### autoload
294298(defun lsp-java-organize-imports ()
295299 " Organize java imports."
296300 (interactive )
297301 (lsp--send-execute-command
298302 " java.edit.organizeImports"
299303 (list (lsp--path-to-uri buffer-file-name))))
300304
305+ ;;;### autoload
301306(defun lsp-java-build-project (&optional full )
302307 " Perform project build action.
303308
@@ -306,6 +311,7 @@ FULL specify whether full or incremental build will be performed."
306311 (lsp-send-notification
307312 (lsp-make-request " java/buildWorkspace" (if full t :json-false ))))
308313
314+ ;;;### autoload
309315(defun lsp-java-update-project-configuration ()
310316 " Update project configuration."
311317 (interactive )
@@ -473,6 +479,7 @@ PARAMS progress report notification data."
473479 (insert uri))))
474480 file-location))
475481
482+ ;;;### autoload
476483(defun lsp-java-actionable-notifications ()
477484 " Lists current actionable notifications."
478485 (interactive )
@@ -489,8 +496,10 @@ PARAMS progress report notification data."
489496 (when (= (hash-table-count notifications) 0 )
490497 (lsp-workspace-status (concat " ::" (lsp-workspace-get-metadata " status" ))))))
491498
499+ ;;;### autoload
492500(defun lsp-java-execute-matching-action (regexp &optional not-found-message )
493- " Executes the code action which title matches the REGEXP. "
501+ " Execute the code action which title match the REGEXP.
502+ NOT-FOUND-MESSAGE will be used if there is no matching action."
494503 (let ((actions (cl-remove-if-not
495504 (lambda (item ) (string-match regexp (gethash " title" item)))
496505 (lsp-get-or-calculate-code-actions))))
@@ -499,6 +508,7 @@ PARAMS progress report notification data."
499508 (1 (lsp-execute-code-action (car actions)))
500509 (t (lsp-execute-code-action (lsp--select-action actions))))))
501510
511+ ;;;### autoload
502512(defun lsp-java-extract-to-local-variable (arg )
503513 " Extract local variable refactoring.
504514The prefix ARG and `cider-prompt-for-symbol' decide whether to
@@ -509,36 +519,43 @@ extract all or only the current occurrence."
509519 " Extract to local variable$"
510520 " Extract to local variable (replace all occurrences)" )))
511521
522+ ;;;### autoload
512523(defun lsp-java-extract-to-constant ()
513524 " Extract constant refactoring."
514525 (interactive )
515526 (lsp-java-execute-matching-action " Extract to constant" ))
516527
528+ ;;;### autoload
517529(defun lsp-java-add-unimplemented-methods ()
518530 " Extract constant refactoring."
519531 (interactive )
520532 (lsp-java-execute-matching-action " Add unimplemented methods" ))
521533
534+ ;;;### autoload
522535(defun lsp-java-create-parameter ()
523536 " Create parameter refactoring."
524537 (interactive )
525538 (lsp-java-execute-matching-action " Create parameter '" ))
526539
540+ ;;;### autoload
527541(defun lsp-java-create-field ()
528542 " Create field refactoring."
529543 (interactive )
530544 (lsp-java-execute-matching-action " Create field '" ))
531545
546+ ;;;### autoload
532547(defun lsp-java-create-local ()
533548 " Create local refactoring."
534549 (interactive )
535550 (lsp-java-execute-matching-action " Create local variable" ))
536551
552+ ;;;### autoload
537553(defun lsp-java-extract-method ()
538554 " Extract method refactoring."
539555 (interactive )
540556 (lsp-java-execute-matching-action " Extract to method" ))
541557
558+ ;;;### autoload
542559(defun lsp-java-add-import ()
543560 " Add missing import."
544561 (interactive )
0 commit comments