-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ThemeIcon for menu items #85814
Conversation
}); | ||
if (codicon) { | ||
DOM.addClass(templateData.icon, codicon); | ||
templateData.icon.className = iconClass ? `custom-view-tree-node-item-icon ${iconClass}` : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexr00 fyi and for another pair of eyes. This adds support for ThemeIcons that are different than the file & folder constant, e.g new ThemeIcon('zap')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will correctly handle the codicon url that @eamodio added. Instead of checking for iconUrl
you might need to check for the scheme and authority as it currently does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plan is that this replaces the codicon-uri so that uris are used for resources on disk/web and that ThemeIcon is used for codicon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it. It is much simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tunnelView and customView LGTM.
Great - I will go ahead a merge this so that I have build on Monday against which I can continue my extension work. |
This PR is for #84695 and #85624