mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-22 03:09:13 +00:00
Switch to settings.html.completion.attributeDefaultValue
This commit is contained in:
@@ -26,9 +26,11 @@ export function getHTMLMode(htmlLanguageService: HTMLLanguageService, workspace:
|
||||
if (doAutoComplete) {
|
||||
options.hideAutoCompleteProposals = true;
|
||||
}
|
||||
let doNotAddAttributeQuotes = settings && settings.html && settings.html.doNotAddAttributeQuotes;
|
||||
if (doNotAddAttributeQuotes) {
|
||||
options.doNotAddAttributeQuotes = true;
|
||||
let attributeDefaultValue = settings && settings.html && settings.html.completion.attributeDefaultValue;
|
||||
if (attributeDefaultValue === 'empty') {
|
||||
options.useEmptyAttrValue = true;
|
||||
} else if (attributeDefaultValue === 'singleQuotes') {
|
||||
options.useSingleQuotesForAttrs = true;
|
||||
}
|
||||
|
||||
const htmlDocument = htmlDocuments.get(document);
|
||||
|
||||
Reference in New Issue
Block a user