[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot a261a7b 10/16: Close #33: Bind default-directory
From: |
Jo�o T�vora |
Subject: |
[elpa] externals/eglot a261a7b 10/16: Close #33: Bind default-directory when launching servers |
Date: |
Mon, 9 Jul 2018 17:27:14 -0400 (EDT) |
branch: externals/eglot
commit a261a7bb6cdd55c90dce9cdd6221f7a33a17c9b3
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Close #33: Bind default-directory when launching servers
Apparently, not doing so trips some servers, like Scala's.
* eglot.el (eglot--connect): Bind default-directory.
---
eglot.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/eglot.el b/eglot.el
index 01658f9..50733f7 100644
--- a/eglot.el
+++ b/eglot.el
@@ -448,8 +448,8 @@ INTERACTIVE is t if called interactively."
(defun eglot--connect (managed-major-mode project class contact)
"Connect to MANAGED-MAJOR-MODE, PROJECT, CLASS and CONTACT.
This docstring appeases checkdoc, that's all."
- (let* ((nickname (file-name-base (directory-file-name
- (car (project-roots project)))))
+ (let* ((default-directory (car (project-roots project)))
+ (nickname (file-name-base (directory-file-name default-directory)))
(readable-name (format "EGLOT (%s/%s)" nickname managed-major-mode))
autostart-inferior-process
(initargs
@@ -504,10 +504,8 @@ This docstring appeases checkdoc, that's all."
:initialize
(list :processId (unless (eq (jsonrpc-process-type server)
'network)
(emacs-pid))
- :rootPath (expand-file-name
- (car (project-roots project)))
- :rootUri (eglot--path-to-uri
- (car (project-roots project)))
+ :rootPath (expand-file-name default-directory)
+ :rootUri (eglot--path-to-uri default-directory)
:initializationOptions (eglot-initialization-options server)
:capabilities (eglot-client-capabilities server)))
(setf (eglot--capabilities server) capabilities)
- [elpa] externals/eglot updated (f385d9c -> 07b235f), Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot e8f0d89 02/16: * jsonrpc.el (jsonrpc-process-type): Actually return process-type., Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 6239ca6 05/16: Close #30: Fix typo in the solargraph server program, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot c94b028 04/16: Fix some rather silly bugs in some interactive specs, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot a6fee46 09/16: Fix typo (#35), Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 7467c15 11/16: Close #36: Inhibit auto-reconnect until connection is established, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot a261a7b 10/16: Close #33: Bind default-directory when launching servers,
Jo�o T�vora <=
- [elpa] externals/eglot 543483a 13/16: Close #37: Unbreak completion when no possible annotation, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 1a61522 08/16: Close #32: Cache buffer's managing server, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 37296ed 14/16: Format documentation in completion annotations, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 45c651e 06/16: Per #31: Unbreak basic imenu functionality, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot a99e129 03/16: Adjust timeout strategy when running tests, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 017fbdc 07/16: Close #31: Unbreak Imenu for cquery servers (and probably more), Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 8219088 12/16: Close #34: Handle outrageously large and buggy line numbers, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 55ee8e9 15/16: * eglot.el (eglot-completion-at-point): Fix broken indentation, Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 4354710 01/16: Implement TCP autostart/autoconnect (and support Ruby's Solargraph), Jo�o T�vora, 2018/07/09
- [elpa] externals/eglot 07b235f 16/16: jsonrpc.el is now a GNU ELPA depedency, Jo�o T�vora, 2018/07/09