From 1ade2e5ca156bbe21ae1d31be6591f0be87c5f6f Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Thu, 15 Jun 2017 18:38:40 -0700 Subject: [PATCH] Show more variables in global symbol search --- src/query.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }