diff --git a/extensions/html-language-features/package.json b/extensions/html-language-features/package.json index 347af8182737c..61f2805fcf1af 100644 --- a/extensions/html-language-features/package.json +++ b/extensions/html-language-features/package.json @@ -165,7 +165,37 @@ "markdownDescription": "%html.format.wrapAttributesIndentSize.desc%" }, "html.format.templating": { - "type": "boolean", + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "auto", + "none", + "angular", + "django", + "erb", + "php", + "smarty" + ], + "enumDescriptions": [ + "%html.format.templating.auto%", + "%html.format.templating.none%", + "%html.format.templating.angular%", + "%html.format.templating.django%", + "%html.format.templating.erb%", + "%html.format.templating.php%", + "%html.format.templating.smarty%" + ] + }, + "minItems": 1, + "uniqueItems": true + } + ], "scope": "resource", "default": false, "description": "%html.format.templating.desc%" diff --git a/extensions/html-language-features/package.nls.json b/extensions/html-language-features/package.nls.json index f36ecf34f023f..e166a5293b5a1 100644 --- a/extensions/html-language-features/package.nls.json +++ b/extensions/html-language-features/package.nls.json @@ -19,7 +19,14 @@ "html.format.wrapAttributes.alignedmultiple": "Wrap when line length is exceeded, align attributes vertically.", "html.format.wrapAttributes.preserve": "Preserve wrapping of attributes.", "html.format.wrapAttributes.preservealigned": "Preserve wrapping of attributes but align.", - "html.format.templating.desc": "Honor django, erb, handlebars and php templating language tags.", + "html.format.templating.desc": "This setting allows you to control how templating languages are handled in HTML files. Setting it to false is equivalent to enabling the [\"none\"] option. Setting it to true is equivalent to enabling the [\"auto\"] option. For more details on the [\"auto\"] option, please refer to its description.", + "html.format.templating.auto": "Enable django, erb, handlebars, php and smarty templating language. (angular not enable by default)", + "html.format.templating.none": "Disable templating language.", + "html.format.templating.angular": "Enable angular templating language.", + "html.format.templating.django": "Enable django templating language.", + "html.format.templating.erb": "Enable erb templating language.", + "html.format.templating.php": "Enable php templating language.", + "html.format.templating.smarty": "Enable smarty templating language.", "html.format.unformattedContentDelimiter.desc": "Keep text content together between this string.", "html.format.wrapAttributesIndentSize.desc": "Indent wrapped attributes to after N characters. Use `null` to use the default indent size. Ignored if `#html.format.wrapAttributes#` is set to `aligned`.", "html.suggest.html5.desc": "Controls whether the built-in HTML language support suggests HTML5 tags, properties and values.",