zed/crates/keymap_editor
Oleksandr Kholiavko fa08e50346
Remove const generics from data table (runtime column count support) (#46341)
This PR removes the const generics limitation from the data table
component, enabling tables with a dynamic number of columns determined
at runtime.

**Context:**  
This is the next infrastructure step split out from the [original CSV
preview draft PR](https://github.com/zed-industries/zed/pull/44344). The
draft PR remains open as a reference and will continue to be decomposed
into smaller, reviewable pieces.

**Details:**  
- Introduces a `TableRow` newtype to enforce column count invariants at
runtime, replacing the previous const generic approach. It's api surface
is larger than is currently used, as it's planned to be used in CSV
feature itself.
- Refactors the data table and all usages (including the keymap editor)
to work with runtime column counts.
- This change is foundational for supporting CSV preview and other
features that require flexible, dynamic tables.
- Performance impact has not been formally measured, but there is no
noticeable slowdown in practice.

---

Release Notes:
- N/A (internal infrastructure change, no user impact)

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>
2026-01-08 17:32:38 -05:00
..
src Remove const generics from data table (runtime column count support) (#46341) 2026-01-08 17:32:38 -05:00
Cargo.toml chore: Fix build graph - again (#42999) 2025-11-18 19:20:34 +01:00
LICENSE-GPL settings ui: Start work on creating the initial structure (#36904) 2025-08-29 16:56:10 -04:00