rust-analyzer/crates/ide-assists/src
bors 4596847a88 Auto merge of #13746 - feniljain:fix_extract_function, r=jonas-schievink
fix: make make_body respect comments in extract_function

Possible fix for #13621

### Points to help in review:

- Earlier we were only considering statements in a block expr and hence comments were being ignored, now we handle tokens hence making it aware of comments and then preserving them using `hacky_block_expr_with_comments`

Seems like I am not able to attach output video, github is glitching for it :(
2022-12-12 14:51:03 +00:00
..
handlers Auto merge of #13746 - feniljain:fix_extract_function, r=jonas-schievink 2022-12-12 14:51:03 +00:00
tests Add remove_parentheses assist 2022-12-06 16:18:25 +00:00
utils fix: refine fallback case in generated PartialEq impl 2022-12-07 10:25:17 +08:00
assist_config.rs feat: add config for inserting must_use in generate_enum_as_method 2022-10-24 13:18:24 +05:30
assist_context.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
lib.rs Add remove_parentheses assist 2022-12-06 16:18:25 +00:00
tests.rs feat: add config for inserting must_use in generate_enum_as_method 2022-10-24 13:18:24 +05:30
utils.rs Add move_const_to_impl assist 2022-12-03 01:22:00 +09:00