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:
parent
3eeeaf647e
commit
959da9884c
10 changed files with 289 additions and 126 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue