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 ScoreListItem method is a static method that scores a list item based on a search string and a command item. It is used to determine how well the list item matches the search criteria.
Parameters
query String
The search string used to score the list item. This string is typically the text entered by the user in the command palette.
listItem ICommandItem
The command item to be scored. This item represents a command or action that can be executed in the command palette.
Returns
An Integer representing the score of the list item based on the search string and command item.
Windows developer