tag: 1.2
commit 29d641b5d0dc429087a8d8b58b3e6c59a1bd1588
Author: MichaĆ K <[email protected]>
Commit: mkcms <[email protected]>
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