-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List indentation issue #999
Comments
Hey @halcwb, is this using https://github.com/cmeeren/Feliz.MaterialUI by any chance? fsharp_multiline_block_brackets_on_same_column by design has no influence when an Elmish pattern is found. In short, when Fantomas detects an expression in the shape of So the expected result here is should be something like: let drawer =
Mui.drawer [
// drawer.open' props.IsOpen
drawer.children [ Html.div [ prop.className classes.toolbar ]
... ] ] The bug here is that the Unrelated to the bug, you can use the setting |
@nojaf Thanks! using that setting it's much better. I indeed use Feliz. Could there also be a setting that makes sure that all indentation is using the tabs columns. Then you'll never have the problem that with changing the indentation you run into compile errors. For example: let cannotIndentList =
[ "item 1"
"item 2" ]
let canIndentList =
[ "item 1"
"item 2" ]
let canIndentList2 =
[ "
item 1"
"item 2"
] The same problem also applies to records: let cannotIndent =
{ boss1 = "Jeffrey"
boss2 = "Jeffrey"
lackeys = ["Zippy"; "George"; "Bungle"]
}
let canIndent =
{
boss1 = "Jeffrey"
boss2 = "Jeffrey"
lackeys = ["Zippy"; "George"; "Bungle"]
} |
I don't think I understand what you mean here 😅. |
@nojaf I ran into this issue and created a post about it to explain my view: https://informedica.nl/?p=203 |
When I use the online tool with the following code (cannot create an issue because of a too long url!):
I get this list indentation with setting: fsharp_multiline_block_brackets_on_same_column=true:
So correct for the parent list but wrong for the child lists. When you uncomment the first item in the parent list you'll get:
So all of the lists, parent and child lists, doesn't adhere to the same column setting.
The problem is when you re-indent the above code this will result in errors, I always want list items to be on a 'tab column'.
The text was updated successfully, but these errors were encountered: