Skip to content

Commit 373acd7

Browse files
authored
Add AlignEnumMemberValues setting (#2271)
1 parent c107484 commit 373acd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PowerShellEditorServices/Services/Workspace/LanguageServerSettings.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
207207
public bool WhitespaceInsideBrace { get; set; }
208208
public bool IgnoreOneLineBlock { get; set; }
209209
public bool AlignPropertyValuePairs { get; set; }
210+
public bool AlignEnumMemberValues { get; set; }
210211
public bool UseCorrectCasing { get; set; }
211212

212213
/// <summary>
@@ -298,7 +299,8 @@ private Hashtable GetCustomPSSASettingsHashtable(int tabSize, bool insertSpaces)
298299
"PSAlignAssignmentStatement",
299300
new Hashtable {
300301
{ "Enable", true },
301-
{ "CheckHashtable", AlignPropertyValuePairs }
302+
{ "CheckHashtable", AlignPropertyValuePairs },
303+
{ "CheckEnums", AlignEnumMemberValues },
302304
}
303305
},
304306
{

0 commit comments

Comments
 (0)