Skip to content

Commit

Permalink
[html] attribute on separate line formatting. Fixes microsoft#2204
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Jan 8, 2017
1 parent ca0bf48 commit be716e2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions extensions/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@
"default": "head, body, /html",
"description": "%html.format.extraLiners.desc%"
},
"html.format.wrapAttributes": {
"type": "string",
"default": "auto",
"enum": [ "auto", "force" ],
"enumDescriptions": ["%html.format.wrapAttributes.auto%", "%html.format.wrapAttributes.force%"],
"description": "%html.format.wrapAttributes.desc%"
},
"html.suggest.angular1": {
"type": "boolean",
"default": true,
Expand Down
3 changes: 3 additions & 0 deletions extensions/html/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"html.format.indentHandlebars.desc": "Format and indent {{#foo}} and {{/foo}}.",
"html.format.endWithNewline.desc": "End with a newline.",
"html.format.extraLiners.desc": "List of tags, comma separated, that should have an extra newline before them. 'null' defaults to \"head, body, /html\".",
"html.format.wrapAttributes.desc": "Wrap attributes always ('force') or only when line length is exceeded ('auto').",
"html.format.wrapAttributes.auto": "Wrap attributes when line length is exceeded.",
"html.format.wrapAttributes.force": "Always wrap attributes.",
"html.suggest.angular1.desc": "Configures if the built-in HTML language support suggests Angular V1 tags and properties.",
"html.suggest.ionic.desc": "Configures if the built-in HTML language support suggests Ionic tags, properties and values.",
"html.suggest.html5.desc":"Configures if the built-in HTML language support suggests HTML5 tags, properties and values.",
Expand Down
4 changes: 2 additions & 2 deletions extensions/html/server/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extensions/html/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"vscode-css-languageservice": "^2.0.0-next.6",
"vscode-html-languageservice": "^2.0.0-next.3",
"vscode-html-languageservice": "^2.0.0-next.4",
"vscode-languageserver": "3.0.1-alpha.2",
"vscode-nls": "^1.0.7",
"vscode-uri": "^1.0.0"
Expand Down

0 comments on commit be716e2

Please sign in to comment.