Skip to content

Commit

Permalink
Remove need for computed property on FormatConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh DeGraw committed Dec 21, 2022
1 parent 3a89ead commit aeb144d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/Fantomas.Core/Fantomas.Core.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
<Compile Include="Queue.fs" />
<Compile Include="Flowering.fsi" />
<Compile Include="Flowering.fs" />
<Compile Include="SourceParser.fs" />
<Compile Include="AstTransformer.fsi" />
<Compile Include="AstTransformer.fs" />
<Compile Include="Version.fs" />
<Compile Include="Queue.fs" />
<Compile Include="Defines.fsi" />
<Compile Include="Defines.fs" />
<Compile Include="Context.fs" />
Expand Down
6 changes: 1 addition & 5 deletions src/Fantomas.Core/FormatConfig.fs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ type FormatConfig =
// [<Category("Convention")>]
// [<DisplayName("Format braces using Stroustrup Style where possible.")>]
// [<Description("Experimental feature, use at your own risk.")>]
//ExperimentalStroustrupStyle: bool


[<Category("Convention")>]
[<DisplayName("How to format brackets")>]
[<Description("Possible options include classic (default), aligned, and experimental_stroustrup")>]
Expand Down Expand Up @@ -271,6 +270,3 @@ type FormatConfig =
MultilineBracketStyle = Classic
KeepMaxNumberOfBlankLines = 100
StrictMode = false }

member this.ExperimentalStroustrupStyle =
this.MultilineBracketStyle = ExperimentalStroustrup
1 change: 0 additions & 1 deletion src/Fantomas.Tests/EditorConfigurationTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ fsharp_experimental_stroustrup_style = true
let config = EditorConfig.readConfiguration fsharpFile.FSharpFile

Assert.AreEqual(ExperimentalStroustrup, config.MultilineBracketStyle)
Assert.IsTrue config.ExperimentalStroustrupStyle

[<Test>]
let ``fsharp_multiline_bracket_style = experimental_stroustrup`` () =
Expand Down

0 comments on commit aeb144d

Please sign in to comment.