Revert change in navigateTo

This commit is contained in:
Ron Buckton
2017-10-24 16:36:35 -07:00
parent 27d0b9f4fc
commit 6d4e2a006f

View File

@@ -176,8 +176,11 @@ namespace ts.NavigateTo {
function compareNavigateToItems(i1: RawNavigateToItem, i2: RawNavigateToItem): number {
// TODO(cyrusn): get the gamut of comparisons that VS already uses here.
// Right now we just sort by kind first, and then by name of the item.
// We first sort case insensitively. So "Aaa" will come before "bar".
// Then we sort case sensitively, so "aaa" will come before "Aaa".
return i1.matchKind - i2.matchKind ||
ts.compareStringsCaseSensitive(i1.name, i2.name);
compareStringsCaseInsensitive(i1.name, i2.name) ||
compareStringsCaseSensitive(i1.name, i2.name);
}
function createNavigateToItem(rawItem: RawNavigateToItem): NavigateToItem {