mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 00:55:08 +00:00
14 lines
497 B
C++
14 lines
497 B
C++
|
#include "message_handler.h"
|
||
|
|
||
|
struct TextDocumentDidChangeHandler
|
||
|
: BaseMessageHandler<Ipc_TextDocumentDidChange> {
|
||
|
void Run(Ipc_TextDocumentDidChange* request) override {
|
||
|
std::string path = request->params.textDocument.uri.GetPath();
|
||
|
working_files->OnChange(request->params);
|
||
|
clang_complete->NotifyEdit(path);
|
||
|
clang_complete->DiagnosticsUpdate(
|
||
|
request->params.textDocument.AsTextDocumentIdentifier());
|
||
|
}
|
||
|
};
|
||
|
REGISTER_MESSAGE_HANDLER(TextDocumentDidChangeHandler);
|