Update to match new enum

This commit is contained in:
Stephen Sigwart
2021-09-29 23:16:07 -04:00
parent c5d3ad08f0
commit ba48f5c1f0
3 changed files with 8 additions and 13 deletions

View File

@@ -26,12 +26,7 @@ export function getHTMLMode(htmlLanguageService: HTMLLanguageService, workspace:
if (doAutoComplete) {
options.hideAutoCompleteProposals = true;
}
let attributeDefaultValue = settings && settings.html && settings.html.completion.attributeDefaultValue;
if (attributeDefaultValue === 'empty') {
options.useEmptyAttrValue = true;
} else if (attributeDefaultValue === 'singleQuotes') {
options.useSingleQuotesForAttrs = true;
}
options.attributeDefaultValue = settings.html.completion.attributeDefaultValue ?? 'doublequotes';
const htmlDocument = htmlDocuments.get(document);
let completionList = htmlLanguageService.doComplete2(document, position, htmlDocument, documentContext, options);