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

Replace instanceof ThemeIcon with an is method #10012

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

msujew
Copy link
Member

@msujew msujew commented Aug 31, 2021

What it does

Closes #10010

Replaces the instanceof calls for ThemeIcons with an is method. If anyone knows a better way of fixing this, please comment.

Also, there are a few other instanceof calls combined with es5Compatibility annotations, but they seem to work, as far as I can tell.

How to test

  1. Install the npm extension (built-in)
  2. Open the npm view
  3. Notice the missing icon on master and existing icon on this PR.

Review checklist

Reminder for reviewers

@msujew msujew added the vscode issues related to VSCode compatibility label Aug 31, 2021
@msujew msujew requested a review from paul-marechal August 31, 2021 14:19
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me, and work well 👍

I confirmed that ThemeIcons are now present for tree-views for different file-icon themes.

@paul-marechal paul-marechal merged commit 28187ee into master Aug 31, 2021
@github-actions github-actions bot added this to the 1.18.0 milestone Aug 31, 2021
@paul-marechal paul-marechal modified the milestones: 1.18.0, 1.17.1 Aug 31, 2021
@paul-marechal paul-marechal deleted the msujew/theme-icon-instanceof branch August 31, 2021 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ThemeIcons used by vscode extensions do not load correctly
3 participants