diff --git a/src/vs/editor/contrib/suggest/browser/suggestWidget.ts b/src/vs/editor/contrib/suggest/browser/suggestWidget.ts index 70e17243523528b33c677c704e015ac56db860d4..d147c4ce1bdeeeb468957f404a8b3fb935c114e1 100644 --- a/src/vs/editor/contrib/suggest/browser/suggestWidget.ts +++ b/src/vs/editor/contrib/suggest/browser/suggestWidget.ts @@ -39,17 +39,13 @@ function completionGroupCompare(one: CompletionGroup, other: CompletionGroup): n function completionItemCompare(item: CompletionItem, otherItem: CompletionItem): number { const suggestion = item.suggestion; const otherSuggestion = otherItem.suggestion; - let result = 0; - if (typeof suggestion.sortText === 'string' && typeof otherSuggestion.sortText === 'string') { - result = suggestion.sortText < otherSuggestion.sortText ? -1 : 1; - } - - if (result !== 0) { - return result; - } + // TODO@jrieken + // if (typeof suggestion.sortText === 'string' && typeof otherSuggestion.sortText === 'string') { + // return suggestion.sortText < otherSuggestion.sortText ? -1 : 1; + // } - return suggestion.label < otherSuggestion.label ? -1 : 1; + return suggestion.label.toLowerCase() < otherSuggestion.label.toLowerCase() ? -1 : 1; } class CompletionItem {