]> git.eshelyaron.com Git - emacs.git/commitdiff
If we're going to send rootpath, better send an absolute one
authorJoão Távora <joaotavora@gmail.com>
Sat, 19 May 2018 09:24:18 +0000 (10:24 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 19 May 2018 09:24:18 +0000 (10:24 +0100)
javascript-typescript-langserver complained.

* eglot.el (eglot--connect): Use expand-file-name.

lisp/progmodes/eglot.el

index 5542902f743ba4647ffb6a65c36e4b4669ac134d..981029071a89b1a858979fbcd307ba09a46a56e6 100644 (file)
@@ -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  []))