提交 d4e4365b 编写于 作者: J Johannes Rieken

actually render codicons correctly

上级 be257638
......@@ -252,9 +252,10 @@ export class MenuEntryActionViewItem extends ActionViewItem {
} else if (ThemeIcon.isThemeIcon(item.icon)) {
// theme icons ~ support codicon only...
const match = /codicon\.([a-zA-Z~]+)/.exec(item.icon.id);
const iconClass = match && match[1];
if (this.label && iconClass) {
const match = /codicon\.([a-z~-]+)/i.exec(item.icon.id);
const name = match && match[1];
if (this.label && name) {
const iconClass = `codicon-${name}`;
addClasses(this.label, 'codicon', iconClass);
this._itemClassDispose.value = toDisposable(() => {
if (this.label) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册