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

feat(elements): add Rust syntax highlighting & icon #3181

Merged
merged 8 commits into from
May 13, 2024

Conversation

max-te
Copy link
Contributor

@max-te max-te commented May 12, 2024

As @hugo-vrijswijk suggested in #3151, this adds syntax highlighting and file icons for the Rust language. This will help integrating cargo-mutants output. The included example report.json is a result of my experimental conversion process.

Copy link
Member

@hugo-vrijswijk hugo-vrijswijk left a comment

Choose a reason for hiding this comment

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

Thanks! Do you think you could replace the dark-mode file icon with a lighter colour? In light mode it looks great, but in dark mode you can't really see the icon:
image

Updated:
image

packages/elements/src/lib/code-helpers.ts Show resolved Hide resolved
@hugo-vrijswijk hugo-vrijswijk linked an issue May 13, 2024 that may be closed by this pull request
@hugo-vrijswijk hugo-vrijswijk enabled auto-merge (squash) May 13, 2024 07:59
Copy link

bundlemon bot commented May 13, 2024

BundleMon (elements)

Files updated (3)
Status Path Size Limits
index.js
267.85KB (+7.38KB +2.83%) -
index.cjs
196.98KB (+5.98KB +3.13%) -
mutation-test-elements.js
196.99KB (+5.98KB +3.13%) -

Total files change +19.35KB +3.01%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@hugo-vrijswijk hugo-vrijswijk merged commit 795b1d3 into stryker-mutator:master May 13, 2024
7 checks passed
@hugo-vrijswijk
Copy link
Member

Thanks for this PR! I've released this in 3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elements does not support rust highlighting
2 participants