From 295e3b649aee865163016f598c968ce9099db2e8 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 3 Mar 2024 07:28:08 -0500 Subject: [PATCH] Fixed issue of symbol hilite disappearing when text files auto-reload --- IDE/src/ui/SourceEditWidgetContent.bf | 4 ++-- IDE/src/ui/SourceViewPanel.bf | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index 9c9faa6a..e15d09c8 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -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); } diff --git a/IDE/src/ui/SourceViewPanel.bf b/IDE/src/ui/SourceViewPanel.bf index 6194ce99..2321cfb1 100644 --- a/IDE/src/ui/SourceViewPanel.bf +++ b/IDE/src/ui/SourceViewPanel.bf @@ -643,6 +643,8 @@ namespace IDE.ui } } + public bool IsActiveBeefSource => mIsBeefSource && (FilteredProjectSource != null); + public this(SourceEmbedKind embedKind = .None) { mEmbedKind = embedKind;