Skip to content

Commit 2a87f5c

Browse files
noGrammar preference and README
Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
1 parent bf81ad9 commit 2a87f5c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,21 @@
176176
"default": "hint",
177177
"description": "The message severity when a document has no associated grammar.",
178178
"scope": "window"
179+
},
180+
"xml.diagnostics.enabled": {
181+
"type": "boolean",
182+
"default": true,
183+
"enum": [true, false],
184+
"description": "Enable/disable all diagnostics.",
185+
"scope": "window"
186+
}
187+
,
188+
"xml.diagnostics.schema": {
189+
"type": "boolean",
190+
"default": true,
191+
"enum": [true, false],
192+
"description": "Enable/disable schema based diagnostics.",
193+
"scope": "window"
179194
}
180195
}
181196
},

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export function activate(context: ExtensionContext) {
102102
function getXMLSettings(): JSON {
103103
let configXML = workspace.getConfiguration().get('xml');
104104
let xml;
105+
configXML = null;
105106
if (!configXML) { //Set default preferences if not provided
106107
const defaultValue =
107108
{

0 commit comments

Comments
 (0)