Skip to content

Wire selection and highlight colors in api#1150

Open
pierremtb wants to merge 1 commit intomainfrom
pierremtb/issue1149-wire-selection-and-highlight-colors-in-api
Open

Wire selection and highlight colors in api#1150
pierremtb wants to merge 1 commit intomainfrom
pierremtb/issue1149-wire-selection-and-highlight-colors-in-api

Conversation

@pierremtb
Copy link
Copy Markdown
Contributor

@pierremtb pierremtb commented Apr 1, 2026

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@c7bef4f). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1150   +/-   ##
=======================================
  Coverage        ?   30.35%           
=======================================
  Files           ?       34           
  Lines           ?     1591           
  Branches        ?        0           
=======================================
  Hits            ?      483           
  Misses          ?     1108           
  Partials        ?        0           
Flag Coverage Δ
unittests 30.35% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pierremtb pierremtb requested a review from adamchalmers April 2, 2026 05:40
pub highlight_color: Option<Color>,
/// The default color to use for selection
#[serde(default)]
pub selection_color: Option<Color>,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these fields required? I think we probably should also use #[builder(default)] so that it's not a breaking change.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

They're not required!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok I'll add it!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Interesting, I'm getting this error when just adding #[builder(default)]

error: `Option<_>` already implies a default of `None`, so explicit #[builder(default)] is redundant
    --> modeling-cmds/src/def_enum.rs:1601:23
     |
1601 |             #[builder(default)]
     |      

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.

Wire selection and highlight colors in api

4 participants