Files
zed/crates
ishaksebsib 8762b7f503 Reuse existing bundled file editors (#51053)
Closes #46837

Reuse the existing read-only bundled editor when opening default
settings or default key bindings again, instead of creating a duplicate
tab each time.

Also adds a regression test covering repeated `OpenDefaultSettings`
dispatches.

### Before


https://github.com/user-attachments/assets/ac2477b0-dc57-451c-a400-667c3613da2c


### After


https://github.com/user-attachments/assets/309fbd32-6dad-40a0-a864-b638a583ef52



Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed default settings and default key bindings reopening duplicate
tabs instead of reusing the existing tab.
2026-03-08 13:48:08 -04:00
..
2026-02-12 01:06:23 +00:00
2026-02-12 01:06:23 +00:00
2026-02-26 18:36:50 +01:00
2026-02-12 01:06:23 +00:00
2026-02-12 01:06:23 +00:00
2026-02-12 01:06:23 +00:00