|
|
|
@ -128,6 +128,9 @@ namespace ICSharpCode.AvalonEdit.AddIn.ContextActions
@@ -128,6 +128,9 @@ namespace ICSharpCode.AvalonEdit.AddIn.ContextActions
|
|
|
|
|
if (!editorRect.Contains(caretRect)) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
// Don't show the context action popup when the text editor is invisible, i.e., the Forms Designer is active.
|
|
|
|
|
if (PresentationSource.FromVisual(textView) == null) return; |
|
|
|
|
|
|
|
|
|
ContextActionsBulbViewModel popupVM = BuildPopupViewModel(); |
|
|
|
|
this.cancellationTokenSourceForPopupBeingOpened = new CancellationTokenSource(); |
|
|
|
|
var cancellationToken = cancellationTokenSourceForPopupBeingOpened.Token; |
|
|
|
|