Skip to content

Commit

Permalink
sortText default value is label, #66109
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Sep 9, 2019
1 parent 0f1bd77 commit b4ead4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/editor/contrib/suggest/suggest.ts
Expand Up @@ -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));
}
Expand Down

0 comments on commit b4ead4e

Please sign in to comment.