File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,15 @@ connection.onDidChangeConfiguration((change) => {
224224 yamlShouldHover = settings . yaml . hover ;
225225 yamlShouldCompletion = settings . yaml . completion ;
226226 customTags = settings . yaml . customTags ? settings . yaml . customTags : [ ] ;
227- yamlFormatterSettings = {
228- singleQuote : settings . yaml . format . singleQuote || false ,
229- proseWrap : settings . yaml . format . proseWrap || "preserve"
230- } ;
231- if ( settings . yaml . format . bracketSpacing === false ) {
232- yamlFormatterSettings . bracketSpacing = false ;
233- }
227+ if ( settings . yaml . format ) {
228+ yamlFormatterSettings = {
229+ singleQuote : settings . yaml . format . singleQuote || false ,
230+ proseWrap : settings . yaml . format . proseWrap || "preserve"
231+ } ;
232+ if ( settings . yaml . format . bracketSpacing === false ) {
233+ yamlFormatterSettings . bracketSpacing = false ;
234+ }
235+ }
234236 }
235237 schemaConfigurationSettings = [ ] ;
236238
You can’t perform that action at this time.
0 commit comments