keyboard navigation label provider

This commit is contained in:
Joao Moreno
2018-12-12 15:39:35 +01:00
parent 3c2a40f6f7
commit 446a961b9e
12 changed files with 31 additions and 31 deletions

View File

@@ -168,11 +168,11 @@ function toWorkbenchListOptions<T>(options: IListOptions<T>, configurationServic
options.openController = new WorkbenchOpenController(configurationService, options.openController);
if (options.typeLabelProvider) {
const tlp = options.typeLabelProvider;
if (options.keyboardNavigationLabelProvider) {
const tlp = options.keyboardNavigationLabelProvider;
options.typeLabelProvider = {
getTypeLabel(e) { return tlp.getTypeLabel(e); },
options.keyboardNavigationLabelProvider = {
getKeyboardNavigationLabel(e) { return tlp.getKeyboardNavigationLabel(e); },
mightProducePrintableCharacter(e) { return keybindingService.mightProducePrintableCharacter(e); }
};
}