Skip to content

Commit 27082f3

Browse files
committed
Pin jdtls and make sure jdtls dir is deleted before installation
1 parent 65edc9f commit 27082f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-java.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The slash is expected at the end."
4646
:risky t
4747
:type 'directory)
4848

49-
(defcustom lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz"
49+
(defcustom lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/1.0.0/jdt-language-server-1.0.0-202104151857.tar.gz"
5050
"JDT JS download url.
5151
Use http://download.eclipse.org/che/che-ls-jdt/snapshots/che-jdt-language-server-latest.tar.gz if you want to use Eclipse Che JDT LS."
5252
:group 'lsp-java
@@ -798,6 +798,7 @@ PARAMS progress report notification data."
798798

799799
(defun lsp-java--ensure-server (_client callback error-callback _update?)
800800
"Ensure that JDT server and the other configuration."
801+
(f-delete lsp-java-server-install-dir t)
801802
(let* ((default-directory (make-temp-file "lsp-java-install" t))
802803
(installed-mvn (executable-find "mvn"))
803804
(mvn-command-and-options (if installed-mvn

0 commit comments

Comments
 (0)