rust/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
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
mbe
parser
paths Clearer naming 2021-04-06 16:22:26 +03:00
proc_macro_api
proc_macro_srv
proc_macro_test
profile
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