Skip to content

Commit

Permalink
noGrammar preference and README
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Komonen <[email protected]>
  • Loading branch information
NikolasKomonen committed Jan 22, 2019
1 parent bf81ad9 commit 2a87f5c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,21 @@
"default": "hint",
"description": "The message severity when a document has no associated grammar.",
"scope": "window"
},
"xml.diagnostics.enabled": {
"type": "boolean",
"default": true,
"enum": [true, false],
"description": "Enable/disable all diagnostics.",
"scope": "window"
}
,
"xml.diagnostics.schema": {
"type": "boolean",
"default": true,
"enum": [true, false],
"description": "Enable/disable schema based diagnostics.",
"scope": "window"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function activate(context: ExtensionContext) {
function getXMLSettings(): JSON {
let configXML = workspace.getConfiguration().get('xml');
let xml;
configXML = null;
if (!configXML) { //Set default preferences if not provided
const defaultValue =
{
Expand Down

0 comments on commit 2a87f5c

Please sign in to comment.