Skip to content

Commit 986d2e5

Browse files
committed
Make contiguous search case insensitive
1 parent 60d9842 commit 986d2e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/base/parts/quickinput/browser/quickInputList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ export function matchesContiguousIconAware(query: string, target: IParsedLabelWi
763763
}
764764

765765
function matchesContiguous(word: string, wordToMatchAgainst: string, enableSeparateSubstringMatching = false): IMatch[] | null {
766-
const matchIndex = wordToMatchAgainst.indexOf(word);
766+
const matchIndex = wordToMatchAgainst.toLowerCase().indexOf(word.toLowerCase());
767767
if (matchIndex !== -1) {
768768
return [{ start: matchIndex, end: matchIndex + word.length }];
769769
}

0 commit comments

Comments
 (0)