Skip to content

Commit 6a30ba0

Browse files
Kapil Borledaviwil
Kapil Borle
authored andcommitted
Add enum type for code formatting presets
1 parent 4de4ac7 commit 6a30ba0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServerSettings.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ public void Update(
9393
}
9494
}
9595

96+
public enum CodeFormattingPreset
97+
{
98+
Custom,
99+
OTBS,
100+
Allman
101+
}
102+
96103
public class CodeFormattingSettings
97104
{
98105
/// <summary>
@@ -120,6 +127,7 @@ public CodeFormattingSettings(CodeFormattingSettings codeFormattingSettings)
120127
}
121128
}
122129

130+
public CodeFormattingPreset Preset { get; set; }
123131
public bool OpenBraceOnSameLine { get; set; }
124132
public bool NewLineAfterOpenBrace { get; set; }
125133
public bool NewLineAfterCloseBrace { get; set; }

0 commit comments

Comments
 (0)