Skip to content

Commit

Permalink
Prevent sending shutdown job progress report
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica He <[email protected]>
  • Loading branch information
JessicaJHee authored and rgrunber committed Apr 27, 2023
1 parent 3fa7fbd commit 147a6a3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ private CodeActionOptions getCodeActionOptions() {
public CompletableFuture<Object> shutdown() {
logInfo(">> shutdown");
return computeAsync((monitor) -> {
shutdownJob.setSystem(true);
shutdownJob.schedule();
shutdownReceived = true;
if (preferenceManager.getClientPreferences().shouldLanguageServerExitOnShutdown()) {
Expand All @@ -473,6 +474,7 @@ public void exit() {
}, 1, TimeUnit.MINUTES);
}
if (!shutdownReceived) {
shutdownJob.setSystem(true);
shutdownJob.schedule();
}
try {
Expand Down

0 comments on commit 147a6a3

Please sign in to comment.