See also
https://microsoft.github.io/language-server-protocol/specifications/specification-current/#uri.
* eglot.el (eglot--path-to-uri): use directory-file-name.
GitHub-reference: per https://github.com/joaotavora/eglot/issues/627
(defun eglot--path-to-uri (path)
"URIfy PATH."
(url-hexify-string
- (concat "file://" (if (eq system-type 'windows-nt) "/") (file-truename path))
+ (concat "file://" (if (eq system-type 'windows-nt) "/")
+ (directory-file-name (file-truename path)))
url-path-allowed-chars))
(defun eglot--uri-to-path (uri)