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

Made some fixes for not having a resolve compiler enabled

This commit is contained in:
Brian Fiete 2020-05-19 09:09:18 -07:00
parent e5e40811cf
commit 4fe6bcaa86
3 changed files with 14 additions and 8 deletions

View file

@ -563,7 +563,9 @@ namespace IDE.ui
Debug.WriteLine("DoAutoComplete ignored");
return;
}*/
if (ResolveCompiler == null)
return;
if (ResolveCompiler.mThreadWorkerHi.mThreadRunning)
{
@ -6173,7 +6175,7 @@ namespace IDE.ui
var symbolReferenceHelper = IDEApp.sApp.mSymbolReferenceHelper;
if (symbolReferenceHelper == null)
{
if (!compiler.mThreadWorkerHi.mThreadRunning)
if ((compiler != null) && (!compiler.mThreadWorkerHi.mThreadRunning))
{
ShowSymbolReferenceHelper(SymbolReferenceHelper.Kind.ShowFileReferences);
}
@ -6199,7 +6201,7 @@ namespace IDE.ui
mWantsCurrentLocation = true;
}
if ((mWantsCurrentLocation) && (!compiler.mThreadWorkerHi.mThreadRunning))
if ((mWantsCurrentLocation) && (compiler != null) && (!compiler.mThreadWorkerHi.mThreadRunning))
{
bool canClassify = true;
#if IDE_C_SUPPORT
@ -6221,7 +6223,7 @@ namespace IDE.ui
}
}
if ((mQueuedAutoComplete != null) & (!compiler.mThreadWorkerHi.mThreadRunning))
if ((mQueuedAutoComplete != null) & (compiler != null) && (!compiler.mThreadWorkerHi.mThreadRunning))
{
DoAutoComplete(mQueuedAutoComplete.mKeyChar, mQueuedAutoComplete.mOptions);
DeleteAndNullify!(mQueuedAutoComplete);