Skip to content
This repository was archived by the owner on May 7, 2020. It is now read-only.

Commit 10b486f

Browse files
committed
default the html formatting settings
1 parent 14c9322 commit 10b486f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/HTMLPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class HTMLPlugin implements HoverProvider, CompletionsProvider, Formattin
112112

113113
const range = Range.create(document.positionAt(0), document.positionAt(rangeEnd));
114114

115-
const settings = this.host.getConfig<HTMLFormatConfiguration>('html.format.settings');
115+
const settings = this.host.getConfig<HTMLFormatConfiguration>('html.format.settings') || {};
116116
return this.lang.format(document, range, settings);
117117
}
118118

0 commit comments

Comments
 (0)