Skip to content

Commit a4809ee

Browse files
committed
Add formatting option for trailing comma
See redhat-developer/yaml-language-server#1063, this PR requires that PR in order to work. Fixes redhat-developer#1112 Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent ff4606f commit a4809ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@
148148
"default": 80,
149149
"description": "Specify the line length that the printer will wrap on"
150150
},
151+
"yaml.format.trailingComma": {
152+
"type": "boolean",
153+
"default": true,
154+
"description": "Specify if trailing commas should be used in JSON-like segments of the YAML"
155+
},
151156
"yaml.validate": {
152157
"type": "boolean",
153158
"default": true,

0 commit comments

Comments
 (0)