Skip to content

Commit

Permalink
expose IndentSwitchCaseSectionWhenBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw committed Dec 5, 2018
1 parent 7cd49db commit 5d80eb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/OmniSharp.Abstractions/Options/FormattingOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public FormattingOptions()
IndentBlock = true;
IndentSwitchSection = true;
IndentSwitchCaseSection = true;
IndentSwitchCaseSectionWhenBlock = true;
LabelPositioning = "oneLess";
WrappingPreserveSingleLine = true;
WrappingKeepStatementsOnSingleLine = true;
Expand Down Expand Up @@ -122,6 +123,8 @@ public FormattingOptions()

public bool IndentSwitchCaseSection { get; set; }

public bool IndentSwitchCaseSectionWhenBlock { get; set; }

public string LabelPositioning { get; set; }

public bool WrappingPreserveSingleLine { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private static OptionSet GetOptions(OptionSet optionSet, FormattingOptions forma
.WithChangedOption(CSharpFormattingOptions.IndentBlock, formattingOptions.IndentBlock)
.WithChangedOption(CSharpFormattingOptions.IndentSwitchSection, formattingOptions.IndentSwitchSection)
.WithChangedOption(CSharpFormattingOptions.IndentSwitchCaseSection, formattingOptions.IndentSwitchCaseSection)
.WithChangedOption(CSharpFormattingOptions.IndentSwitchCaseSectionWhenBlock, formattingOptions.IndentSwitchCaseSectionWhenBlock)
.WithChangedOption(CSharpFormattingOptions.LabelPositioning, LabelPositionOptionForStringValue(formattingOptions.LabelPositioning))
.WithChangedOption(CSharpFormattingOptions.WrappingPreserveSingleLine, formattingOptions.WrappingPreserveSingleLine)
.WithChangedOption(CSharpFormattingOptions.WrappingKeepStatementsOnSingleLine, formattingOptions.WrappingKeepStatementsOnSingleLine)
Expand Down Expand Up @@ -97,4 +98,4 @@ public OptionSet Process(OptionSet workOptionSet, FormattingOptions options)
return GetOptions(workOptionSet, options);
}
}
}
}

0 comments on commit 5d80eb8

Please # to comment.