Skip to content

Commit

Permalink
Add xml.validation.disallowDocTypeDecl &
Browse files Browse the repository at this point in the history
xml.validation.resolveExternalEntities settings.

Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr authored and fbricon committed Oct 9, 2019
1 parent 14abc7d commit 0a9ca7f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ Since 0.8.0:
* `xml.codeLens.enabled`: Enable/disable XML CodeLens. Default is `false`.
* `xml.symbols.excluded`: Disable document symbols (Outline) for the given file name patterns. Updating file name patterns does not automatically reload the Outline view for the relevant file(s). Each file must either be reopened or changed, in order to trigger an Outline view reload.

More detailed info in the [Wiki](https://github.com/redhat-developer/vscode-xml/wiki/Preferences).

Since 0.9.1:
* `xml.validation.disallowDocTypeDecl`: Enable/disable if a fatal error is thrown if the incoming document contains a DOCTYPE declaration. Default is `false`.
* `xml.validation.resolveExternalEntities`: Enable/disable resolve of external entities. Default is `false`.

## Contributing

This is an open source project open to anyone. Contributions are extremely welcome!
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,18 @@
"description": "Enable/disable schema based validation. Ignored if \"xml.validation.enabled\": false.",
"scope": "window"
},
"xml.validation.disallowDocTypeDecl": {
"type": "boolean",
"default": false,
"description": "Enable/disable if a fatal error is thrown if the incoming document contains a DOCTYPE declaration.",
"scope": "window"
},
"xml.validation.resolveExternalEntities": {
"type": "boolean",
"default": true,
"description": "Enable/disable resolve of external entities.",
"scope": "window"
},
"xml.symbols.enabled": {
"type": "boolean",
"default": true,
Expand Down

0 comments on commit 0a9ca7f

Please sign in to comment.