using Microsoft.CodeAnalysis.Completion;
using RoslynPad.Roslyn.CodeActions;

namespace RoslynPad.Roslyn.Completion
{
    public static class CompletionItemExtensions
    {
        public static Glyph GetGlyph(this CompletionItem completionItem) => CodeActionExtensions.GetGlyph(completionItem.Tags);

        public static CompletionDescription GetDescription(this CompletionItem completionItem) => CommonCompletionItem.GetDescription(completionItem);
    }
}
