Skip to content

Indexed property setter #2518

@sergey-tihon

Description

@sergey-tihon

Sorry, cannot reproduce it with online tools.

When I format FSharpx.Collections here - fsprojects/FSharpx.Collections#194
Fantomas removes space after property name and before the key/index and break the code

image

Appreciate ideas how this can be reproduced inside online tool...

Config

Latest Fantomas

    "fantomas": {
      "version": "5.0.0",
      "commands": [
        "fantomas"
      ]
    }

with following .editorconfig

; EditorConfig helps developers define and maintain consistent
; coding styles between different editors and IDEs.

; For more visit http://editorconfig.org.
root = true

; Choose between lf or rf on "end_of_line" property
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{*.fs,*.fsx}]
indent_size = 4
indent_style = space
max_line_length=150
fsharp_max_function_binding_width=10
fsharp_max_infix_operator_expression=70
fsharp_space_before_parameter=false
fsharp_space_before_lowercase_invocation=false
fsharp_multiline_block_brackets_on_same_column=true
fsharp_experimental_stroustrup_style=true
fsharp_bar_before_discriminated_union_declaration=true
fsharp_keep_max_number_of_blank_lines=3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions