Fix example schema settings for VSCode

I accidentally git cleaned my .vscode folder and realized
that the example settings were actually wrong.

Now they should cover more schemas and actually work.
This commit is contained in:
Ondřej Šebek 2022-08-31 23:31:17 +02:00 committed by Ondřej Šebek
parent 68333dd70a
commit 77e1c2ceb1

View File

@ -61,13 +61,19 @@ the [YAML extension](https://open-vsx.org/extension/redhat/vscode-yaml)
installed.
To point the editor to the right schema for scenarios in this repository,
you can use this `setting.json`:
you can use this `settings.json`:
```JSON
{
"yaml.schemas": {
"https://raw.githubusercontent.com/swarm-game/swarm/main/scenario.json": [
"https://raw.githubusercontent.com/swarm-game/swarm/main/data/schema/scenario.json": [
"data/scenarios/*.yaml",
"data/scenarios/**/*.yaml"
],
"https://raw.githubusercontent.com/swarm-game/swarm/main/data/schema/entities.json": [
"data/entities.yaml"
],
"https://raw.githubusercontent.com/swarm-game/swarm/main/data/schema/recipes.json": [
"data/recipes.yaml"
]
}
}