Example #1
0
 public ArgumentAutoCompletionResult AutoCompleteArguments(FileInfo item, string arguments)
 {
     if (string.IsNullOrWhiteSpace(arguments))
     {
         return(ArgumentAutoCompletionResult.NoResult(arguments));
     }
     return(ArgumentAutoCompletionResult.OrderedResult(arguments,
                                                       new[] { arguments }
                                                       .Concat(_sessionNames.Where(s => s.Contains(arguments)))
                                                       .Distinct()));
 }
Example #2
0
 public ArgumentAutoCompletionResult AutoCompleteArguments(string arguments)
 {
     return(ArgumentAutoCompletionResult.OrderedResult(arguments,
                                                       Sources.Select(s => s.GetType().Name + ":" + s.NeedsReindexing)));
 }