From 937f999a13a5767d49eabc54d8baa3a355bf4ebf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 19 May 2018 10:24:18 +0100 Subject: [PATCH] If we're going to send rootpath, better send an absolute one javascript-typescript-langserver complained. * eglot.el (eglot--connect): Use expand-file-name. --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 5542902f743..981029071a8 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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 [])) -- 2.39.2