Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTML] -> Extend the "templating" option to allow an array of options. #208316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion extensions/html-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
Expand Down
9 changes: 8 additions & 1 deletion extensions/html-language-features/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down