mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed deferred mouseover hoverwatch mismatch
This commit is contained in:
parent
72cb353515
commit
a17f57f4c6
3 changed files with 6 additions and 6 deletions
|
@ -4951,7 +4951,7 @@ namespace IDE.ui
|
||||||
if ((!String.IsNullOrEmpty(mHoverResolveTask?.mResult)))
|
if ((!String.IsNullOrEmpty(mHoverResolveTask?.mResult)))
|
||||||
{
|
{
|
||||||
origDebugExpr = scope:: String();
|
origDebugExpr = scope:: String();
|
||||||
origDebugExpr.Set(debugExpr);
|
origDebugExpr.Set("");
|
||||||
|
|
||||||
debugExpr.Set(mHoverResolveTask.mResult);
|
debugExpr.Set(mHoverResolveTask.mResult);
|
||||||
|
|
||||||
|
|
|
@ -570,7 +570,7 @@ void BfAutoComplete::AddTypeDef(BfTypeDef* typeDef, const StringImpl& filter, bo
|
||||||
auto typeInst = mModule->ResolveTypeDef(typeDef, BfPopulateType_IdentityNoRemapAlias);
|
auto typeInst = mModule->ResolveTypeDef(typeDef, BfPopulateType_IdentityNoRemapAlias);
|
||||||
StringT<1024> str;
|
StringT<1024> str;
|
||||||
if (typeInst != NULL)
|
if (typeInst != NULL)
|
||||||
str = mModule->TypeToString(typeInst, BfTypeNameFlag_ExtendedInfo);
|
str = mModule->TypeToString(typeInst, (BfTypeNameFlags)(BfTypeNameFlag_ExtendedInfo | BfTypeNameFlag_ResolveGenericParamNames));
|
||||||
if (typeDef->mTypeDeclaration->mDocumentation != NULL)
|
if (typeDef->mTypeDeclaration->mDocumentation != NULL)
|
||||||
{
|
{
|
||||||
if (!str.IsEmpty())
|
if (!str.IsEmpty())
|
||||||
|
@ -2627,7 +2627,7 @@ void BfAutoComplete::CheckVarResolution(BfAstNode* varTypeRef, BfType* resolvedT
|
||||||
if (mResolveType == BfResolveType_GetResultString)
|
if (mResolveType == BfResolveType_GetResultString)
|
||||||
{
|
{
|
||||||
mResultString = ":";
|
mResultString = ":";
|
||||||
mResultString += mModule->TypeToString(resolvedType);
|
mResultString += mModule->TypeToString(resolvedType, (BfTypeNameFlags)(BfTypeNameFlag_ExtendedInfo | BfTypeNameFlag_ResolveGenericParamNames));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2651,11 +2651,11 @@ void BfAutoComplete::CheckResult(BfAstNode* node, const BfTypedValue& typedValue
|
||||||
auto constant = mModule->mBfIRBuilder->GetConstant(typedValue.mValue);
|
auto constant = mModule->mBfIRBuilder->GetConstant(typedValue.mValue);
|
||||||
if (BfIRConstHolder::IsInt(constant->mTypeCode))
|
if (BfIRConstHolder::IsInt(constant->mTypeCode))
|
||||||
{
|
{
|
||||||
mResultString = StrFormat("%lld", constant->mInt64);
|
mResultString = StrFormat(":%lld", constant->mInt64);
|
||||||
}
|
}
|
||||||
else if (BfIRConstHolder::IsFloat(constant->mTypeCode))
|
else if (BfIRConstHolder::IsFloat(constant->mTypeCode))
|
||||||
{
|
{
|
||||||
mResultString = StrFormat("%f", constant->mDouble);
|
mResultString = StrFormat(":%f", constant->mDouble);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4304,7 +4304,7 @@ void BfCompiler::ProcessAutocompleteTempType()
|
||||||
if (autoComplete->mResolveType == BfResolveType_GetResultString)
|
if (autoComplete->mResolveType == BfResolveType_GetResultString)
|
||||||
{
|
{
|
||||||
autoComplete->mResultString = ":";
|
autoComplete->mResultString = ":";
|
||||||
autoComplete->mResultString += module->TypeToString(typeInst);
|
autoComplete->mResultString += module->TypeToString(typeInst, (BfTypeNameFlags)(BfTypeNameFlag_ExtendedInfo | BfTypeNameFlag_ResolveGenericParamNames));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue