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

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

[elpa] 1.2 29d641b 066/101: Handle case when project was not found in ec


From: Christian Johansson
Subject: [elpa] 1.2 29d641b 066/101: Handle case when project was not found in eclipse.jdt.ls contact
Date: Thu, 29 Apr 2021 15:09:02 -0400 (EDT)

tag: 1.2
commit 29d641b5d0dc429087a8d8b58b3e6c59a1bd1588
Author: MichaƂ K <k.michal@zoho.com>
Commit: mkcms <k.michal@zoho.com>

    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]