feat(grid): add configurable table search mode

This commit is contained in:
t8y2 committed 2026-07-04 12:02:55 +08:00
1 parent 4f8fb1068d
commit d8047a77b4
6 files changed
+108 -25

No files matched your search

@@ -50,4 +50,10 @@ describe("normalizeEditorSettings", () => {
expect(normalizeEditorSettings({ updateDownloadSource: "atomgit" }).updateDownloadSource).toBe("atomgit");
expect(normalizeEditorSettings({ updateDownloadSource: "mirror" as any }).updateDownloadSource).toBe("official");
});
it("defaults data grid search to row filtering and preserves highlight mode", () => {
expect(normalizeEditorSettings({}).dataGridSearchMode).toBe("filter");
expect(normalizeEditorSettings({ dataGridSearchMode: "highlight" }).dataGridSearchMode).toBe("highlight");
expect(normalizeEditorSettings({ dataGridSearchMode: "invalid" as any }).dataGridSearchMode).toBe("filter");
});
});