[clangd] Make version in PublishDiagnosticsParams optional
authorKadir Cetinkaya <kadircet@google.com>
Sun, 10 May 2020 21:29:27 +0000 (23:29 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 11 May 2020 08:31:10 +0000 (10:31 +0200)
commitcc9fefec4368efb64e78dee1109e342b37d21bca
treea7eb8f8a29d75b8eb81bd90d9627ed58f6b9c696
parent3f07cab3124d34e512c61f453b3ce157a263b81a
[clangd] Make version in PublishDiagnosticsParams optional

Summary: We were serializing it no matter what, which was against the spec

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79692
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/test/diagnostics-no-tidy.test
clang-tools-extra/clangd/test/diagnostics.test