mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-15 05:12:13 +00:00
early return and add a comment
This commit is contained in:
parent
e55cc6865c
commit
5d401fc95d
@ -27,7 +27,10 @@ REFLECT_STRUCT(SymbolInformation, name, kind, location, containerName);
|
||||
|
||||
void MessageHandler::workspace_didChangeConfiguration(JsonReader &reader) {
|
||||
auto it = reader.m->FindMember("settings");
|
||||
if (it != reader.m->MemberEnd() && it->value.IsObject()) {
|
||||
if (!(it != reader.m->MemberEnd() && it->value.IsObject()))
|
||||
return;
|
||||
|
||||
// Similar to MessageHandler::initialize.
|
||||
rapidjson::StringBuffer output;
|
||||
rapidjson::Writer<rapidjson::StringBuffer> writer(output);
|
||||
JsonReader m1(&it->value);
|
||||
@ -46,7 +49,6 @@ void MessageHandler::workspace_didChangeConfiguration(JsonReader &reader) {
|
||||
project->index(wfiles, RequestId());
|
||||
|
||||
manager->clear();
|
||||
}
|
||||
}
|
||||
|
||||
void MessageHandler::workspace_didChangeWatchedFiles(
|
||||
|
Loading…
Reference in New Issue
Block a user