getCommandPaletteMatchScore
Scores how well a query matches an item's label and, failing that, its path. Returns 0 for no match (including an empty query); higher means a better match. Case- and accent-insensitive. Exact values may change between releases.
function getCommandPaletteMatchScore(
query: string,
label: string,
path?: readonly string[],
): number;Parameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
number;Prev
getColorStyleItemsNext
getCropBox