mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Added (partially-working) '-deterministic' debug cmd line param
This commit is contained in:
parent
5ac1bbf63f
commit
4678dcb9e5
3 changed files with 25 additions and 4 deletions
|
@ -948,6 +948,24 @@ namespace IDE.ui
|
|||
if (!mIsSourceCode)
|
||||
return true;
|
||||
|
||||
if (gApp.mDeterministic)
|
||||
{
|
||||
//return false;
|
||||
|
||||
if (resolveType == .GetCurrentLocation)
|
||||
return false;
|
||||
if (resolveType == .GetSymbolInfo)
|
||||
return true;
|
||||
|
||||
while ((BfResolveCompiler.mResolveAllWait != 0) ||
|
||||
(BfResolveCompiler.mThreadYieldCount != 0))
|
||||
{
|
||||
BfResolveCompiler.Update();
|
||||
}
|
||||
|
||||
BfResolveCompiler.WaitForBackground();
|
||||
}
|
||||
|
||||
if (resolveParams != null)
|
||||
resolveParams.mResolveType = resolveType;
|
||||
|
||||
|
@ -4947,7 +4965,7 @@ namespace IDE.ui
|
|||
{
|
||||
if (mHoverResolveTask == null)
|
||||
{
|
||||
if ((!handlingHoverResolveTask) && (ResolveCompiler != null) && (!ResolveCompiler.mThreadWorkerHi.mThreadRunning) && (gApp.mSettings.mEditorSettings.mHiliteCursorReferences))
|
||||
if ((!handlingHoverResolveTask) && (ResolveCompiler != null) && (!ResolveCompiler.mThreadWorkerHi.mThreadRunning) && (gApp.mSettings.mEditorSettings.mHiliteCursorReferences) && (!gApp.mDeterministic))
|
||||
{
|
||||
ResolveParams resolveParams = new .();
|
||||
resolveParams.mOverrideCursorPos = (int32)textIdx;
|
||||
|
@ -5921,7 +5939,7 @@ namespace IDE.ui
|
|||
if (BFApp.sApp.mIsUpdateBatchStart)
|
||||
sourceEditWidgetContent.mCursorStillTicks++;
|
||||
|
||||
if ((gApp.mSettings.mEditorSettings.mHiliteCursorReferences) && (HasFocus(true)) && (mProjectSource != null) /*&& (IDEApp.sApp.mSymbolReferenceHelper == null)*/)
|
||||
if ((gApp.mSettings.mEditorSettings.mHiliteCursorReferences) && (!gApp.mDeterministic) && (HasFocus(true)) && (mProjectSource != null) /*&& (IDEApp.sApp.mSymbolReferenceHelper == null)*/)
|
||||
{
|
||||
if ((mEditWidget.mHasFocus) && (mIsBeefSource) && (sourceEditWidgetContent.mCursorStillTicks == 10) && (!sourceEditWidgetContent.mCursorImplicitlyMoved) && (!sourceEditWidgetContent.mVirtualCursorPos.HasValue))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue