VSCode Prescribed use of Patterns flagged as missing Begin Property
Closed this issue · 1 comments
aamarks commented
Why does this flag patterns
if they come directly under an item in repository without a begin/end?
An example straight from the documentation gets warnings:
https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide
{
"scopeName": "source.abc",
"patterns": [{ "include": "#expression" }],
"repository": {
"expression": {
"patterns": [{ "include": "#letter" }, { "include": "#paren-expression" }] // flags this line
}, ...
Object is missing property begin required by property patterns.
I like the idea of grouping language keys like this rather than putting them all in the main patterns. Is that wrong or something wrong with the schema?
ExE-Boss commented
This shouldn’t be happening.