File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -139,19 +139,25 @@ class PSDocumentFormattingEditProvider implements vscode.DocumentFormattingEditP
139139 let ruleProperty : string ;
140140 switch ( rule ) {
141141 case "PSPlaceOpenBrace" :
142+ // TODO Add newlineafter option to settings
142143 ruleProperty = `${ rule } = @{
144+ Enable = \$true
143145 OnSameLine = \$${ settings . codeformatting . openBraceOnSameLine }
146+ NewLineAfter = \$true
144147 }` ;
145148 break ;
146149
147150 case "PSUseConsistentIndentation" :
148151 ruleProperty = `${ rule } = @{
152+ Enable = \$true
149153 IndentationSize = ${ settings . codeformatting . indentationSize }
150154 }` ;
151155 break ;
152156
153157 default :
154- ruleProperty = "" ;
158+ ruleProperty = `${ rule } = @{
159+ Enable = \$true
160+ }` ;
155161 break ;
156162 }
157163
You can’t perform that action at this time.
0 commit comments