Skip to content

editor: Fix breadcrumb syntax colors not updating when theme changes#53185

Merged
SomeoneToIgnore merged 3 commits intozed-industries:mainfrom
smitchaudhary:fix/refresh_breadcrumbs_theme_change
Apr 11, 2026
Merged

editor: Fix breadcrumb syntax colors not updating when theme changes#53185
SomeoneToIgnore merged 3 commits intozed-industries:mainfrom
smitchaudhary:fix/refresh_breadcrumbs_theme_change

Conversation

@smitchaudhary
Copy link
Copy Markdown
Contributor

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

For testing, see the before:

image image

And see the after:

image image

Closes #53183

Release Notes:

  • Fixed breadcrumb syntax colors not updating when theme changes.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 5, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator Bot requested review from a team, as-cii and dinocosta and removed request for a team April 5, 2026 07:25
Copy link
Copy Markdown
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

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

Thank you, please add a test for this to ensure it does not regress.

https://github.com/zed-industries/zed/blob/9a8de58ae5b44bbef3961c841cb6955181313bf7/crates/editor/src/editor.rs#L25825 should help with this, and the test can be set up similar to how semantic tokens are tested.

@smitchaudhary
Copy link
Copy Markdown
Contributor Author

Hey! Sorry could not get to it during the week. I added the test. Please let me know if this is what you had in mind. I checked that it passes, and that without the fix, it fails.

Copy link
Copy Markdown
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

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

No worries at all, and thank you for the test, that looks exactly what's needed.

@SomeoneToIgnore
Copy link
Copy Markdown
Contributor

Ready to merge it once the CI style issue is fixed.

@smitchaudhary
Copy link
Copy Markdown
Contributor Author

Perfect. Tried to fix that as well.

@SomeoneToIgnore SomeoneToIgnore enabled auto-merge (squash) April 11, 2026 16:44
@SomeoneToIgnore SomeoneToIgnore merged commit 6af5ca3 into zed-industries:main Apr 11, 2026
31 checks passed
@smitchaudhary smitchaudhary deleted the fix/refresh_breadcrumbs_theme_change branch April 11, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

4 participants