示例#1
0

        
        public IEnumerable <ISuggestedAction> GetSuggestedActions(ITextView textView, ITextBuffer textBuffer, int caretPosition, Node node)
        {
            TextView   = textView;
            TextBuffer = textBuffer;

            yield return(new UninstallSuggestedAction(this, LibraryCommandService));

#pragma warning disable CA2000 // Dispose objects before losing scope
            var update = new UpdateSuggestedActionSet(this);
#pragma warning restore CA2000 // Dispose objects before losing scope

            if (update.HasActionSets)
            {
                yield return(update);
            }
        }