From 38d97198acecdf9829bbcccb04e142e4e9003683 Mon Sep 17 00:00:00 2001 From: azerr Date: Wed, 17 Jul 2019 20:49:46 +0200 Subject: [PATCH] Add XML Schema version settings See https://github.com/angelozerr/lsp4xml/issues/363 Signed-off-by: azerr azerr@redhat.com --- README.md | 1 + package.json | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 6d0ea8d4..f7360aa3 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ The following settings are supported: 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. +* `xml.validation.schemaVersion`: Set the XML Schema version to use. Defaults to `1.0`. More detailed info in the [Wiki](https://github.com/redhat-developer/vscode-xml/wiki/Preferences). diff --git a/package.json b/package.json index 248a2540..70f06f95 100644 --- a/package.json +++ b/package.json @@ -243,6 +243,17 @@ "description": "Enable/disable schema based validation. Ignored if \"xml.validation.enabled\": false.", "scope": "window" }, + "xml.validation.schemaVersion": { + "type": "string", + "enum": [ + "1.0", + "1.1", + "1.0EX" + ], + "default": "1.0", + "description": "The XML Schema version to use.", + "scope": "window" + }, "xml.symbols.enabled": { "type": "boolean", "default": true,