Workaround for ls processes being leaked by lps4e

See:
  - https://bugs.eclipse.org/bugs/show_bug.cgi?id=549904
  - https://www.pivotaltracker.com/story/show/167519460
This commit is contained in:
Kris De Volder
2019-08-08 17:18:06 -07:00
parent f87626059c
commit 768bcc8c53
3 changed files with 29 additions and 15 deletions

View File

@@ -10,6 +10,7 @@
*******************************************************************************/
package org.springframework.ide.vscode.boot.jdt.ls;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
@@ -79,6 +80,7 @@ public class JavaProjectsServiceWithFallback implements JavaProjectsService {
this.mainServiceInitialized = this.server
.onInitialized(main.initialize())
.timeout(Duration.ofSeconds(5))
.toFuture();
this.server.onShutdown(() -> {