emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 4b9f4da 03/15: If we're going to send rootPath, b


From: João Távora
Subject: [elpa] externals/eglot 4b9f4da 03/15: If we're going to send rootPath, better send an absolute one
Date: Sun, 20 May 2018 19:59:02 -0400 (EDT)

branch: externals/eglot
commit 4b9f4da237095f9a46ec94fb3694355ca28187e8
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    If we're going to send rootPath, better send an absolute one
    
    javascript-typescript-langserver complained.
    
    * eglot.el (eglot--connect): Use expand-file-name.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 5542902..9810290 100644
--- a/eglot.el
+++ b/eglot.el
@@ -273,7 +273,8 @@ INTERACTIVE is t if inside interactive call."
                                                     'network)
                                           (emacs-pid))
                              :capabilities(eglot--client-capabilities)
-                             :rootPath  (car (project-roots project))
+                             :rootPath  (expand-file-name
+                                         (car (project-roots project)))
                              :rootUri  (eglot--path-to-uri
                                         (car (project-roots project)))
                              :initializationOptions  []))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]