Open musjj opened 1 week ago
ok! i’ll try.
Hmm, I also think it might be best to use the format feature of LSP. Let me be discreet, please.
Using the LSP formatter feels more consistent with the SQL in the SQL file and the raw SQL in the other files, and feels like the right way to go.
LSP formatters are great, but the nice thing about external formatters is that you can trigger them in a CI. Though I guess you currently can't use the formatter for embedded sql strings.
It would be nice if you can customize sql-formatter. For example to automatically have uppercase keywords:
.sql-formatter.json
It seems that the config file is ignored currently.