A refactoring to decouple ProtocolHandlers and Language Server input parsing
loop from the ClangdLSPServer.
The input parsing was extracted from main to a function(runLanguageServerLoop).
ProtocolHandlers now provide an interface to handle various LSP methods,
this interface is used by ClangdLSPServer.
Methods for code formatting were moved from ProtocolHandlers to ClangdServer.
ClangdLSPServer now provides a cleaner interface that only runs Language Server
input loop.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clangd/ClangdLSPServer.cpp | ||
---|---|---|
20 ↗ | (On Diff #99009) | Hm, this is a bit too generic for my taste. Is it ever used generically? |
clangd/ClangdLSPServer.cpp | ||
---|---|---|
20 ↗ | (On Diff #99009) | Nope, it's now only used with one type, specialized it to it. |
clangd/ClangdLSPServer.h | ||
33 ↗ | (On Diff #99008) | Didn't want to store unnecessary fields in the class, but we do need JSONOutput &Out as a member, since there's consumeDiagnostics which uses it. |
Comment Actions
Looks good!
clangd/ClangdLSPServer.h | ||
---|---|---|
33 ↗ | (On Diff #99008) | I get it now. It's OK as it is now! |