CompletionItem CreateCompletionItem(BaseInfo info, MSBuildRootDocument doc, MSBuildResolveResult rr) { var image = DisplayElementFactory.GetImageElement(info); var item = new CompletionItem(info.Name, this, image); item.AddDocumentationProvider(this); item.Properties.AddProperty(typeof(BaseInfo), info); return(item); }
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); }
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); }