mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
59dd60d4dd
## Summary Further preparation for https://github.com/zed-industries/zed/pull/65047 - this PR changes the trait so thar we now register and unregister languages through a single call into the trait. This allows us to easier manage state depending on this - we previously always removed and readded everything, with this now in place, we instead get a diff that let's us know what changed and thus needs updating. That will be used in the linked PR as well. ## Testing Added some tests (actually most of the diff), other behavior is still the same, and also gave it a manual test run. Tests caugtht some edge cases with token rules previously unhandled which this PR now also takes care of. ## Self-review - [X] I've reviewed my diff for quality, security, reliability, and performance. - [N/A] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [X] Tests cover the new or changed behavior. Release Notes: - N/A --------- Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>