Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xml.validation.disallowDocTypeDecl & xml.validation.resolveExternalEntities settings. #187

Merged
merged 1 commit into from
Oct 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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