Files
Finn Evers 59dd60d4dd Refactor ExtensionLanguageProxy to provide only ExtensionLanguageProxy::update_languages (#65381)
## 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>
2026-10-21 16:49:51 +00:00
..