Function: eglot-rename
eglot-rename is an interactive and byte-compiled function defined in
eglot.el.gz.
Signature
(eglot-rename NEWNAME)
Documentation
Rename the current symbol to NEWNAME.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot-rename (newname)
"Rename the current symbol to NEWNAME."
(interactive
(let ((tap (thing-at-point 'symbol t)))
(list (read-from-minibuffer
(format "Rename `%s' to: " (or tap "unknown symbol"))
nil nil nil nil tap))))
(eglot-server-capable-or-lose :renameProvider)
(eglot--apply-workspace-edit
(eglot--request (eglot--current-server-or-lose)
:textDocument/rename `(,@(eglot--TextDocumentPositionParams)
:newName ,newname))
this-command))