ZIm/assets
Peter Tripp 899153d9a4
Stop formatting SQL by default with prettier (#32268)
- Closes: https://github.com/zed-industries/zed/discussions/32261
- Follow-up to: https://github.com/zed-extensions/sql/pull/19
- Follow-up to: https://github.com/zed-industries/zed/pull/32003

The underlying `sql-formatter` used by `prettier-plugin-sql` needs to
have the SQL dialect (mysql, postgresql) passed as the prettier language
name, while Zed passes `sql`, which default will corrupt sql files with
vendor specific extensions (postgresql jsonb operators, etc).

I improved the [Zed SQL Language
Docs](https://zed.dev/docs/languages/sql) in
https://github.com/zed-industries/zed/pull/32003 to show how to use
`sql-formatter` directly as an external formatter.

Release Notes:

- SQL: Disable `format_on_save` using `prettier-plugin-sql` by default.
Please see the [Zed SQL Language
Docs](https://zed.dev/docs/languages/sql) for settings to use
`sql-formatter` directly instead.
2025-06-06 17:21:46 -04:00
..
fonts Fix font selection on macOS (#13615) 2024-06-27 17:02:45 -06:00
icons agent: Allow to accept and reject all via the panel (#31971) 2025-06-03 15:20:25 -03:00
images Add Zed Pro Trial Upsell (#29938) 2025-05-05 18:46:54 -04:00
keymaps vim: Enable window shortcuts in Agent panel (#31000) 2025-06-06 17:20:04 +00:00
prompts assistant: Partial fix for HTML entities in tools params (#32148) 2025-06-05 10:36:55 +00:00
settings Stop formatting SQL by default with prettier (#32268) 2025-06-06 17:21:46 -04:00
sounds agent: Add sound notification when done generating (#31472) 2025-05-26 21:20:41 -03:00
themes Improve CSS syntax highlighting (#25326) 2025-06-06 17:14:32 -04:00