Skip to content

Commit

Permalink
add yet another FantomasConfig property
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 committed May 4, 2021
1 parent 9d8eb37 commit 671a500
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static FSharpParsingOptions Convert(RdFcsParsingOptions options) =>
options.LightSyntax, false, options.IsExe);

private FormatConfig.FormatConfig Convert(RdFantomasFormatConfig config) =>
new FormatConfig.FormatConfig(config.IndentSize, config.MaxLineLength, myDefaultFormatConfig.SemicolonAtEndOfLine,
new FormatConfig.FormatConfig(config.IndentSize, config.MaxLineLength, config.SemicolonAtEndOfLine,
config.SpaceBeforeParameter, config.SpaceBeforeLowercaseInvocation, config.SpaceBeforeUppercaseInvocation,
config.SpaceBeforeClassConstructor, config.SpaceBeforeMember, config.SpaceBeforeColon, config.SpaceAfterComma,
config.SpaceBeforeSemicolon, config.SpaceAfterSemicolon, config.IndentOnTryWith, config.SpaceAroundDelimiter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ type CodeFormatterProvider(solution: ISolution, externalFormatterFactory: Extern
settings.MaxValueBindingWidth, settings.MaxFunctionBindingWidth,
settings.MultilineBlockBracketsOnSameColumn, settings.NewlineBetweenTypeDefinitionAndMembers,
settings.KeepIfThenInSameLine, settings.MaxElmishWidth, settings.SingleArgumentWebMode,
settings.AlignFunctionSignatureToIndentation, settings.AlternativeLongMemberDefinitions)
settings.AlignFunctionSignatureToIndentation, settings.AlternativeLongMemberDefinitions,
settings.SemicolonAtEndOfLine)

let convertParsingOptions (options: FSharpParsingOptions) =
let lightSyntax =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ object RdFSharpExternalFormatterModel : Root() {
field("singleArgumentWebMode", bool)
field("alignFunctionSignatureToIndentation", bool)
field("alternativeLongMemberDefinitions", bool)
field("semicolonAtEndOfLine", bool)
}

private val rdFormatArgs = basestruct {
Expand Down

0 comments on commit 671a500

Please sign in to comment.