Function: eglot--after-set-visited-file-name-hook
eglot--after-set-visited-file-name-hook is a byte-compiled function
defined in eglot.el.gz.
Signature
(eglot--after-set-visited-file-name-hook)
Documentation
Handle visited file name change: send didClose then didOpen.
The cache still holds the old URI when this runs, so didClose
uses it; didOpen then clears it and recomputes from the new
buffer-file-name(var)/buffer-file-name(fun).
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--after-set-visited-file-name-hook ()
"Handle visited file name change: send didClose then didOpen.
The cache still holds the old URI when this runs, so didClose
uses it; didOpen then clears it and recomputes from the new
`buffer-file-name'."
(when (and eglot--managed-mode buffer-file-name)
(eglot--signal-textDocument/didClose)
(eglot--signal-textDocument/didOpen)))