Skip to content

Commit 62e87ad

Browse files
rjmholtRobert Holt
authored and
Robert Holt
committed
Change Whitespace settings to camelCase (PowerShell#1867)
* Set settings to camelCase * Update settings interface
1 parent 656305e commit 62e87ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,12 @@
670670
"default": true,
671671
"description": "Adds a space after a separator (',' and ';')."
672672
},
673-
"powershell.codeFormatting.WhitespaceInsideBrace": {
673+
"powershell.codeFormatting.whitespaceInsideBrace": {
674674
"type": "boolean",
675675
"default": true,
676676
"description": "Adds a space after an opening brace ('{') and before a closing brace ('}')."
677677
},
678-
"powershell.codeFormatting.WhitespaceAroundPipe": {
678+
"powershell.codeFormatting.whitespaceAroundPipe": {
679679
"type": "boolean",
680680
"default": true,
681681
"description": "Adds a space before and after the pipeline operator ('|')."

src/settings.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export interface ICodeFormattingSettings {
5050
whitespaceBeforeOpenParen: boolean;
5151
whitespaceAroundOperator: boolean;
5252
whitespaceAfterSeparator: boolean;
53-
WhitespaceInsideBrace: true;
54-
WhitespaceAroundPipe: true;
53+
whitespaceInsideBrace: true;
54+
whitespaceAroundPipe: true;
5555
ignoreOneLineBlock: boolean;
5656
alignPropertyValuePairs: boolean;
5757
useCorrectCasing: boolean;
@@ -140,8 +140,8 @@ export function load(): ISettings {
140140
whitespaceBeforeOpenParen: true,
141141
whitespaceAroundOperator: true,
142142
whitespaceAfterSeparator: true,
143-
WhitespaceInsideBrace: true,
144-
WhitespaceAroundPipe: true,
143+
whitespaceInsideBrace: true,
144+
whitespaceAroundPipe: true,
145145
ignoreOneLineBlock: true,
146146
alignPropertyValuePairs: true,
147147
useCorrectCasing: false,

0 commit comments

Comments
 (0)