Skip to content

Commit 63d91bc

Browse files
committed
Don't dim root "patterns" array on broken includes
1 parent 0ee0b60 commit 63d91bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DiagnosticCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ function diagnosticsBrokenIncludes(diagnostics: vscode.Diagnostic[], rootNode: S
438438
diagnostics[index] = diagnostic;
439439
}
440440

441-
if (!parentRule.childForFieldName('match') && !(parentRule.type == 'pattern' && parentRule.childForFieldName('include'))) {
441+
if (!parentRule.childForFieldName('match') && !(parentRule.type == 'pattern' && parentRule.childForFieldName('include')) && parentRule.type != 'json') {
442442
const range = toRange(parentRule);
443443
const diagnostic: vscode.Diagnostic = {
444444
range: range,

0 commit comments

Comments
 (0)