File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments