This commit is contained in:
Бондарев Иван 2018-01-09 20:26:04 +01:00
parent 58f392eb5e
commit 5e2a7d7014

View file

@ -142,7 +142,13 @@ namespace CodeCompletion
SymInfo[] syms = si.GetNamesAsInObject(ev);
SymInfo[] ext_syms = null;
if (si is ElementScope)
ext_syms = visitor.cur_scope.GetSymInfosForExtensionMethods((si as ElementScope).sc as TypeScope);
{
SymScope root_scope = visitor.cur_scope;
if (root_scope is ImplementationUnitScope)
root_scope = root_scope.topScope;
ext_syms = root_scope.GetSymInfosForExtensionMethods((si as ElementScope).sc as TypeScope);
}
List<SymInfo> lst = new List<SymInfo>();
lst.AddRange(syms);
if (ext_syms != null)