rust/crates
bors[bot] 50956f89fc
Merge #3285
3285: Handle trivia in Structural Search and Replace r=matklad a=adamrk

Addresses the second point of https://github.com/rust-analyzer/rust-analyzer/issues/3186.

Structural search and replace will now match code that has varies from the pattern in whitespace or comments.

One issue is that it's not clear where comments in the matched code should go in the replacement. With this change they're just tacked on at the end, which can cause some unexpected moving of comments (see the last test example).

Co-authored-by: adamrk <ark.email@gmail.com>
2020-02-27 08:54:18 +00:00
..
ra_arena
ra_assists Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_cargo_watch Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_cfg Update versions 2020-02-18 16:12:40 +02:00
ra_db ra_db: removed a couple of explicit lifetimes 2020-02-22 17:00:39 +02:00
ra_fmt When joining lines, unwrap trivial diverging blocks 2020-02-24 17:17:05 +01:00
ra_hir Use text_range::extend_to 2020-02-27 10:06:48 +08:00
ra_hir_def Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_hir_expand Update versions 2020-02-18 16:12:40 +02:00
ra_hir_ty Bump chalk and replace TypeFamily with Interner 2020-02-24 22:36:57 +02:00
ra_ide Merge #3285 2020-02-27 08:54:18 +00:00
ra_ide_db Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_mbe ra_mbe: Remove explicit type annotation 2020-02-22 13:14:46 +02:00
ra_parser Fix dat comment 2020-02-22 14:16:13 +02:00
ra_prof Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_project_model Add suggestion for failed path resolution 2020-02-23 15:51:32 +01:00
ra_syntax Skip trival token in original_range 2020-02-27 00:12:26 +08:00
ra_text_edit Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_tt Update versions 2020-02-18 16:12:40 +02:00
rust-analyzer Merge #3335 2020-02-27 08:32:44 +00:00
test_utils Use text_range::extend_to 2020-02-27 10:06:48 +08:00