Skip to content

Commit d198be3

Browse files
NikolasKomonenfbricon
authored andcommitted
noGrammar preference and README
Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
1 parent cf783d9 commit d198be3

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ The following settings are supported:
5858

5959
Since 0.3.0:
6060
* `xml.format.spaceBeforeEmptyCloseTag`: Set to `true` to insert space before the end of a self closing tag.
61+
* `xml.problems.noGrammar`: Set the message severity when a document has no associated grammar. Default is `hint`.
62+
6163

6264
More detailed info in the [Wiki](https://github.com/redhat-developer/vscode-xml/wiki/Preferences).
6365

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,19 @@
163163
"default": "-noverify -Xmx64M -XX:+UseG1GC -XX:+UseStringDeduplication",
164164
"description": "Specifies extra VM arguments used to launch the XML Language Server. Eg. use `-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication` to bypass class verification, increase the heap size to 1GB and enable String deduplication with the G1 Garbage collector",
165165
"scope": "window"
166+
},
167+
"xml.problems.noGrammar" : {
168+
"type": "string",
169+
"enum": [
170+
"ignore",
171+
"hint",
172+
"info",
173+
"warning",
174+
"error"
175+
],
176+
"default": "hint",
177+
"description": "The message severity when a document has no associated grammar.",
178+
"scope": "window"
166179
}
167180
}
168181
},

0 commit comments

Comments
 (0)