Skip to content

Commit

Permalink
Report only XML syntax error for *.exsd files
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr authored and datho7561 committed Oct 18, 2022
1 parent 0b9cd83 commit 29457ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/Validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,15 @@ By default, vscode-xml uses this default validation filter:

```json
"xml.validation.filters": [
// Ignore no grammar hint and disable XSD validation for *.exsd Eclipse files.
{
"pattern": "**.exsd",
"enabled": false
"noGrammar": "ignore",
"schema": {
"enabled": "never"
}
},
// Ignore no grammar hint for Eclipse files like .project
{
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",
"noGrammar": "ignore"
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,10 @@
"default": [
{
"pattern": "**.exsd",
"enabled": false
"noGrammar": "ignore",
"schema": {
"enabled" : "never"
}
},
{
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",
Expand Down

0 comments on commit 29457ac

Please sign in to comment.