Skip to content

Commit

Permalink
Keep parenthesis on the same for App inside multiline DotGet thing. F…
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Aug 16, 2020
1 parent ee6dd12 commit ea14d4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fantomas.Tests/LongIdentWithDotsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ let main _ =
ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).Build()
WebHostBuilder().UseConfiguration(config).UseKestrel().UseSerilog()
.ConfigureAppConfiguration
(Action<WebHostBuilderContext, IConfigurationBuilder> configureAppConfiguration)
.ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder>
configureAppConfiguration)
.ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices)
.Configure(Action<IApplicationBuilder> configureApp).Build().Run()
|> ignore
Expand Down
2 changes: 2 additions & 0 deletions src/Fantomas/CodePrinter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,8 @@ and genExpr astContext synExpr =
let genMultilineExpr =
match e with
| Paren(Lambda(_)) -> atCurrentColumnIndent(genExpr astContext e)
| Paren(App(_)) ->
atCurrentColumn(genExpr astContext e)
| _ ->
ifElse hasParenthesis
(indent +> sepNln +> genExpr astContext e +> unindent)
Expand Down

0 comments on commit ea14d4d

Please sign in to comment.