Function: eglot--code-action-params

eglot--code-action-params is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--code-action-params &key (BEG (point)) (END beg) ONLY TRIGGERKIND)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(cl-defun eglot--code-action-params (&key (beg (point)) (end beg)
                                          only triggerKind)
  (list :textDocument (eglot--TextDocumentIdentifier)
        :range (eglot-region-range beg end)
        :context
        `(:diagnostics
          [,@(mapcar #'eglot--diag-to-lsp-diag
                     (eglot--flymake-diagnostics beg end))]
          ,@(when only `(:only [,only]))
          ,@(when triggerKind `(:triggerKind ,triggerKind)))))