Avoid receiving notification and sending notification on the same thread

This commit is contained in:
aboyko
2023-08-29 23:50:57 -04:00
parent 5019e927c0
commit 1377be2ef5
3 changed files with 5 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ public final class SimpleLanguageServer implements Sts4LanguageServer, SpringInd
}
WorkDoneProgressCreateParams params = new WorkDoneProgressCreateParams();
params.setToken(taskId);
client.createProgress(params).thenAccept((p) -> {
client.createProgress(params).thenAcceptAsync((p) -> {
ProgressParams progressParams = new ProgressParams();
progressParams.setToken(taskId);
progressParams.setValue(Either.forLeft(report));