public static CompletionInfo[] GetCompletions(string input) { var result = new CompletionInfo[] {}; foreach (var plugin in completionPlugins) { var completions = plugin.GetCompletions(input); if (completions != null && completions.Length > 0) { result = result.Concat(completions).ToArray(); } } return result.OrderBy(x => x.code).ToArray(); }
static public CompletionInfo[] GetCompletions(string input) { var result = new CompletionInfo[] {}; foreach (var plugin in completionPlugins) { var completions = plugin.GetCompletions(input); if (completions != null && completions.Length > 0) { result = result.Concat(completions).ToArray(); } } return(result.OrderBy(x => x.code).ToArray()); }