rust/crates
bors[bot] 166c720425 Merge #770
770: Fix introduce var duplicating newlines r=matklad a=vipentti

This fixes #713.

If the block before the statement we want to use introduce var on, had empty
lines these empty lines would also be added between the let-statement and
the current line where the new variable is used.

This fixes that by trimming excess newlines from the start of the indent chunk
and simply adding a single newline (when the chunk had newlines) between the
let-statement and the current statement. If there were no newlines this
matches the previous behaviour.

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>
2019-02-10 08:16:08 +00:00
..
gen_lsp_server reformat the world 2019-02-08 14:49:43 +03:00
ra_arena reformat the world 2019-02-08 14:49:43 +03:00
ra_assists Fix introduce var duplicating newlines 2019-02-09 13:52:01 +02:00
ra_cli reformat the world 2019-02-08 14:49:43 +03:00
ra_db Move crate graph generation to ra_project_model 2019-02-09 11:15:25 +01:00
ra_fmt Refactor formatting code out of ra_ida_api_light into ra_fmt. 2019-02-08 18:58:27 +01:00
ra_hir Add comment and mark 2019-02-09 22:03:01 +01:00
ra_ide_api reformat the world 2019-02-08 14:49:43 +03:00
ra_ide_api_light Refactor formatting code out of ra_ida_api_light into ra_fmt. 2019-02-08 18:58:27 +01:00
ra_lsp_server Remove Vfs from project model 2019-02-09 11:15:25 +01:00
ra_mbe reformat the world 2019-02-08 14:49:43 +03:00
ra_project_model Clean up a bit 2019-02-09 11:15:25 +01:00
ra_syntax Fix handling of literal patterns 2019-02-09 21:37:30 +01:00
ra_text_edit reformat the world 2019-02-08 14:49:43 +03:00
ra_tt move test 2019-01-31 22:23:30 +02:00
ra_vfs update notify with fix for hight cpu usage 2019-02-09 17:18:26 +01:00
test_utils reformat the world 2019-02-08 14:49:43 +03:00
thread_worker reformat the world 2019-02-08 14:49:43 +03:00
tools reformat the world 2019-02-08 14:49:43 +03:00