Repository navigation
Change xml.validation.* settings scope from window to resource #1188
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -766,7 +766,7 @@ | |
| "type": "boolean", | ||
| "default": true, | ||
| "markdownDescription": "Enable/disable all validation. Default is `true`.", | ||
| "scope": "window" | ||
| "scope": "language-overridable" | ||
| }, | ||
| "xml.validation.namespaces.enabled": { | ||
| "type": "string", | ||
|
|
@@ -782,7 +782,7 @@ | |
| "Enable namespaces validation only when the root element declares an xmlns namespace." | ||
| ], | ||
| "markdownDescription": "Enable/disable namespaces validation. Default is `always`. Ignored if `#xml.validation.enabled#` is set to `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xmlnamespaceschemaenabled%22%7D%5D) for more information.", | ||
| "scope": "window" | ||
| "scope": "language-overridable" | ||
| }, | ||
| "xml.validation.schema.enabled": { | ||
| "type": "string", | ||
|
|
@@ -798,25 +798,25 @@ | |
| "Enable schema based validation only when the declared xsi:schemaLocation hint or xsi:noNamespaceSchemaLocation is valid for the root element." | ||
| ], | ||
| "markdownDescription": "Enable/disable schema based validation. Default is `always`. Ignored if `#xml.validation.enabled#` is set to `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xmlvalidationschemaenabled%22%7D%5D) for more information.", | ||
| "scope": "window" | ||
| "scope": "language-overridable" | ||
| }, | ||
| "xml.validation.disallowDocTypeDecl": { | ||
| "type": "boolean", | ||
| "default": false, | ||
| "markdownDescription": "Enable/disable if a fatal error is thrown if the incoming document contains a DOCTYPE declaration. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22disallow-doc-type-declarations%22%7D%5D) for more information", | ||
| "scope": "window" | ||
| "scope": "language-overridable" | ||
| }, | ||
| "xml.validation.resolveExternalEntities": { | ||
| "type": "boolean", | ||
| "default": false, | ||
| "markdownDescription": "Enable/disable resolve of external entities. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22resolve-external-entities%22%7D%5D) for more information. Disabled for untrusted workspaces", | ||
| "scope": "window" | ||
| "scope": "language-overridable" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| "xml.validation.xInclude.enabled": { | ||
| "type": "boolean", | ||
| "default": false, | ||
| "markdownDescription": "Enable/disable validation for `xi:include`. Default is `false`. See [here](command:xml.open.docs?%5B%7B%22page%22%3A%22Validation%22%2C%22section%22%3A%22xmlvalidationxincludeenabled%22%7D%5D) for more information.", | ||
| "scope": "window" | ||
| "scope": "language-overridable" | ||
| }, | ||
| "xml.validation.noGrammar": { | ||
| "type": "string", | ||
|
|
@@ -829,7 +829,7 @@ | |
| ], | ||
| "default": "hint", | ||
| "markdownDescription": "The message severity when a document has no associated grammar. Default is `hint`.", | ||
| "scope": "window" | ||
| "scope": "language-overridable" | ||
| }, | ||
| "xml.symbols.enabled": { | ||
| "type": "boolean", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: redhat-developer/vscode-xml
Length of output: 38246
Script executed:
Repository: redhat-developer/vscode-xml
Length of output: 18330
Script executed:
Repository: redhat-developer/vscode-xml
Length of output: 30129
Script executed:
Repository: redhat-developer/vscode-xml
Length of output: 14221
Ship a server version that supports scoped validation.
LemMinX
0.31.2uses shared validation settings for every document. Folder and language overrides can therefore be ignored. Ship a server version that includes the scoped validation change in eclipse-lemminx/lemminx#1902.LanguageTool
[style] ~484-~484: This phrase is redundant (‘L’ stands for ‘language’). Use simply “XML”.
Context: ...lse } ``` When validating an XML file, the XML language server pulls the settings scoped to tha...
(ACRONYM_TAUTOLOGY)