Skip to content

Commit 29457ac

Browse files
angelozerrdatho7561
authored andcommitted
Report only XML syntax error for *.exsd files
Signed-off-by: azerr <azerr@redhat.com>
1 parent 0b9cd83 commit 29457ac

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

docs/Validation.md

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

549549
```json
550550
"xml.validation.filters": [
551+
// Ignore no grammar hint and disable XSD validation for *.exsd Eclipse files.
551552
{
552553
"pattern": "**.exsd",
553-
"enabled": false
554+
"noGrammar": "ignore",
555+
"schema": {
556+
"enabled": "never"
557+
}
554558
},
559+
// Ignore no grammar hint for Eclipse files like .project
555560
{
556561
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",
557562
"noGrammar": "ignore"

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,10 @@
534534
"default": [
535535
{
536536
"pattern": "**.exsd",
537-
"enabled": false
537+
"noGrammar": "ignore",
538+
"schema": {
539+
"enabled" : "never"
540+
}
538541
},
539542
{
540543
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",

0 commit comments

Comments
 (0)