Skip to content

Commit

Permalink
document VS Code usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Aug 28, 2023
1 parent 25c7eb2 commit 815d4ba
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"yaml.schemas": {
"https://raw.githubusercontent.com/swarm-game/swarm/feature/json-schema-fixes/data/schema/scenario.json": [
"data/scenarios/**/*.yaml"
],
"https://raw.githubusercontent.com/swarm-game/swarm/feature/json-schema-fixes/data/schema/entities.json": [
"data/entities.yaml"
],
"https://raw.githubusercontent.com/swarm-game/swarm/feature/json-schema-fixes/data/schema/recipes.json": [
"data/recipes.yaml"
],
}
}
20 changes: 20 additions & 0 deletions editors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,26 @@ You can get it by:
- **TBD** get the VSIX from GitHub releases
- **TBD** installing from the VS codium free marketplace

### YAML schema validation

To configure JSON editor windows for schema validation, install the [YAML plugin](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) and add the following to `.vscode/settings.json` under the workspace root:

```json
{
"yaml.schemas": {
"https://raw.githubusercontent.com/swarm-game/swarm/feature/json-schema-fixes/data/schema/scenario.json": [
"data/scenarios/**/*.yaml"
],
"https://raw.githubusercontent.com/swarm-game/swarm/feature/json-schema-fixes/data/schema/entities.json": [
"data/entities.yaml"
],
"https://raw.githubusercontent.com/swarm-game/swarm/feature/json-schema-fixes/data/schema/recipes.json": [
"data/recipes.yaml"
],
}
}
```

## Vim and Neovim

Currently there is neither highlighting nor LSP support for Vim,
Expand Down

0 comments on commit 815d4ba

Please sign in to comment.