This unifies the behaviour we have in code completion item
documentations and signaturehelp. Providing better line wrapping and detection
of inline code blocks in comments to be renedered appropriately in markdown.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I am thinking about a follow-up which will actually change formatDocumentation to return a Markup::Document instead to make sure we will have a single way of representing documents throughout features in future.
But that's also what we store in the index, hence will require some serialization/deserialization story around it, hence pending some more discussions/thinking :)
MarkupContent was introduced in 3.12 in 2018.
We could continue to support older clients by rendering plaintext as string instead of the MarkupContent struct but it doesn't seem worth it.
clang-tools-extra/clangd/Protocol.h | ||
---|---|---|
495 | move next to other sighelp caps? | |
clang-tools-extra/clangd/test/signature-help.test | ||
1 | I definitely don't think we need three copies of this test. I'd personally probably only keep one, and have it specify markdown explicitly (plaintext is the default). |
move next to other sighelp caps?