diff options
author | Leigh McCulloch <leigh@mcchouse.com> | 2019-02-23 21:50:48 +0000 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-02-23 18:46:38 -0800 |
commit | 178a451c37d70bb779da0b92653caa037a425ad3 (patch) | |
tree | cb1b81ae2d5be4fbaa0bc681ee622ab83737349a /src/main | |
parent | 45f6c87a1692f0da88883e3d7160be22938dac60 (diff) | |
download | java-language-server-178a451c37d70bb779da0b92653caa037a425ad3.zip |
Respond to shutdown request
What
===
Respond to shutdown request with an empty result.
Why
===
The server does not respond to the shutdown request. Clients expect a
response to the shutdown request before they issue the exit request.
This is to give the server time to shutdown properly before the client
also shuts down. In clients that follow this pattern properly, e.g.
vim-lsc, it can cause vim to block and wait for a response until a
timeout occurs.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/javacs/lsp/LSP.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/javacs/lsp/LSP.java b/src/main/java/org/javacs/lsp/LSP.java index cbd85cf..8747bc1 100644 --- a/src/main/java/org/javacs/lsp/LSP.java +++ b/src/main/java/org/javacs/lsp/LSP.java @@ -242,6 +242,7 @@ public class LSP { case "shutdown": { LOG.warning("Got shutdown message"); + respond(send, r.id, null); break; } case "exit": |