Skip to content

Commit 326cbd9

Browse files
committed
Report only XML syntax error for *.exsd files
Signed-off-by: azerr <azerr@redhat.com>
1 parent fcab66d commit 326cbd9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/Validation.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,10 +544,15 @@ By default, vscode-xml uses this default validation filter:
544544

545545
```json
546546
"xml.validation.filters": [
547+
// Ignore no grammar hint and disable XSD validation for *.exsd Eclipse files.
547548
{
548549
"pattern": "**.exsd",
549-
"enabled": false
550+
"noGrammar": "ignore",
551+
"schema": {
552+
"enabled": "never"
553+
}
550554
},
555+
// Ignore no grammar hint for Eclipse files like .project
551556
{
552557
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",
553558
"noGrammar": "ignore"

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,10 @@
515515
"default": [
516516
{
517517
"pattern": "**.exsd",
518-
"enabled": false
518+
"noGrammar": "ignore",
519+
"schema": {
520+
"enabled" : "never"
521+
}
519522
},
520523
{
521524
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",

0 commit comments

Comments
 (0)