getCommandPaletteMatchScore

See source code

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

NameDescription

query

string;

label

string;

path

readonly string[];

Returns

number;
Prev
getColorStyleItems
Next
getCropBox