Skip to content

Commit

Permalink
Merge pull request #70 from asuthy/keep-newline
Browse files Browse the repository at this point in the history
Add new option: keepNewline
  • Loading branch information
bradymholt authored Nov 3, 2023
2 parents 485acd7 + 2d0d5e0 commit 747fdfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ This extension has the following configuration settings:
* `pgFormatter.noComment` - Remove any comments (Default: `false`)
* `pgFormatter.noGrouping` - Add a newline between statements in transaction regroupement (Default: `false`)
* `pgFormatter.noExtraLine` - Do not add an extra empty line at end of the output (Default: `false`)
* `pgFormatter.keepNewline` - Preserve empty lines (Default: `false`)
* `pgFormatter.functionCase` - Case of the function names (Options: ["unchanged", "lowercase", "uppercase", "capitalize"]; Default: `"unchanged"`)
* `pgFormatter.keywordCase` - Case used for reserved keywords (Options: ["unchanged", "lowercase", "uppercase", "capitalize"]; Default: `"uppercase"`)
* `pgFormatter.typeCase` - Case used for data types (Options: ["unchanged", "lowercase", "uppercase", "capitalize"]; Default: `"lowercase"`)
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
"default": false,
"description": "Do not add an extra empty line at end of the file"
},
"pgFormatter.keepNewline": {
"type": "boolean",
"default": false,
"description": "Preserve empty lines"
},
"pgFormatter.functionCase": {
"type": "string",
"default": "unchanged",
Expand Down Expand Up @@ -209,6 +214,6 @@
"vscode-test": "^1.5.0"
},
"dependencies": {
"psqlformat": "1.20.0"
"psqlformat": "1.21.0"
}
}

0 comments on commit 747fdfa

Please sign in to comment.