Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The ListHelpers class provides static methods for working with lists of items in the command palette. It includes methods for filtering, scoring, and updating lists of items.
Methods
| Method | Description |
|---|---|
| FilterList(IEnumerable<IListItem>, String) | Filters a list of items based on a search string. |
| FilterList<T>(IEnumerable<T>, String, Func<String, T, Integer>) | Filters a list of items based on a search string and a scoring function. |
| InPlaceUpdateList<T>(IList<T>, IEnumerable<T>) | Updates a list of items in place. |
| ScoreListItem(String, ICommandItem) | Scores a list item based on a search string and a command item. |
Structs
| Struct | Description |
|---|---|
| ScoredListItem | Represents a scored list item. |
| Scored<T> | Represents a scored item of type T. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer