Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ The following settings are supported:
* `yaml.format.bracketSpacing`: Print spaces between brackets in objects
* `yaml.format.proseWrap`: Always: wrap prose if it exeeds the print width, Never: never wrap the prose, Preserve: wrap prose as-is
* `yaml.format.printWidth`: Specify the line length that the printer will wrap on
* `yaml.format.doNotIndent`: Enabled do-not-indent style for sequence in mapping
* `yaml.format.commentSpacesFromContent`: Specify the amount of spaces before content and trailing comments on line
* `yaml.validate`: Enable/disable validation feature
* `yaml.hover`: Enable/disable hover
* `yaml.completion`: Enable/disable autocompletion
Expand Down
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@
"default": 80,
"description": "Specify the line length that the printer will wrap on"
},
"yaml.format.doNotIndent": {
"type": "boolean",
"default": false,
"description": "Enabled do-not-indent style for sequence in mapping"
},
"yaml.format.commentSpacesFromContent": {
"type": "integer",
"default": 1,
"description": "Specify the amount of spaces before content and trailing comments on line"
},
"yaml.validate": {
"type": "boolean",
"default": true,
Expand Down Expand Up @@ -201,7 +211,7 @@
"eslint-plugin-prettier": "^3.1.4",
"glob": "^7.1.6",
"mocha": "^8.0.1",
"prettier": "^2.0.5",
"prettier": "^2.4.0",
"rimraf": "^3.0.2",
"sinon": "^9.0.3",
"sinon-chai": "^3.5.0",
Expand Down