diff options
| author | Nick Brassel | 2025-05-19 14:10:39 +0200 |
|---|---|---|
| committer | GitHub | 2025-05-19 14:10:39 +0200 |
| commit | 919e2a4f5c1fb8cb3a0bd465091a31ae98486546 (patch) | |
| tree | 8b0114ec0ca90724a5f12e217219c27cc576b4d1 /.vscode/settings.json | |
| parent | f686ad9e6361e05fcfa78f453f90cd72181a7516 (diff) | |
Use relative paths for schemas, instead of $id. Enables VScode validation. (#25251)
Diffstat (limited to '.vscode/settings.json')
| -rw-r--r-- | .vscode/settings.json | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json index f369ecb174..c04ea51de1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,13 @@ "**/*.uf2": true }, "files.associations": { + // QMK Filetypes + "keyboard.json": "jsonc", + "info.json": "jsonc", + "keymap.json": "jsonc", + "qmk.json": "jsonc", + "qmk_module.json": "jsonc", + // Standard filetypes "*.h": "c", "*.c": "c", "*.inc": "c", @@ -28,7 +35,23 @@ "[json]": { "editor.formatOnSave": false }, - "clangd.arguments": [ - "--header-insertion=never" + "clangd.arguments": ["--header-insertion=never"], + "json.schemas": [ + { + "fileMatch": ["qmk.json"], + "url": "./data/schemas/user_repo_v1_1.jsonschema" + }, + { + "fileMatch": ["qmk_module.json"], + "url": "./data/schemas/community_module.jsonschema" + }, + { + "fileMatch": ["keyboard.json", "info.json"], + "url": "./data/schemas/keyboard.jsonschema" + }, + { + "fileMatch": ["keymap.json"], + "url": "./data/schemas/keymap.jsonschema" + } ] } |