You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1/bug] FormatterSettingsDialog doesn't show live preview of new format #355
FormatterSettingsDialog.tsx:148-159 (the SQL preview shows the editor's current content, not the formatted result).
Problem
The settings dialog has a SQL preview label but the preview is just the editor's current content, not formatted with the NEW settings. The user can change settings, click Save, then realize the new settings produce ugly output and have to undo. A live preview affordance is the standard expectation for a settings dialog of this kind.
Changing the "Keyword case" from UPPER to lower in the dialog instantly updates the preview to show lowercase SQL; clicking Save applies the same settings to the editor's Format button.
Proposed fix
Scope M — add a
showing the editor content formatted with the NEW settings (not the saved ones); update on every change. The postProcessSQL utility and sql-formatter library are the formatter engines.
Acceptance
Changing the "Keyword case" from UPPER to lower in the dialog instantly updates the preview to show lowercase SQL; clicking Save applies the same settings to the editor's Format button.
Activity
fix(theming): say what the next click does, and show settings before …