diff --git a/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vue b/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vue index 7997b02230..237a11d5e6 100644 --- a/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vue +++ b/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vue @@ -20,6 +20,7 @@ import { serializeSqlFormatterConfig, syncSqlFormatterConfigDraft, type SqlFormatterCase, + type SqlFormatterCommaPosition, type SqlFormatterExpressionWidth, type SqlFormatterFromClauseLayout, type SqlFormatterIndentStyle, @@ -83,6 +84,11 @@ const logicalOperatorOptions: { value: SqlFormatterLogicalOperatorNewline; label { value: "none", labelKey: "settings.sqlFormatterLogicalSameLine" }, ]; +const commaPositionOptions: { value: SqlFormatterCommaPosition; labelKey: string }[] = [ + { value: "after", labelKey: "settings.sqlFormatterCommaPositionAfter" }, + { value: "before", labelKey: "settings.sqlFormatterCommaPositionBefore" }, +]; + const fromClauseLayoutOptions: { value: SqlFormatterFromClauseLayout; labelKey: string }[] = [ { value: "newLine", labelKey: "settings.sqlFormatterFromNewLine" }, { value: "sameLine", labelKey: "settings.sqlFormatterFromSameLine" }, @@ -106,6 +112,7 @@ const sqlFormatterOptionLabelKeys: Record { +
+ + +
+ + +