Skip to content

Commit bf9d891

Browse files
MN-publicmarufrasullygithub-actions
authored
Update README.md (#599)
* Update README.md * Update README.md Removed explicit command list for formatting * fix: add gift * fix: format * chore: add change set * feat: enable formatting (#597) * feat: enable formatting * fix: provide info message when formatting fails * fix: provide error message when formatting fails * chore: apply latest changesets * fix: text --------- Co-authored-by: Maruf Rasully <maruf.rasully@sap.com> Co-authored-by: mr25mr <100434800+mr25mr@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
1 parent 4ab4d5e commit bf9d891

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.changeset/smart-ligers-grow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@ui5-language-assistant/vscode-ui5-language-assistant-bas-ext": patch
3+
"vscode-ui5-language-assistant": patch
4+
---
5+
6+
update readme with formatter feature

packages/vscode-ui5-language-assistant/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ The feature is available in the following:
126126
- Enum values
127127
- SAPUI5 Namespaces
128128

129+
### XML View Format
130+
131+
![](https://raw.githubusercontent.com/SAP/ui5-language-assistant/master/packages/vscode-ui5-language-assistant/resources/readme/preview-formatter.gif)
132+
133+
#### Description
134+
135+
The tool can format `*.view.xml` and `*.fragment.xml` files with [prettier](https://github.com/prettier)
136+
137+
#### Relevant User/Workspace settings
138+
139+
- `UI5LanguageAssistant.SplitAttributesOnFormat` is set on by default and places each attribute on a new line on formatting.
140+
129141
### manifest.json Auto-Complete and Validations
130142

131143
![](https://raw.githubusercontent.com/SAP/ui5-language-assistant/master/packages/vscode-ui5-language-assistant/resources/readme/preview-manifest-json.gif)

packages/vscode-ui5-language-assistant/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"type": "boolean",
4040
"scope": "window",
4141
"default": true,
42-
"markdownDescription": "Put each attribute on a new line when formatting `.view.xml` or `.fragment.xml`."
42+
"markdownDescription": "Put each attribute on a new line when formatting `*.view.xml` or `*.fragment.xml`."
4343
},
4444
"UI5LanguageAssistant.SAPUI5WebServer": {
4545
"type": "string",
138 KB
Loading

0 commit comments

Comments
 (0)