Index: clangd/index/dex/dexp/Dexp.cpp =================================================================== --- clangd/index/dex/dexp/Dexp.cpp +++ clangd/index/dex/dexp/Dexp.cpp @@ -52,6 +52,7 @@ std::vector getSymbolIDsFromIndex(StringRef QualifiedName, const SymbolIndex *Index) { FuzzyFindRequest Request; + Request.AnyScope = true; // Remove leading "::" qualifier as FuzzyFind doesn't need leading "::" // qualifier for global scope. bool IsGlobalScope = QualifiedName.consume_front("::"); @@ -134,6 +135,7 @@ FuzzyFindRequest Request; Request.Limit = Limit; Request.Query = Query; + Request.AnyScope = true; if (Scopes.getNumOccurrences() > 0) { SmallVector Scopes; StringRef(this->Scopes).split(Scopes, ',');