diff options
Diffstat (limited to 'main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeActions')
-rw-r--r-- | main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeActions/CodeActionEditorExtension.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeActions/CodeActionEditorExtension.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeActions/CodeActionEditorExtension.cs index 9c3b135e75..ea74e0f17b 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeActions/CodeActionEditorExtension.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeActions/CodeActionEditorExtension.cs @@ -607,12 +607,12 @@ namespace MonoDevelop.CodeActions currentSmartTag.Popup (); } + static readonly List<CodeAction> emptyList = new List<CodeAction> (); internal List<CodeAction> GetCurrentFixes () { - if (currentSmartTag == null) + if (QuickTaskStrip.EnableFancyFeatures && currentSmartTag == null) return RefactoringService.GetValidActions (document, document.Editor.Caret.Location).Result.ToList (); - return currentSmartTag.fixes; + return currentSmartTag == null ? emptyList : currentSmartTag.fixes; } } -} - +}
\ No newline at end of file |