mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Update to match new enum
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user