Skip to content

Commit 78d3d73

Browse files
TylerLeonhardtChristoph Bergmeister (MVP)
authored and
Christoph Bergmeister (MVP)
committed
Mao new powershell.codeformatting settings WhitespaceInsideBrace and WhitespaceAroundPipe to PSSA settings hash table (PowerShell#835)
1 parent 9407890 commit 78d3d73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServerSettings.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
198198
public bool WhitespaceBeforeOpenParen { get; set; }
199199
public bool WhitespaceAroundOperator { get; set; }
200200
public bool WhitespaceAfterSeparator { get; set; }
201+
public bool WhitespaceInsideBrace { get; set; }
202+
public bool WhitespaceAroundPipe { get; set; }
201203
public bool IgnoreOneLineBlock { get; set; }
202204
public bool AlignPropertyValuePairs { get; set; }
203205
public bool UseCorrectCasing { get; set; }
@@ -278,7 +280,9 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
278280
{"CheckOpenBrace", WhitespaceBeforeOpenBrace},
279281
{"CheckOpenParen", WhitespaceBeforeOpenParen},
280282
{"CheckOperator", WhitespaceAroundOperator},
281-
{"CheckSeparator", WhitespaceAfterSeparator}
283+
{"CheckSeparator", WhitespaceAfterSeparator},
284+
{"CheckInnerBrace", WhitespaceInsideBrace},
285+
{"CheckPipe", WhitespaceAroundPipe},
282286
}},
283287
{"PSAlignAssignmentStatement", new Hashtable {
284288
{"Enable", true},

0 commit comments

Comments
 (0)