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

Fixed issue of symbol hilite disappearing when text files auto-reload

This commit is contained in:
Brian Fiete 2024-03-03 07:28:08 -05:00
parent 4193a1947d
commit 295e3b649a
2 changed files with 4 additions and 2 deletions

View file

@ -5221,7 +5221,7 @@ namespace IDE.ui
public override void InsertText(int index, String text)
{
if ((IDEApp.sApp.mSymbolReferenceHelper != null) && (mSourceViewPanel != null))
if ((IDEApp.sApp.mSymbolReferenceHelper != null) && (mSourceViewPanel != null) && (mSourceViewPanel.IsActiveBeefSource))
IDEApp.sApp.mSymbolReferenceHelper.SourcePreInsertText(this, index, text);
for (var persistentTextPosition in PersistentTextPositions)
@ -5260,7 +5260,7 @@ namespace IDE.ui
}
if ((mSourceViewPanel != null) && (IDEApp.sApp.mSymbolReferenceHelper != null))
if ((mSourceViewPanel != null) && (IDEApp.sApp.mSymbolReferenceHelper != null) && (mSourceViewPanel.IsActiveBeefSource))
IDEApp.sApp.mSymbolReferenceHelper.SourceUpdateText(this, index);
}

View file

@ -643,6 +643,8 @@ namespace IDE.ui
}
}
public bool IsActiveBeefSource => mIsBeefSource && (FilteredProjectSource != null);
public this(SourceEmbedKind embedKind = .None)
{
mEmbedKind = embedKind;