Skip to content

Commit be716e2

Browse files
committed
[html] attribute on separate line formatting. Fixes microsoft#2204
1 parent ca0bf48 commit be716e2

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

extensions/html/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@
126126
"default": "head, body, /html",
127127
"description": "%html.format.extraLiners.desc%"
128128
},
129+
"html.format.wrapAttributes": {
130+
"type": "string",
131+
"default": "auto",
132+
"enum": [ "auto", "force" ],
133+
"enumDescriptions": ["%html.format.wrapAttributes.auto%", "%html.format.wrapAttributes.force%"],
134+
"description": "%html.format.wrapAttributes.desc%"
135+
},
129136
"html.suggest.angular1": {
130137
"type": "boolean",
131138
"default": true,

extensions/html/package.nls.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"html.format.indentHandlebars.desc": "Format and indent {{#foo}} and {{/foo}}.",
99
"html.format.endWithNewline.desc": "End with a newline.",
1010
"html.format.extraLiners.desc": "List of tags, comma separated, that should have an extra newline before them. 'null' defaults to \"head, body, /html\".",
11+
"html.format.wrapAttributes.desc": "Wrap attributes always ('force') or only when line length is exceeded ('auto').",
12+
"html.format.wrapAttributes.auto": "Wrap attributes when line length is exceeded.",
13+
"html.format.wrapAttributes.force": "Always wrap attributes.",
1114
"html.suggest.angular1.desc": "Configures if the built-in HTML language support suggests Angular V1 tags and properties.",
1215
"html.suggest.ionic.desc": "Configures if the built-in HTML language support suggests Ionic tags, properties and values.",
1316
"html.suggest.html5.desc":"Configures if the built-in HTML language support suggests HTML5 tags, properties and values.",

extensions/html/server/npm-shrinkwrap.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/html/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"vscode-css-languageservice": "^2.0.0-next.6",
12-
"vscode-html-languageservice": "^2.0.0-next.3",
12+
"vscode-html-languageservice": "^2.0.0-next.4",
1313
"vscode-languageserver": "3.0.1-alpha.2",
1414
"vscode-nls": "^1.0.7",
1515
"vscode-uri": "^1.0.0"

0 commit comments

Comments
 (0)