mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
perf - pre-compute and cache lower case variants for label, sortText, and filterText
This commit is contained in:
@@ -675,7 +675,11 @@ class SuggestAdapter {
|
||||
insertText: undefined,
|
||||
additionalTextEdits: item.additionalTextEdits && item.additionalTextEdits.map(typeConvert.TextEdit.from),
|
||||
command: this._commands.toInternal(item.command),
|
||||
commitCharacters: item.commitCharacters
|
||||
commitCharacters: item.commitCharacters,
|
||||
// help with perf
|
||||
_labelLow: item.label.toLowerCase(),
|
||||
_filterTextLow: item.filterText && item.filterText.toLowerCase(),
|
||||
_sortTextLow: item.sortText && item.sortText.toLowerCase()
|
||||
};
|
||||
|
||||
// 'insertText'-logic
|
||||
|
||||
Reference in New Issue
Block a user