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:
parent
4193a1947d
commit
295e3b649a
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -643,6 +643,8 @@ namespace IDE.ui
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsActiveBeefSource => mIsBeefSource && (FilteredProjectSource != null);
|
||||
|
||||
public this(SourceEmbedKind embedKind = .None)
|
||||
{
|
||||
mEmbedKind = embedKind;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue