-
Notifications
You must be signed in to change notification settings - Fork 13
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
Only enable indenter on free format #74
Conversation
The indenter also now uses inferred formats properly. Fixes OCamlPro#52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure you meant "Only enable indenter on free format".
You probably want to pass a |
I'm sure you meant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can address my comment if you wish, and then merge ;-)
@@ -23,7 +23,9 @@ let doc = {cobol| | |||
|cobol};; | |||
|
|||
let%expect_test "simple-formatting-request" = | |||
let { projdir; end_with_postproc }, server = make_lsp_project () in | |||
let { projdir; end_with_postproc }, server = | |||
make_lsp_project ~toml:"source-format = \"free\"\n" () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could have deserved a little make_free_format_lsp_project
shortcut to avoid duplication.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could, but I believe test code deserves to be as plain as possible, hence I did not do that -- in fact there is much code duplication between the test cases already.
The indenter also now uses inferred formats properly.
Fixes #52
Note: Currently includes #73; do not merge before #73.