482
allowNonContiguousMatches && !query.expectContiguousMatch);
483
if (labelScore) {
485
>
// If we have a prefix match on the label, we give a much
486
>
// higher baseScore to elevate these matches over others
487
>
// This ensures that typing a file name wins over results
488
>
// that are present somewhere in the label, but not the
489
>
// beginning.
490
>
const labelPrefixMatch = matchesPrefix(query.normalized, label);
491
>
let baseScore: number;
492
>
if (labelPrefixMatch) {
493
baseScore = LABEL_PREFIX_SCORE_THRESHOLD;
494