summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-11-11 10:21:45 +0200
committerEli Zaretskii <eliz@gnu.org>2022-11-11 10:21:45 +0200
commitd764a2bfa88c4b33a290acd088ef4a4315d8902d (patch)
tree742a790e2f6ab9a58578ca2bac4a06ed8ac7d3bf /lisp/progmodes
parent161cb6034cec114b59f8fabc4230b3f48ac6cecb (diff)
downloademacs-d764a2bfa88c4b33a290acd088ef4a4315d8902d.tar.gz
emacs-d764a2bfa88c4b33a290acd088ef4a4315d8902d.tar.bz2
emacs-d764a2bfa88c4b33a290acd088ef4a4315d8902d.zip
; * lisp/progmodes/eglot.el (eglot--path-to-uri): Improve commentary.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/eglot.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 2463f68f971..23f6d8e76d4 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1502,7 +1502,9 @@ If optional MARKER, return a marker instead"
"URIfy PATH."
(let ((truepath (file-truename path)))
(if (url-type (url-generic-parse-url truepath))
- ;; Path is already a URI, so forward it to the lsp server untouched.
+ ;; Path is already a URI, so forward it to the LSP server
+ ;; untouched. The server shopuld be able to handle it, since
+ ;; it provided this URI to clients in the first place.
truepath
(concat "file://"
;; Add a leading "/" for local MS Windows-style paths.