1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed autocomplete on fully-qualified global members

This commit is contained in:
Brian Fiete 2023-11-18 08:54:28 -05:00
parent f08ed7d976
commit 0ae87320af

View file

@ -2138,7 +2138,18 @@ bool BfAutoComplete::CheckMemberReference(BfAstNode* target, BfAstNode* dotToken
(!typeDef->mIsPartial) &&
((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);
}
}
}