feat(editor): add table ddl hover preview switch

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-01 00:20:34 +08:00
1 parent f958bf4602
commit 5eb071bc22
17 files changed
+54 -2

No files matched your search

@@ -37,7 +37,7 @@ describe("EditorSettingsDialog live preview placement", () => {
expect(dialogSource.match(/ref="previewRef"/g)).toHaveLength(1);
expect(editorSection).not.toContain('ref="previewRef"');
for (const id of ["editor-show-statement-run-buttons", "editor-show-line-numbers", "editor-show-current-statement-frame", "editor-sql-semantic-diagnostics"]) {
for (const id of ["editor-show-statement-run-buttons", "editor-show-line-numbers", "editor-show-current-statement-frame", "editor-sql-semantic-diagnostics", "editor-show-table-ddl-hover-preview"]) {
expect(editorSection.indexOf(`id="${id}"`)).toBeGreaterThan(previewControls);
expect(editorSection.indexOf(`id="${id}"`)).toBeLessThan(executeMode);
expect(editorSection.match(new RegExp(`id="${id}"`, "g"))).toHaveLength(1);