rust-analyzer/crates
bors[bot] 3af303600a
Merge #8510 #8533
8510: Move cursor position when using item movers r=jonas-schievink a=jonas-schievink

This updates the cursor position when moving items around to stay in the same location within the moved node.

I changed the `moveItem` response to `SnippetTextEdit[]`, since that made more sense to me (the file was ignored by the client anyways, since the edits always apply to the current document). It also matches `onEnter`, which seems logical to me, but please let me know if this doesn't make sense.

There's still a bug in the client-side snippet code that will cause the cursor position to be slightly off when moving parameters in the same line (presumably we don't track the column correctly after deleting `$0`). Not really sure how to fix that immediately, but this PR should already be an improvement despite that bug.

8533: Fix typo in style guide r=jonas-schievink a=jonas-schievink

Fixes bold text rendering

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-04-15 16:42:36 +00:00
..
base_db Adjust fixture docs a bit 2021-04-06 21:42:27 +03:00
cfg Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
flycheck
hir Improve indexing of impls 2021-04-09 11:21:31 +02:00
hir_def Make find_path tests adhere to style guide 2021-04-15 18:32:19 +02:00
hir_expand Support macros in pattern position 2021-04-11 01:25:50 +02:00
hir_ty Profile trait solving for all invocations 2021-04-14 19:11:17 +03:00
ide Move cursor position when using item movers 2021-04-14 00:03:04 +02:00
ide_assists Merge #8415 2021-04-13 11:39:03 +00:00
ide_completion Do not show flyimports in trait or impl declarations 2021-04-15 11:51:43 +03:00
ide_db Profile trait solving for all invocations 2021-04-14 19:11:17 +03:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
parser
paths Clearer naming 2021-04-06 16:22:26 +03:00
proc_macro_api Trim down IPC json size 2021-03-24 15:01:37 +08:00
proc_macro_srv Fix parse u128 bug in proc-macro 2021-03-31 19:50:36 +08:00
proc_macro_test
profile internal: revive google_cpu_profile infra 2021-03-30 17:29:43 +03:00
project_model feat: avoid checking the whole project during initial loading 2021-04-12 15:29:31 +03:00
rust-analyzer Move cursor position when using item movers 2021-04-14 00:03:04 +02:00
stdx feat: show errors from cargo metadata and initial cargo check in the status bar 2021-04-06 18:08:05 +03:00
syntax Update crates 2021-04-07 11:39:33 -04:00
test_utils internal: fix flakiness of accidentally quadratic test 2021-04-13 12:56:24 +03:00
text_edit
toolchain
tt
vfs Avoid duplicating VfsPath in vfs::path_interner::PathInterner by using an IndexSet 2021-04-06 16:03:57 +03:00
vfs-notify