From a1f910565af160b72c5949fccf934d82eb62996d Mon Sep 17 00:00:00 2001 From: Felipe Lema <1232306+FelipeLema@users.noreply.github.com> Date: Mon, 11 May 2020 11:42:37 -0400 Subject: [PATCH] test remoteness on path (project root) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit don't test remoteness on process… that doesn't make any sense --- eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eglot.el b/eglot.el index 37a3eea3..a3c63f96 100644 --- a/eglot.el +++ b/eglot.el @@ -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)))) (let ((retval (url-filename (url-generic-parse-url (url-unhex-string uri))))) (if (eq system-type 'windows-nt) (substring retval 1) retval))))