Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"json.schemas": [
{
"fileMatch": ["**/dataStreams/*.json"],
"url": "https://schemas.squaredup.com/schemas/latest/datastream.schema.json"
},
{
"fileMatch": ["**/metadata.json"],
"url": "https://schemas.squaredup.com/schemas/latest/metadata.schema.json"
},
{
"fileMatch": ["**/configValidation.json"],
"url": "https://schemas.squaredup.com/schemas/latest/configValidation.schema.json"
},
{
"fileMatch": ["**/defaultContent/*dash.json"],
"url": "https://schemas.squaredup.com/schemas/latest/defaultContent.schema.json"
},
{
"fileMatch": ["**/defaultContent/**/manifest.json"],

Check failure on line 20 in .vscode/settings.json

View check run for this annotation

Claude / Claude Code Review

Dashboard schema fileMatch misses nested dash.json files

The fileMatch pattern `**/defaultContent/*dash.json` only matches dashboards directly inside a `defaultContent/` directory because a single `*` does not cross path separators in VS Code's glob matcher. As a result, nested dashboards such as `plugins/UniFi/v1/defaultContent/Devices/{accessDevice,networkDevice,protectDevice}.dash.json` silently miss the schema-driven IntelliSense this PR is intended to enable. Suggested fix: change the pattern to `**/defaultContent/**/*.dash.json` (which also adds
Comment thread
clarkd marked this conversation as resolved.
"url": "https://schemas.squaredup.com/schemas/latest/manifest.schema.json"
},
{
"fileMatch": ["**/defaultContent/scopes.json"],
"url": "https://schemas.squaredup.com/schemas/latest/scopes.schema.json"
},
{
"fileMatch": ["**/ui.json"],
"url": "https://schemas.squaredup.com/schemas/latest/ui.schema.json"
}
]
}
Loading