From: João Távora Date: Sat, 19 May 2018 09:24:18 +0000 (+0100) Subject: If we're going to send rootpath, better send an absolute one X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~558 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=937f999a13a5767d49eabc54d8baa3a355bf4ebf;p=emacs.git If we're going to send rootpath, better send an absolute one javascript-typescript-langserver complained. * eglot.el (eglot--connect): Use expand-file-name. --- 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 []))