mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-15 00:14:20 +01:00
sortText default value is label, #66109
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user