[clangd] Don't invalidate LSP-set compile commands when closing a file.
authorSam McCall <sam.mccall@gmail.com>
Thu, 25 Oct 2018 02:04:30 +0000 (02:04 +0000)
committerSam McCall <sam.mccall@gmail.com>
Thu, 25 Oct 2018 02:04:30 +0000 (02:04 +0000)
commitfd7d341b43a8f591fa40f0a5510a4dd39d13963d
tree1df6bc50ed25dfc2dbc2f7682353b0be7fe489c0
parent325c9c5e84ae6f0b0856bfb00d6278a2fdbfd969
[clangd] Don't invalidate LSP-set compile commands when closing a file.

Summary:
It doesn't make much sense: setting them is not coupled to opening the file,
it's an asynchronous notification.

I don't think this is a breaking change - this behavior is hard to observe!

Reviewers: ilya-biryukov

Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D53642

llvm-svn: 345231
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdLSPServer.h
clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
clang-tools-extra/clangd/GlobalCompilationDatabase.h