-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update v2 formatter default width and some other improvements (#13503)
The modifications outlined below are based on feedback gathered during the community call: - The default `formatting.width` value is now set to 120. - The rules for splitting arrays have been refined to accommodate a newline character following the opening bracket `[`. Additionally, this PR introduces an enhancement for formatting function calls with a single argument. The formatter will no longer apply indentation to a single argument, leading to a more compact presentation. For instance, the previous formatting: ```bicep @description( 'Loooooooooooooooooooooooooooooooooooooong description' ) @Allowed( [ 1 2 3 ] ) param foo array ``` Will now be compacted to: ```bicep @description('Loooooooooooooooooooooooooooooooooooooong description') @Allowed([ 1 2 3 ]) param foo array ```
- Loading branch information
Showing
177 changed files
with
1,922 additions
and
2,561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/Bicep.Core.Samples/Files/baselines/Dependencies_LF/main.formatted.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.