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

fix #7680 remove css escape for html class attribute #8083

Merged
merged 1 commit into from
Jul 5, 2020

Conversation

kesslerdev
Copy link
Contributor

What it does

How to test

  1. Start Theia on gitpod & install Material Icon Theme from open vsx registry

Without fix:
Sélection_061

With fix:
Sélection_062

Review checklist

Reminder for reviewers

@kesslerdev kesslerdev marked this pull request as draft June 24, 2020 10:48
@akosyakov akosyakov added theming issues related to theming vscode issues related to VSCode compatibility labels Jun 29, 2020
@akosyakov
Copy link
Member

sorry that it takes so long, any reason for draft? Could you sign ECA please that we can proceed: https://github.com/eclipse-theia/theia/blob/master/CONTRIBUTING.md#eclipse-contributor-agreement

@kesslerdev
Copy link
Contributor Author

sorry that it takes so long, any reason for draft? Could you sign ECA please that we can proceed: https://github.com/eclipse-theia/theia/blob/master/CONTRIBUTING.md#eclipse-contributor-agreement

Yes it's done

@kesslerdev kesslerdev marked this pull request as ready for review June 30, 2020 11:54
@akosyakov
Copy link
Member

akosyakov commented Jul 2, 2020

There is https://github.com/kesslerdev/theia/blob/471df16110403576e83d73628a9a0148aec7e0df/packages/plugin-ext/src/main/browser/plugin-icon-theme-service.ts#L339 method. Should not we rather improve it? It seems to be caused by CSS.escape, so maybe we just drop it and always replace all other characters with -. It would avoid any other regex lookups.

Signed-off-by: Jean-François Monnier <kessler.dev@gmail.com>
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

looks way better now, thank you!

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 change looks good to me, the file-icons for example are successfully displayed:

Screenshot from 2020-07-03 08-25-19
Screenshot from 2020-07-03 08-24-50

@akosyakov akosyakov merged commit dd9cb7c into eclipse-theia:master Jul 5, 2020
@kesslerdev kesslerdev deleted the fix-7680 branch July 6, 2020 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theming issues related to theming vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants