Skip to content

Commit

Permalink
Don't dim root "patterns" array on broken includes
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Nov 22, 2024
1 parent 0ee0b60 commit 63d91bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DiagnosticCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ function diagnosticsBrokenIncludes(diagnostics: vscode.Diagnostic[], rootNode: S
diagnostics[index] = diagnostic;
}

if (!parentRule.childForFieldName('match') && !(parentRule.type == 'pattern' && parentRule.childForFieldName('include'))) {
if (!parentRule.childForFieldName('match') && !(parentRule.type == 'pattern' && parentRule.childForFieldName('include')) && parentRule.type != 'json') {
const range = toRange(parentRule);
const diagnostic: vscode.Diagnostic = {
range: range,
Expand Down

0 comments on commit 63d91bc

Please sign in to comment.