| title | ListHelpers Class definition | |||
|---|---|---|---|---|
| description | The ListHelpers class provides static methods for working with lists of items in the command palette. | |||
| ms.date | 2/25/2025 | |||
| ms.topic | reference | |||
| no-loc |
|
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.
| 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. |
| Struct | Description |
|---|---|
| ScoredListItem | Represents a scored list item. |
| Scored<T> | Represents a scored item of type T. |