public IEnumerable <IntentionAction> CreateBulbItems() { foreach (IntentionAction intentionAction in BulbActionExtensions.ToQuickFixIntentions(this, null, UnnamedThemedIcons.Agent16x16.Id)) { yield return(intentionAction); } }
public IEnumerable <IntentionAction> CreateBulbItems() { var list = new List <IntentionAction>(); var anchor = _highlight.FileOnDisk.Count == 1 ? BulbMenuAnchors.FirstClassContextItems : (IAnchor) new SubmenuAnchor(BulbMenuAnchors.FirstClassContextItems, SubmenuBehavior.ExecutableDuplicateFirst); if (_highlight.FileOnDisk.Count > 1) { list.Add(BulbActionExtensions.ToQuickFixIntention(new RemoveFileBulb(_highlight.CurrentProject, _highlight.FileOnDisk.ToArray()), anchor, UnnamedThemedIcons.Agent16x16.Id)); } _highlight.FileOnDisk.ForEach(f => list.Add(BulbActionExtensions.ToQuickFixIntention(new RemoveFileBulb(_highlight.CurrentProject, new[] { f }), anchor, UnnamedThemedIcons.Agent16x16.Id)) ); return(list); }