Skip to content

Commit 5dd3c41

Browse files
authored
Merge pull request #146 from redhat-developer/disable_schema_store
Added yaml.schemaStore setting to enable/disable schema store connection
2 parents e89ea97 + a8bce4b commit 5dd3c41

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The following settings are supported:
3636
* `yaml.hover`: Enable/disable hover
3737
* `yaml.completion`: Enable/disable autocompletion
3838
* `yaml.schemas`: Helps you associate schemas with files in a glob pattern
39+
* `yaml.schemaStore.enable`: When set to true the YAML language server will pull in all available schemas from [JSON Schema Store](http://schemastore.org/json/)
3940
* `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), map (for objects).
4041
* `[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. These settings can be modified via the corresponding settings inside the `[yaml]` section in the settings:
4142
* `editor.insertSpaces`

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@
127127
"type": "array",
128128
"default": [],
129129
"description": "Custom tags for the parser to use"
130+
},
131+
"yaml.schemaStore.enable": {
132+
"type": "boolean",
133+
"default": true,
134+
"description": "Automatically pull available YAML schemas from JSON Schema Store"
130135
}
131136
}
132137
},

0 commit comments

Comments
 (0)