summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-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.