From bd465e2f27c9ebfa1da6b23b265cda6e89bd1715 Mon Sep 17 00:00:00 2001 From: Denys Almazov Date: Tue, 6 May 2025 16:52:15 +0300 Subject: [PATCH 1/2] fix: restart lsp server without shutdown --- .../src/com/espressif/idf/core/util/LspService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java b/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java index 25a97858c..d8644784f 100644 --- a/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java +++ b/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java @@ -42,7 +42,7 @@ public void restartLspServers() { languageServerWrappers.forEach(w -> // ensures that the LS is initialized before proceeding. - w.execute(ls -> ls.shutdown()).thenRun(w::restart)); + w.restart()); } public void updateAdditionalOptions(String additionalOptions) From 425d2d1d7de56a60edce73a31ad97be0c4f98a02 Mon Sep 17 00:00:00 2001 From: Denys Almazov Date: Wed, 7 May 2025 08:25:22 +0300 Subject: [PATCH 2/2] fix: test if issue happens without our restart --- .../src/com/espressif/idf/core/util/LspService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java b/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java index d8644784f..815342d30 100644 --- a/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java +++ b/bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/LspService.java @@ -40,9 +40,9 @@ public LspService(Configuration configuration, List langu public void restartLspServers() { - languageServerWrappers.forEach(w -> - // ensures that the LS is initialized before proceeding. - w.restart()); +// languageServerWrappers.forEach(w -> +// // ensures that the LS is initialized before proceeding. +// w.restart()); } public void updateAdditionalOptions(String additionalOptions)