We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27d0b9f commit 6d4e2a0Copy full SHA for 6d4e2a0
1 file changed
src/services/navigateTo.ts
@@ -176,8 +176,11 @@ namespace ts.NavigateTo {
176
function compareNavigateToItems(i1: RawNavigateToItem, i2: RawNavigateToItem): number {
177
// TODO(cyrusn): get the gamut of comparisons that VS already uses here.
178
// Right now we just sort by kind first, and then by name of the item.
179
+ // We first sort case insensitively. So "Aaa" will come before "bar".
180
+ // Then we sort case sensitively, so "aaa" will come before "Aaa".
181
return i1.matchKind - i2.matchKind ||
- ts.compareStringsCaseSensitive(i1.name, i2.name);
182
+ compareStringsCaseInsensitive(i1.name, i2.name) ||
183
+ compareStringsCaseSensitive(i1.name, i2.name);
184
}
185
186
function createNavigateToItem(rawItem: RawNavigateToItem): NavigateToItem {
0 commit comments