sortText default value is label, #66109

This commit is contained in:
Johannes Rieken
2019-09-09 11:04:18 +02:00
parent 0f1bd7721b
commit b4ead4ed66
+4
View File
@@ -161,6 +161,10 @@ export function provideSuggestionItems(
if (!suggestion.range) {
suggestion.range = defaultRange;
}
// fill in default sortText when missing
if (!suggestion.sortText) {
suggestion.sortText = suggestion.label;
}
allSuggestions.push(new CompletionItem(position, suggestion, container, provider, model));
}