mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 12:55:59 +02:00
Work on deferred projects
This commit is contained in:
parent
97d9a4508d
commit
8393f7abde
3 changed files with 21 additions and 4 deletions
|
@ -506,7 +506,7 @@ namespace IDE.ui
|
|||
if ((projectSource != null) && (gApp.IsProjectSourceEnabled(projectSource)))
|
||||
{
|
||||
var resolveCompiler = gApp.GetProjectCompilerForFile(projectSource.mName);
|
||||
if (resolveCompiler != null)
|
||||
if ((resolveCompiler != null) && (gApp.mWorkspace.mProjectLoadState == .Loaded))
|
||||
{
|
||||
resolveCompiler.QueueProjectSource(projectSource, .None, false);
|
||||
resolveCompiler.QueueDeferredResolveAll();
|
||||
|
@ -2227,6 +2227,8 @@ namespace IDE.ui
|
|||
//handled = true;
|
||||
isFailedLoad = true;
|
||||
}
|
||||
else if (project.mDeferState != .None)
|
||||
isFailedLoad = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2456,7 +2458,6 @@ namespace IDE.ui
|
|||
menu.AddItem();
|
||||
}
|
||||
|
||||
//menu.AddItem();
|
||||
if (!isFailedLoad)
|
||||
{
|
||||
item = menu.AddItem("New Folder");
|
||||
|
|
|
@ -1176,6 +1176,9 @@ namespace IDE.ui
|
|||
resolveParams.mParser = bfSystem.FindParser(projectSource);
|
||||
//if (mCurParser != null)
|
||||
{
|
||||
if (gApp.mWorkspace.mProjectLoadState != .Loaded)
|
||||
return false;
|
||||
|
||||
if (!isHi)
|
||||
Debug.Assert(!mIsPerformingBackgroundClassify);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue