From 4d75ea45a69f456e8de7bcfe777d69eb9eeda0a1 Mon Sep 17 00:00:00 2001 From: azerr Date: Fri, 4 Oct 2019 14:38:08 +0200 Subject: [PATCH] Add xml.validation.disallowDocTypeDecl & xml.validation.resolveExternalEntities settings. Signed-off-by: azerr --- README.md | 6 ++++-- package.json | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d0ea8d4..f8fa8ecd 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/package.json b/package.json index b1d701f8..421a51ed 100644 --- a/package.json +++ b/package.json @@ -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,