Skip to content
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

Merged
merged 10 commits into from
Nov 29, 2019
Merged

Allow ThemeIcon for menu items #85814

merged 10 commits into from
Nov 29, 2019

Conversation

jrieken
Copy link
Member

@jrieken jrieken commented Nov 29, 2019

This PR is for #84695 and #85624

@jrieken jrieken self-assigned this Nov 29, 2019
@jrieken jrieken added this to the November 2019 milestone Nov 29, 2019
});
if (codicon) {
DOM.addClass(templateData.icon, codicon);
templateData.icon.className = iconClass ? `custom-view-tree-node-item-icon ${iconClass}` : '';
Copy link
Member Author

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')

Copy link
Member

@alexr00 alexr00 Nov 29, 2019

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.

Copy link
Member Author

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

Copy link
Member

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.

Copy link
Member

@alexr00 alexr00 left a 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.

@jrieken
Copy link
Member Author

jrieken commented Nov 29, 2019

Great - I will go ahead a merge this so that I have build on Monday against which I can continue my extension work.

@jrieken jrieken merged commit 614f365 into master Nov 29, 2019
@jrieken jrieken deleted the joh/themeicons branch November 29, 2019 15:48
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants