[PATCH] D38939: [clangd] Handle exit notification (proper shutdown)
Raoul Wols via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 15 14:59:39 PDT 2017
rwols created this revision.
This changes the onShutdown handler to do essentially nothing (for now), and
instead exits the runloop when we receive the exit notification from the client.
Some clients may wait on the reply from the shutdown request before sending an
exit notification. If we exit the runloop already in the shutdown request, a
client might block forever.
This also gives us the opportunity to do any global cleanups and/or
serializations of PCH preambles to disk, but I've left that out for now.
See the LSP protocol documentation for details.
https://reviews.llvm.org/D38939
Files:
clangd/ClangdLSPServer.cpp
clangd/ClangdLSPServer.h
clangd/Protocol.h
clangd/ProtocolHandlers.cpp
clangd/ProtocolHandlers.h
test/clangd/authority-less-uri.test
test/clangd/completion-priorities.test
test/clangd/completion-qualifiers.test
test/clangd/completion-snippet.test
test/clangd/completion.test
test/clangd/definitions.test
test/clangd/diagnostics-preamble.test
test/clangd/diagnostics.test
test/clangd/did-change-watch-files.test
test/clangd/extra-flags.test
test/clangd/fixits.test
test/clangd/formatting.test
test/clangd/initialize-params-invalid.test
test/clangd/initialize-params.test
test/clangd/input-mirror.test
test/clangd/signature-help.test
test/clangd/unsupported-method.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38939.119099.patch
Type: text/x-patch
Size: 9286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171015/4ddc9fa8/attachment.bin>
More information about the cfe-commits
mailing list