This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Simplify client capabilities parsing.
ClosedPublic

Authored by sammccall on Oct 14 2018, 11:18 PM.

Details

Summary

Instead of parsing into structs that mirror LSP, simply parse into a flat struct
that contains the info we need.
This is an exception to our strategy with Protocol.h, which seems justified:

  • the structure here is very large and deeply nested
  • we care about almost none of it
  • we should never have to serialize client capabilities

Event Timeline

sammccall created this revision.Oct 14 2018, 11:18 PM
sammccall updated this revision to Diff 169839.Oct 16 2018, 9:42 AM

Rebase to include CodeAction literal support

kadircet accepted this revision.Oct 16 2018, 11:59 AM

LGTM, thanks for the change!

This revision is now accepted and ready to land.Oct 16 2018, 11:59 AM
This revision was automatically updated to reflect the committed changes.