Exemplo n.º 1
0
        CompletionItem CreateNuGetCompletionItem(Tuple <string, FeedKind> info, XmlCompletionItemKind xmlCompletionItemKind)
        {
            var kindImage = provider.DisplayElementFactory.GetImageElement(info.Item2);
            var item      = new CompletionItem(info.Item1, this, kindImage);

            item.AddKind(xmlCompletionItemKind);
            item.Properties.AddProperty(typeof(Tuple <string, FeedKind>), info);
            item.AddDocumentationProvider(this);
            return(item);
        }
Exemplo n.º 2
0
        CompletionItem CreateCompletionItem(BaseInfo info, XmlCompletionItemKind xmlCompletionItemKind, string prefix = null)
        {
            var image = provider.DisplayElementFactory.GetImageElement(info);
            var item  = new CompletionItem(prefix == null ? info.Name : prefix + info.Name, this, image);

            item.AddDocumentationProvider(this);
            item.AddKind(xmlCompletionItemKind);
            item.Properties.AddProperty(typeof(BaseInfo), info);
            return(item);
        }