feat(editor): configure multi-statement result view

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-08-28 16:52:02 +08:00
1 parent fd17037a2a
commit b4787a63af
17 files changed
+112 -6

No files matched your search

@@ -276,6 +276,12 @@ describe("normalizeEditorSettings", () => {
expect(normalizeEditorSettings({ resultRunDisplayMode: "invalid" as any }).resultRunDisplayMode).toBe("tabs");
});
it("defaults multi-statement execution to the result table and preserves the summary option", () => {
expect(normalizeEditorSettings({}).multiStatementDefaultView).toBe("result");
expect(normalizeEditorSettings({ multiStatementDefaultView: "summary" }).multiStatementDefaultView).toBe("summary");
expect(normalizeEditorSettings({ multiStatementDefaultView: "invalid" as any }).multiStatementDefaultView).toBe("result");
});
it("defaults persistent data grid view options off and preserves enabled values", () => {
const defaults = normalizeEditorSettings({});
expect(defaults.dataGridMultiRowTranspose).toBe(false);