Remove validation if LS is shutting down
This commit is contained in:
@@ -129,6 +129,12 @@ public class SimpleTextDocumentService implements TextDocumentService, DocumentE
|
||||
this.appContext = appContext;
|
||||
|
||||
this.messageWorkerThreadPool = Executors.newCachedThreadPool();
|
||||
|
||||
server.onShutdown(() -> {
|
||||
for (TextDocument d : getAll()) {
|
||||
publishDiagnostics(d.getId(), Collections.emptyList());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -179,6 +179,12 @@ public class BootLanguageServerInitializer implements InitializingBean {
|
||||
server.getWorkspaceService().getFileObserver().onFilesCreated(FILES_TO_WATCH_GLOB, this::handleFiles);
|
||||
|
||||
springIndexer.onUpdate(v -> reconcile());
|
||||
|
||||
server.onShutdown(() -> {
|
||||
for (IJavaProject p : projectFinder.all()) {
|
||||
doNotValidateProject(p);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void reconcile() {
|
||||
|
||||
Reference in New Issue
Block a user