atom-beautify
atom-beautify copied to clipboard
Suport sqlformat wrap_after option
Description
Formatted sql results in almost empty lines. wrap_after option seems to be what it is needed to fix this.
Input Before Beautification
This is what the code looked like before:
select id from table where col in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Expected Output
The beautified code should have looked like this:
SELECT id
FROM TABLE
WHERE col in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Actual Output
The beautified code actually looked like this:
SELECT id
FROM TABLE
WHERE col in (?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?)
Steps to Reproduce
- Add code to Atom editor
- Run command
Atom Beautify: Beautify Editor
- This beautified code does not look right!
Debug
Here is a link to the debug.md
Gist: https://gist.github.com/cdalexndr/c4b42cedb4f2fcc870aeb3bdc2bcfceb
Checklist
I have:
- [x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly (freshly installed)
- [x] Reloaded (or restarted) Atom to ensure it is not a caching issue
- [x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues so I know this is not a duplicate issue
- [x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
- [x] Generated debugging information by executing
Atom Beautify: Help Debug Editor
command in Atom and added link fordebug.md
Gist to this issue
If you still need this and are looking for something to fill the spot that Atom left, I am using Pulsar the successor to Atom... This package is working except for one deprecated error listed in #2605
If you don't need this anymore, can you please close this out so it's not just sitting there? Thanks