summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clangd/shutdown-with-exit.test
Commit message (Collapse)AuthorAgeFilesLines
* [clangd][tests] Rename tests of clangd instance terminationJan Korous2018-08-151-4/+0
| | | | | | | | Just making testnames better reflect their testing scenarios. Differential Revision: https://reviews.llvm.org/D50641 llvm-svn: 339782
* [clangd][tests] Fix typo in tests - invalid LSP exit messageJan Korous2018-08-151-1/+1
| | | | | | | | Syntactically invalid JSON payload was causing clangd to terminate because of unexpected EOF rather than exit as a response to LSP exit message. Differential Revision: https://reviews.llvm.org/D50641 llvm-svn: 339781
* [clangd] Support simpler JSON-RPC stream parsing for lit tests.Sam McCall2018-02-061-9/+4
| | | | | | | | | | | | | | Summary: Instead of content-length, we delimit messages with ---. This also removes the need for (most) dos-formatted test files. Reviewers: ioeric Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits Differential Revision: https://reviews.llvm.org/D42919 llvm-svn: 324333
* [clangd] Handle exit notification (proper shutdown)Ilya Biryukov2017-10-251-0/+9
Summary: 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. Reviewers: malaperle, krasimir, bkramer, sammccall, ilya-biryukov Reviewed By: malaperle, sammccall, ilya-biryukov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D38939 llvm-svn: 316564
OpenPOWER on IntegriCloud