rust/crates/ra_assists/src/handlers
petr-tik 6ea28c3779 Fixed #5129
Addresses two issues:
- keep the parens from dbg!() in case the call is chained or there is
semantic difference if parens are excluded
- Exclude the semicolon after the dbg!(); by checking if it was
accidentally included in the macro_call

investigated, but decided against:
fix ast::MacroCall extraction to never include semicolons at the end -
this logic lives in rowan.

Defensively shorten the macro_range if there is a semicolon token.
Deleted unneccessary temp variable macro_args

Renamed macro_content to "paste_instead_of_dbg", because it isn't a
simple extraction of text inside dbg!() anymore
2020-07-27 22:17:15 +01:00
..
add_custom_impl.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
add_explicit_type.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
add_missing_impl_members.rs Move remove_bounds to edit.rs 2020-07-14 13:33:37 +02:00
add_turbo_fish.rs Add turbo-fish works after () 2020-07-18 14:48:28 +02:00
apply_demorgan.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
auto_import.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
change_return_type_to_result.rs assists: change_return_type_to_result: clarify assist description 2020-07-22 22:44:31 +02:00
change_visibility.rs change vis works on statics 2020-07-12 01:49:51 +02:00
early_return.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
extract_struct_from_enum_variant.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
extract_variable.rs Cleanup extact variable 2020-07-21 18:10:03 +02:00
fill_match_arms.rs Better caret placement when filling match arms 2020-07-10 18:22:04 +02:00
fix_visibility.rs Replace existing visibility modifier in fix_visibility 2020-07-21 18:58:00 +02:00
flip_binexpr.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
flip_comma.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
flip_trait_bound.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
generate_derive.rs Add AssistKind::Generate 2020-07-03 19:32:18 +02:00
generate_from_impl_for_enum.rs Add AssistKind::Generate 2020-07-03 19:32:18 +02:00
generate_function.rs Add AssistKind::Generate 2020-07-03 19:32:18 +02:00
generate_impl.rs Add AssistKind::Generate 2020-07-03 19:32:18 +02:00
generate_new.rs Add AssistKind::Generate 2020-07-03 19:32:18 +02:00
inline_local_variable.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
introduce_named_lifetime.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
invert_if.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
merge_imports.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
merge_match_arms.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
move_bounds.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
move_guard.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
raw_string.rs Minor perf tweaks per clippy 2020-07-19 14:26:24 -04:00
remove_dbg.rs Fixed #5129 2020-07-27 22:17:15 +01:00
remove_mut.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
reorder_fields.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
replace_if_let_with_match.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
replace_let_with_if_let.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
replace_qualified_name_with_use.rs Minor perf tweaks per clippy 2020-07-19 14:26:24 -04:00
replace_unwrap_with_match.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
split_import.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00
unwrap_block.rs Move AssistKind into AssistId 2020-07-02 17:48:35 -04:00