1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 08:06:04 +02:00

Working on properly rebuilding target even if we restart ide

This commit is contained in:
Brian Fiete 2019-09-28 09:48:37 -07:00
parent 3eeeaf647e
commit 959da9884c
10 changed files with 289 additions and 126 deletions

View file

@ -390,6 +390,11 @@ namespace IDE
{
mProject = project;
}
public ~this()
{
}
}
public enum ArgsFileKind
@ -7319,6 +7324,13 @@ namespace IDE
if (ignoreCommand)
{
// Nothing
if (let targetCompletedCmd = next as TargetCompletedCmd)
{
String projectBuildDir = scope String();
gApp.GetProjectBuildDir(targetCompletedCmd.mProject, projectBuildDir);
gApp.mBfBuildCompiler.SetBuildValue(projectBuildDir, "Link", "FAILED");
gApp.mBfBuildCompiler.WriteBuildCache(projectBuildDir);
}
}
else if (next is ProcessBfCompileCmd)
{
@ -11105,6 +11117,8 @@ namespace IDE
if (mBuildContext != null)
{
mBuildContext.mUpdateCnt++;
bool isCompiling = (!mExecutionInstances.IsEmpty) || (!mExecutionQueue.IsEmpty);
if (mBuildContext.mScriptManager != null)
{
@ -11429,7 +11443,13 @@ namespace IDE
if (editData.mQueuedContent == null)
editData.mQueuedContent = new String();
editData.mQueuedContent.Clear();
if (LoadTextFile(fileName, editData.mQueuedContent, false) case .Err(let err))
if (LoadTextFile(fileName, editData.mQueuedContent, false, scope() =>
{
if (editData.mLoadedHash.GetKind() != .None)
{
editData.mLoadedHash = SourceHash.Create(editData.mLoadedHash.GetKind(), editData.mQueuedContent);
}
}) case .Err(let err))
{
if (err case .FileOpenError(.SharingViolation))
{