1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00

Remove unnecessary pauses for build scripts

This commit is contained in:
Brian Fiete 2021-11-26 08:56:01 -08:00
parent 72064e7dc2
commit 0bb273b898

View file

@ -963,35 +963,38 @@ namespace IDE
return false;
}*/
if (gApp.mLastActiveSourceViewPanel != null)
if (!ScriptManager.sActiveManager.mIsBuildScript)
{
var sourceViewPanel = gApp.mLastActiveSourceViewPanel;
if (sourceViewPanel.HasFocus())
if (gApp.mLastActiveSourceViewPanel != null)
{
if (sourceViewPanel.[Friend]mOldVerLoadExecutionInstance != null)
return false;
if (!sourceViewPanel.mDeferredResolveResults.IsEmpty)
return false;
var sourceViewPanel = gApp.mLastActiveSourceViewPanel;
if (sourceViewPanel.HasFocus())
{
if (sourceViewPanel.[Friend]mOldVerLoadExecutionInstance != null)
return false;
if (!sourceViewPanel.mDeferredResolveResults.IsEmpty)
return false;
if (sourceViewPanel.[Friend]mWantsFastClassify)
return false;
if (sourceViewPanel.[Friend]mWantsFullClassify)
return false;
if (sourceViewPanel.[Friend]mWantsFullRefresh)
if (sourceViewPanel.[Friend]mWantsFastClassify)
return false;
if (sourceViewPanel.[Friend]mWantsFullClassify)
return false;
if (sourceViewPanel.[Friend]mWantsFullRefresh)
return false;
}
}
if ((gApp.mBfResolveCompiler != null) && (gApp.mBfResolveCompiler.IsPerformingBackgroundOperation()))
return false;
if (gApp.[Friend]mDeferredOpen != .None)
return false;
if ((gApp.mExecutionPaused) && (gApp.mDebugger.IsPaused()))
{
if (gApp.mWantsRehupCallstack)
return false;
}
}
if ((gApp.mBfResolveCompiler != null) && (gApp.mBfResolveCompiler.IsPerformingBackgroundOperation()))
return false;
if (gApp.[Friend]mDeferredOpen != .None)
return false;
if ((gApp.mExecutionPaused) && (gApp.mDebugger.IsPaused()))
{
if (gApp.mWantsRehupCallstack)
return false;
}
if (gApp.mWantsClean || gApp.mWantsBeefClean)
return false;
@ -1011,7 +1014,7 @@ namespace IDE
return false;
}
if (gApp.mDebugger == null)
if ((gApp.mDebugger == null) || (ScriptManager.sActiveManager.mIsBuildScript))
return true;
if ((!ScriptManager.sActiveManager.mIsBuildScript) && (gApp.AreTestsRunning()))