mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Improvements to extended mouseover during debugging
This commit is contained in:
parent
d9ba98486e
commit
ef942366db
2 changed files with 21 additions and 2 deletions
|
@ -1545,7 +1545,24 @@ namespace IDE.ui
|
|||
{
|
||||
if ((mIsShown) && (evalString.StartsWith(':')))
|
||||
{
|
||||
mDisplayString.Set(evalString.Substring(1));
|
||||
var listItem = mListView.GetRoot().GetChildAtIndex(0) as HoverListViewItem;
|
||||
bool isLiteral = listItem.Label == listItem.GetSubItem(1).Label;
|
||||
|
||||
StringView useStr = evalString.Substring(1);
|
||||
int crPos = useStr.IndexOf('\n');
|
||||
if (crPos != -1)
|
||||
useStr.RemoveToEnd(crPos);
|
||||
crPos = useStr.IndexOf('\r');
|
||||
if (crPos != -1)
|
||||
useStr.RemoveFromStart(crPos + 1);
|
||||
if (isLiteral)
|
||||
mDisplayString.Set(useStr);
|
||||
else
|
||||
{
|
||||
mDisplayString.Append('\n');
|
||||
mDisplayString.Append(useStr);
|
||||
}
|
||||
|
||||
Rehup();
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -5052,7 +5052,9 @@ namespace IDE.ui
|
|||
if ((mHoverResolveTask == null) &&
|
||||
((debugExpr == null) || (!debugExpr.StartsWith(':'))))
|
||||
{
|
||||
if ((!handlingHoverResolveTask) && (ResolveCompiler != null) && (!ResolveCompiler.mThreadWorkerHi.mThreadRunning) && (gApp.mSettings.mEditorSettings.mHiliteCursorReferences) && (!gApp.mDeterministic))
|
||||
|
||||
if (((!gApp.mDebugger.mIsRunning) || (!mHoverWatch.mIsShown)) && // Don't show extended information for debug watches
|
||||
(!handlingHoverResolveTask) && (ResolveCompiler != null) && (!ResolveCompiler.mThreadWorkerHi.mThreadRunning) && (gApp.mSettings.mEditorSettings.mHiliteCursorReferences) && (!gApp.mDeterministic))
|
||||
{
|
||||
ResolveParams resolveParams = new .();
|
||||
resolveParams.mOverrideCursorPos = (int32)textIdx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue