Function: eglot--confirm-server-edits
eglot--confirm-server-edits is a byte-compiled function defined in
eglot.el.gz.
Signature
(eglot--confirm-server-edits ORIGIN PREPARED)
Documentation
Helper for `eglot--apply-workspace-edit.
ORIGIN is a symbol designating a command. Reads the
eglot-confirm-server-edits user option and returns a symbol
like diff, summary or nil.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--confirm-server-edits (origin _prepared)
"Helper for `eglot--apply-workspace-edit.
ORIGIN is a symbol designating a command. Reads the
`eglot-confirm-server-edits' user option and returns a symbol
like `diff', `summary' or nil."
(let (v)
(cond ((symbolp eglot-confirm-server-edits) eglot-confirm-server-edits)
((setq v (assoc origin eglot-confirm-server-edits)) (cdr v))
((setq v (assoc t eglot-confirm-server-edits)) (cdr v)))))