|
6 | 6 | import * as dom from 'vs/base/browser/dom';
|
7 | 7 | import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
|
8 | 8 | import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar';
|
9 |
| -import { HighlightedLabel } from 'vs/base/browser/ui/highlightedlabel/highlightedLabel'; |
10 | 9 | import { IconLabel, IIconLabelValueOptions } from 'vs/base/browser/ui/iconLabel/iconLabel';
|
11 | 10 | import { KeybindingLabel } from 'vs/base/browser/ui/keybindingLabel/keybindingLabel';
|
12 | 11 | import { IListRenderer, IListVirtualDelegate } from 'vs/base/browser/ui/list/list';
|
@@ -88,7 +87,7 @@ interface IListElementTemplateData {
|
88 | 87 | checkbox: HTMLInputElement;
|
89 | 88 | label: IconLabel;
|
90 | 89 | keybinding: KeybindingLabel;
|
91 |
| - detail: HighlightedLabel; |
| 90 | + detail: IconLabel; |
92 | 91 | separator: HTMLDivElement;
|
93 | 92 | actionBar: ActionBar;
|
94 | 93 | element: ListElement;
|
@@ -138,7 +137,7 @@ class ListElementRenderer implements IListRenderer<ListElement, IListElementTemp
|
138 | 137 |
|
139 | 138 | // Detail
|
140 | 139 | const detailContainer = dom.append(row2, $('.quick-input-list-label-meta'));
|
141 |
| - data.detail = new HighlightedLabel(detailContainer, true); |
| 140 | + data.detail = new IconLabel(detailContainer, { supportHighlights: true, supportIcons: true }); |
142 | 141 |
|
143 | 142 | // Separator
|
144 | 143 | data.separator = dom.append(data.entry, $('.quick-input-list-separator'));
|
@@ -173,7 +172,12 @@ class ListElementRenderer implements IListRenderer<ListElement, IListElementTemp
|
173 | 172 | data.keybinding.set(element.item.keybinding);
|
174 | 173 |
|
175 | 174 | // Meta
|
176 |
| - data.detail.set(element.saneDetail, detailHighlights); |
| 175 | + if (element.saneDetail) { |
| 176 | + data.detail.setLabel(element.saneDetail, undefined, { |
| 177 | + matches: detailHighlights, |
| 178 | + title: element.saneDetail |
| 179 | + }); |
| 180 | + } |
177 | 181 |
|
178 | 182 | // Separator
|
179 | 183 | if (element.separator && element.separator.label) {
|
|
0 commit comments