public AutoCompleteItem(string name, AutoCompleteItemType type) { Name = name; Type = type; SurroundParamsWithParenthesis = true; }
private string GetSuggestionKindByItemType(AutoCompleteItemType itemType) { switch (itemType) { case AutoCompleteItemType.Variable: return(CompletionItemKind.Variable); case AutoCompleteItemType.Property: return(CompletionItemKind.Property); case AutoCompleteItemType.Method: return(CompletionItemKind.Method); case AutoCompleteItemType.Class: return(CompletionItemKind.Class); case AutoCompleteItemType.Namespace: return(CompletionItemKind.Keyword); default: throw new NotImplementedException(itemType.ToString() + " is not implemented"); } }
public AutoCompleteItem(string name, string[] parameters, AutoCompleteItemType type) : this(name, type) { Parameters = parameters; }
public AutoCompleteItem(string name, string info, AutoCompleteItemType type) : this(name, type) { Info = info; }