Skip to content

Commit

Permalink
fix: restore schema verification for some files (#169)
Browse files Browse the repository at this point in the history
With the exception of playbook and task files, the other ones do not
have support from the language-server yet. So we restore the use
of YAML schemas for these, like we had on old version.
  • Loading branch information
ssbarnea committed Sep 8, 2021
1 parent bf8c689 commit 5ef7df7
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,57 @@
"name": "Sorin Sbarnea"
}
],
"yamlValidation": [
{
"fileMatch": "requirements.yml",
"url": "https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-requirements.json"
},
{
"fileMatch": "meta/main.yml",
"url": "https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-meta.json"
},
{
"fileMatch": [
"playbooks/vars/*.yml",
"playbooks/vars/*.yaml",
"vars/*.yml",
"vars/*.yaml",
"defaults/*.yml",
"defaults/*.yaml",
"host_vars/*.yml",
"host_vars/*.yaml",
"group_vars/*.yml",
"group_vars/*.yaml"
],
"url": "https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-vars.json"
},
{
"fileMatch": [
"zuul.d/*.yaml",
"zuul-tests.d/*.yaml",
".zuul.yaml"
],
"url": "https://raw.githubusercontent.com/ansible-community/schemas/main/f/zuul.json"
},
{
"fileMatch": [
".ansible-lint"
],
"url": "https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-lint.json"
},
{
"fileMatch": [
"molecule/*/molecule.yml"
],
"url": "https://raw.githubusercontent.com/ansible-community/schemas/main/f/molecule.json"
},
{
"fileMatch": [
"galaxy.yml"
],
"url": "https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-galaxy.json"
}
],
"contributes": {
"commands": [
{
Expand Down Expand Up @@ -287,7 +338,8 @@
"yarn": "\n\nERROR: Please use npm, yarn is not supported in this repository!!!\n\n"
},
"extensionDependencies": [
"ms-python.python"
"ms-python.python",
"redhat.vscode-yaml"
],
"husky": {
"hooks": {
Expand Down

0 comments on commit 5ef7df7

Please sign in to comment.