Skip to content

Commit 0a9ca7f

Browse files
angelozerrfbricon
authored andcommitted
Add xml.validation.disallowDocTypeDecl &
xml.validation.resolveExternalEntities settings. Signed-off-by: azerr <azerr@redhat.com>
1 parent 14abc7d commit 0a9ca7f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ Since 0.8.0:
7676
* `xml.codeLens.enabled`: Enable/disable XML CodeLens. Default is `false`.
7777
* `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.
7878

79-
More detailed info in the [Wiki](https://github.com/redhat-developer/vscode-xml/wiki/Preferences).
80-
79+
Since 0.9.1:
80+
* `xml.validation.disallowDocTypeDecl`: Enable/disable if a fatal error is thrown if the incoming document contains a DOCTYPE declaration. Default is `false`.
81+
* `xml.validation.resolveExternalEntities`: Enable/disable resolve of external entities. Default is `false`.
82+
8183
## Contributing
8284

8385
This is an open source project open to anyone. Contributions are extremely welcome!

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,18 @@
243243
"description": "Enable/disable schema based validation. Ignored if \"xml.validation.enabled\": false.",
244244
"scope": "window"
245245
},
246+
"xml.validation.disallowDocTypeDecl": {
247+
"type": "boolean",
248+
"default": false,
249+
"description": "Enable/disable if a fatal error is thrown if the incoming document contains a DOCTYPE declaration.",
250+
"scope": "window"
251+
},
252+
"xml.validation.resolveExternalEntities": {
253+
"type": "boolean",
254+
"default": true,
255+
"description": "Enable/disable resolve of external entities.",
256+
"scope": "window"
257+
},
246258
"xml.symbols.enabled": {
247259
"type": "boolean",
248260
"default": true,

0 commit comments

Comments
 (0)