Skip to content

Commit

Permalink
test remoteness on path (project root)
Browse files Browse the repository at this point in the history
don't test remoteness on process… that doesn't make any sense
  • Loading branch information
FelipeLema committed May 11, 2020
1 parent 96937a3 commit a1f9105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ If optional MARKER, return a marker instead"
"Convert URI to a string pointing to a file in SERVER's host."
(when (keywordp uri) (setq uri (substring (symbol-name uri) 1)))
(concat
(file-remote-p (jsonrpc--process server))
(file-remote-p (car (project-roots (eglot--project server))))

This comment has been minimized.

Copy link
@joaotavora

joaotavora May 11, 2020

Owner

hehehe, I wondered about that one, but didn't want to say anything silly. This is good, and it doesnt' need to cross the jsonrpc.el abstraction layer.

(let ((retval (url-filename (url-generic-parse-url (url-unhex-string uri)))))
(if (eq system-type 'windows-nt) (substring retval 1) retval))))

Expand Down

0 comments on commit a1f9105

Please sign in to comment.