Skip to content

Commit 64b01a8

Browse files
committed
do not use values
1 parent a2a82fa commit 64b01a8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/platform/theme/common/iconRegistry.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ class IconRegistry implements IIconRegistry {
166166
let reference = [];
167167
let docCss = [];
168168

169-
for (const i of Object.values(this.iconsById).sort(sorter)) {
169+
const contributions = Object.keys(this.iconsById).map(key => this.iconsById[key]);
170+
171+
for (const i of contributions.sort(sorter)) {
170172
reference.push(`|<i class="${classNames(i)}"></i>|${i.id}|${ThemeIcon.isThemeIcon(i.defaults) ? i.defaults.id : ''}|`);
171173

172174
if (!ThemeIcon.isThemeIcon((i.defaults))) {

0 commit comments

Comments
 (0)