Skip to content

Commit a0b5e25

Browse files
p-spacekPetr Spacek
andauthored
feat: add disableDefaultProperties (#667)
* feat: add disableDefaultProperties * chore: add disableDefaultProperties description to the readme Co-authored-by: Petr Spacek <p-spacek@email.cz>
1 parent e911928 commit a0b5e25

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ The following settings are supported:
4848
* `yaml.schemaStore.url`: URL of a schema store catalog to use when downloading schemas.
4949
* `yaml.customTags`: Array of custom tags that the parser will validate against. It has two ways to be used. Either an item in the array is a custom tag such as "!Ref" and it will automatically map !Ref to scalar or you can specify the type of the object !Ref should be e.g. "!Ref sequence". The type of object can be either scalar (for strings and booleans), sequence (for arrays), mapping (for objects).
5050
* `yaml.maxComputedItems`: The maximum number of outline symbols and folding regions computed (limited for performance reasons).
51+
* `yaml.disableDefaultProperties`: Disable adding not required properties with default values into completion text (default is false).
52+
5153
- `[yaml]`: VSCode-YAML adds default configuration for all yaml files. More specifically it converts tabs to spaces to ensure valid yaml, sets the tab size, and allows live typing autocompletion and formatting, also allows code lens. These settings can be modified via the corresponding settings inside the `[yaml]` section in the settings:
5254
- `editor.tabSize`
5355
- `editor.formatOnType`

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@
176176
"default": false,
177177
"description": "Globally set additionalProperties to false for all objects. So if its true, no extra properties are allowed inside yaml."
178178
},
179+
"yaml.disableDefaultProperties": {
180+
"type": "boolean",
181+
"default": false,
182+
"description": "Disable adding not required properties with default values into completion text."
183+
},
179184
"yaml.maxItemsComputed": {
180185
"type": "integer",
181186
"default": 5000,

0 commit comments

Comments
 (0)