Function: eglot--TextDocumentIdentifier
eglot--TextDocumentIdentifier is a byte-compiled function defined in
eglot.el.gz.
Signature
(eglot--TextDocumentIdentifier)
Documentation
Compute TextDocumentIdentifier object for current buffer.
Sets eglot--TextDocumentIdentifier-cache (which see) as a side effect.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--TextDocumentIdentifier ()
"Compute TextDocumentIdentifier object for current buffer.
Sets `eglot--TextDocumentIdentifier-cache' (which see) as a side effect."
(unless eglot--TextDocumentIdentifier-cache
(let ((truename (file-truename (or buffer-file-name
(ignore-errors
(buffer-file-name
(buffer-base-buffer)))))))
(setq eglot--TextDocumentIdentifier-cache
`(,truename . (:uri ,(eglot-path-to-uri truename :truenamep t))))))
(cdr eglot--TextDocumentIdentifier-cache))