diff --git a/src/query.cc b/src/query.cc index 329865b6..1ed0b5a1 100644 --- a/src/query.cc +++ b/src/query.cc @@ -806,7 +806,7 @@ void QueryDatabase::ImportOrUpdate(const std::vector& updat continue; existing->def = def; - if (def.declaring_type) + if (!def.is_local) UpdateDetailedNames(&existing->detailed_name_idx, SymbolKind::Var, it->second.id, def.detailed_name); } }