From f891543df7d842a71345baebb0a5e90f70fe7229 Mon Sep 17 00:00:00 2001 From: jeanp413 Date: Sat, 6 Feb 2021 18:57:17 -0500 Subject: [PATCH] Properly check for FuzzyScore.Default value. This was a regression from 37a4b96ae1820d21d215b460006e0baab471d6cc --- src/vs/base/common/filters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/base/common/filters.ts b/src/vs/base/common/filters.ts index 653587dc5e4..48f708a4421 100644 --- a/src/vs/base/common/filters.ts +++ b/src/vs/base/common/filters.ts @@ -547,8 +547,8 @@ export namespace FuzzyScore { */ export const Default: FuzzyScore = ([-100, 0]); - export function isDefault(score?: FuzzyScore): score is [-100, 0, 0] { - return !score || (score[0] === -100 && score[1] === 0 && score[2] === 0); + export function isDefault(score?: FuzzyScore): score is [-100, 0] { + return !score || (score.length === 2 && score[0] === -100 && score[1] === 0); } }