mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed some issues closing workspace while in comptime
This commit is contained in:
parent
856490755e
commit
6d3c660273
1 changed files with 32 additions and 19 deletions
|
@ -2516,9 +2516,16 @@ namespace IDE
|
|||
{
|
||||
if (mDebugger.mIsRunning)
|
||||
{
|
||||
if (mDebugger.mIsComptimeDebug)
|
||||
CancelBuild();
|
||||
mDebugger.StopDebugging();
|
||||
while (mDebugger.GetRunState() != .Terminated)
|
||||
{
|
||||
if (mDebugger.mIsComptimeDebug)
|
||||
{
|
||||
if (!mBfBuildCompiler.IsPerformingBackgroundOperation())
|
||||
break;
|
||||
}
|
||||
mDebugger.Update();
|
||||
}
|
||||
mDebugger.mIsRunning = false;
|
||||
|
@ -2526,6 +2533,9 @@ namespace IDE
|
|||
}
|
||||
mDebugger.DisposeNativeBreakpoints();
|
||||
mWantsRehupCallstack = false;
|
||||
|
||||
if (mDebugger.mIsComptimeDebug)
|
||||
mDebugger.Detach();
|
||||
}
|
||||
|
||||
void CloseWorkspace()
|
||||
|
@ -9644,6 +9654,8 @@ namespace IDE
|
|||
if ((processCompileCmd.mHadBeef) && (mVerbosity >= .Normal))
|
||||
OutputLine("Beef compilation time: {0:0.00}s", processCompileCmd.mStopwatch.ElapsedMilliseconds / 1000.0f);
|
||||
|
||||
if (!mWorkspace.mCompileInstanceList.IsEmpty)
|
||||
{
|
||||
var compileInstance = mWorkspace.mCompileInstanceList.Back;
|
||||
compileInstance.mCompileResult = .Failure;
|
||||
if (processCompileCmd.mBfPassInstance.mCompileSucceeded)
|
||||
|
@ -9668,6 +9680,7 @@ namespace IDE
|
|||
if (compileInstance.mCompileResult == .Success)
|
||||
compileInstance.mCompileResult = .PendingHotLoad;
|
||||
}
|
||||
}
|
||||
|
||||
if (processCompileCmd.mProfileCmd != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue