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

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

[elpa] externals/eglot f250784 10/45: Handle case when project was not f


From: João Távora
Subject: [elpa] externals/eglot f250784 10/45: Handle case when project was not found in eclipse.jdt.ls contact
Date: Thu, 22 Nov 2018 19:15:27 -0500 (EST)

branch: externals/eglot
commit f250784723dc8617c739196656f0532ae1143c28
Author: Michał K <address@hidden>
Commit: mkcms <address@hidden>

    Handle case when project was not found in eclipse.jdt.ls contact
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index a23e73d..75d3857 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1959,8 +1959,9 @@ If SKIP-SIGNATURE, don't try to send 
textDocument/signatureHelp."
               ((string= system-type "darwin") "config_mac")
               ((string= system-type "windows-nt") "config_win")
               (t "config_linux"))))
+           (project (or (project-current) `(transient . ,default-directory)))
            (workspace
-            (expand-file-name (md5 (car (project-roots (project-current))))
+            (expand-file-name (md5 (car (project-roots project)))
                               (concat user-emacs-directory
                                       "eglot-eclipse-jdt-cache"))))
       (unless jar



reply via email to

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