string GetDescription(CompletionEntryDetails entryDetails) { return(String.Format( "{0} {1}", GetFullSymbolName(entryDetails), GetDocCommentPrecededByNewLine(entryDetails))); }
string GetDocCommentPrecededByNewLine(CompletionEntryDetails entryDetails) { if ((entryDetails.documentation == null) || (entryDetails.documentation.Length == 0)) { return(String.Empty); } return(String.Format("\r\n{0}", entryDetails.documentation[0].text)); }
string GetDescription() { CompletionEntryDetails entryDetails = completionDetailsProvider.GetCompletionEntryDetails(entry.name); if (entryDetails == null) { return(entry.name); } return(GetDescription(entryDetails)); }
static string GetFullSymbolName(CompletionEntryDetails entryDetails) { if (entryDetails.displayParts == null) { return(String.Empty); } var name = new StringBuilder(); foreach (SymbolDisplayPart part in entryDetails.displayParts) { name.Append(part.text); } return(name.ToString()); }