internal void CreateCompletion(string text, ProbeCompletionType type, string description) { CreateCompletion(text, type, new ItemData { Description = description }, data => { return(data.Description != null ? Definition.QuickInfoMainLine(data.Description) : null); }); }
internal void CreateCompletion(string text, ProbeCompletionType type, ItemData itemData, Func <ItemData, object> descriptionCallback) { var ci = new CompletionItem(text, this, GetImageForCompletionType(type)); _items.Add(ci, new ItemDataNode { DescriptionCallback = descriptionCallback, ItemData = itemData }); }