[clangd] Fix LineFoldingOnly flag is not propagated correctly to ClangdServer.
authorHaojian Wu <hokein.wu@gmail.com>
Mon, 5 Sep 2022 12:55:13 +0000 (14:55 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Mon, 5 Sep 2022 13:55:29 +0000 (15:55 +0200)
commit16987998e6a0ad62efd4e387c18b0b9b5ef51947
treeea1f3927bb74f873a2f9404accdbd28765f27f6b
parent8fa432be4f749c4ab0ee452d8f7c4337d67861a1
[clangd] Fix LineFoldingOnly flag is not propagated correctly to ClangdServer.

The Opts.LineFoldingOnly must be set before the clangdServer
construction, otherwise this flag is always false when using clangd in VSCode.

Differential Revision: https://reviews.llvm.org/D133299
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/test/folding-range.test [new file with mode: 0644]