void OnQuickFixCommand()
        {
            if (!QuickTaskStrip.EnableFancyFeatures)
            {
                Fixes = RefactoringService.GetValidActions(Document, Document.Editor.Caret.Location).Result;
                currentSmartTagBegin = Document.Editor.Caret.Location;
                PopupQuickFixMenu(null, null);

                return;
            }
            if (currentSmartTag == null)
            {
                return;
            }
            currentSmartTag.Popup();
        }
Exemplo n.º 2
0
 void OnQuickFixCommand()
 {
     if (!QuickTaskStrip.EnableFancyFeatures)
     {
         var w = new CodeActionWidget(this, Document);
         w.SetFixes(RefactoringService.GetValidActions(Document, Document.Editor.Caret.Location).Result, Document.Editor.Caret.Location);
         w.PopupQuickFixMenu();
         w.Destroy();
         return;
     }
     if (currentSmartTag == null)
     {
         return;
     }
     currentSmartTag.Popup();
 }