[clangd] Extend textDocument/didChange to specify whether diagnostics should be gener...
authorEric Liu <ioeric@google.com>
Thu, 22 Feb 2018 18:40:39 +0000 (18:40 +0000)
committerEric Liu <ioeric@google.com>
Thu, 22 Feb 2018 18:40:39 +0000 (18:40 +0000)
commit51fed1834258abffb165af9c5252f1e121366586
tree6fdad8465dec2ba7753afd7077958f7a34d8e8b9
parent7ef47a67a5ced2e7aa5a9b9f77eaeeb376e0583e
[clangd] Extend textDocument/didChange to specify whether diagnostics should be generated.

Summary:
This would allow us to disable diagnostics when didChange is called but
diagnostics are not wanted (e.g. code completion).

Reviewers: sammccall

Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits

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

llvm-svn: 325813
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Protocol.h