mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed autocomplete on fully-qualified global members
This commit is contained in:
parent
f08ed7d976
commit
0ae87320af
1 changed files with 12 additions and 1 deletions
|
@ -2138,7 +2138,18 @@ bool BfAutoComplete::CheckMemberReference(BfAstNode* target, BfAstNode* dotToken
|
||||||
(!typeDef->mIsPartial) &&
|
(!typeDef->mIsPartial) &&
|
||||||
((activeProject == NULL) || (activeProject->ContainsReference(typeDef->mProject))))
|
((activeProject == NULL) || (activeProject->ContainsReference(typeDef->mProject))))
|
||||||
{
|
{
|
||||||
AddTypeDef(typeDef, filter, onlyAttribute);
|
if (typeDef->IsGlobalsContainer())
|
||||||
|
{
|
||||||
|
auto type = mModule->ResolveTypeDef(typeDef, BfPopulateType_Declaration);
|
||||||
|
if (type != NULL)
|
||||||
|
{
|
||||||
|
auto typeInst = type->ToTypeInstance();
|
||||||
|
if (typeInst != NULL)
|
||||||
|
AddTypeMembers(typeInst, true, false, filter, typeInst, false, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
AddTypeDef(typeDef, filter, onlyAttribute);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue