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
139
139
let ruleProperty : string ;
140
140
switch ( rule ) {
141
141
case "PSPlaceOpenBrace" :
142
+ // TODO Add newlineafter option to settings
142
143
ruleProperty = `${ rule } = @{
144
+ Enable = \$true
143
145
OnSameLine = \$${ settings . codeformatting . openBraceOnSameLine }
146
+ NewLineAfter = \$true
144
147
}` ;
145
148
break ;
146
149
147
150
case "PSUseConsistentIndentation" :
148
151
ruleProperty = `${ rule } = @{
152
+ Enable = \$true
149
153
IndentationSize = ${ settings . codeformatting . indentationSize }
150
154
}` ;
151
155
break ;
152
156
153
157
default :
154
- ruleProperty = "" ;
158
+ ruleProperty = `${ rule } = @{
159
+ Enable = \$true
160
+ }` ;
155
161
break ;
156
162
}
157
163
You can’t perform that action at this time.
0 commit comments