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 (lambda (x)
(alist-get 'eglot-lsp-diag (flymake-diagnostic-data x)))
(eglot--flymake-sniff-diagnostics beg end))]
,@(when only `(:only [,only]))
,@(when triggerKind `(:triggerKind ,triggerKind)))))