rust-analyzer/crates
bors fa3db447d7 Auto merge of #14536 - ClSlaid:feat/reorder-impl-items/not-applicative-editing-assoc-items, r=Veykril
fix: restrict applicable range of `reorder-impl-trait-items`

This PR should complete the need for restricting the applicable range of `reorder-impl-trait-items`.

When the cursor is in the associated items of the `impl` range, the assist will be disabled.

Fix: #14515

## Showcases
Note: If there is any available `code-action` (`ide-assist`) available, a lightbulb icon from `lspsaga` will show in the left.

- cursor in `impl` headers
![code action available](https://user-images.githubusercontent.com/44747719/230756854-7b236018-cfa8-4005-b589-2996ec42917f.png)
Code action is available. And it is reordering impl items.
![code action detail](https://user-images.githubusercontent.com/44747719/230756971-341c7fbc-f2ba-4715-a1e5-b1add984d4dd.png)

- cursor in `impl` associated items
![code action unavailable](
https://user-images.githubusercontent.com/44747719/230756906-bee7784e-bd9d-49b2-801b-743c94b4af54.png)
2023-04-11 07:36:42 +00:00
..
base-db Switch crate graph to use an Arena instead of a hashmap 2023-04-05 10:32:02 +02:00
cfg ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
flycheck Bump Cargo.lock 2023-03-25 15:12:39 +01:00
hir Compute closure captures 2023-04-10 23:04:34 +03:30
hir-def Compute closure captures 2023-04-10 23:04:34 +03:30
hir-expand Add bounds for associated types in derive macro 2023-04-07 19:33:14 +03:30
hir-ty Compute closure captures 2023-04-10 23:04:34 +03:30
ide Compute closure captures 2023-04-10 23:04:34 +03:30
ide-assists Auto merge of #14536 - ClSlaid:feat/reorder-impl-items/not-applicative-editing-assoc-items, r=Veykril 2023-04-11 07:36:42 +00:00
ide-completion Auto merge of #14433 - hecatia-elegua:alias-based-completion, r=Veykril 2023-04-05 13:44:51 +00:00
ide-db Auto merge of #14442 - DropDemBits:structured-snippet-api, r=Veykril 2023-04-05 14:33:30 +00:00
ide-diagnostics Compute closure captures 2023-04-10 23:04:34 +03:30
ide-ssr ⬆️ rust-analyzer 2023-03-13 10:42:24 +02:00
intern ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
limit ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
mbe ⬆️ rust-analyzer 2023-02-20 10:14:12 +02:00
parser feat(syntax): RTN in bounds 2023-04-01 15:26:03 +02:00
paths Canonicalize rust-project.json manifest path 2023-03-27 21:55:02 +02:00
proc-macro-api Remove client side proc-macro version check 2023-03-25 15:43:58 +01:00
proc-macro-srv Thread global symbol interner through as if it was a local 2023-03-29 11:42:08 +02:00
proc-macro-srv-cli Drop support for non-syroot proc macro ABIs 2023-03-29 10:57:32 +02:00
proc-macro-test ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
profile Bump Cargo.lock 2023-03-25 15:12:39 +01:00
project-model Switch crate graph to use an Arena instead of a hashmap 2023-04-05 10:32:02 +02:00
rust-analyzer Compute closure captures 2023-04-10 23:04:34 +03:30
sourcegen Use retain_mut in CommentBlock::extract 2023-03-31 17:41:40 -04:00
stdx ⬆️ rust-analyzer 2023-02-20 10:14:12 +02:00
syntax feat(syntax): RTN in bounds 2023-04-01 15:26:03 +02:00
test-utils Add bounds for associated types in derive macro 2023-04-07 19:33:14 +03:30
text-edit internal: Coalesce adjacent Indels 2023-03-21 11:48:32 -04:00
toolchain ⬆️ rust-analyzer 2023-03-13 10:42:24 +02:00
tt ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00
vfs internal: Refine CrateOrigin variants 2023-03-31 10:36:13 +02:00
vfs-notify ⬆️ rust-analyzer 2023-02-13 13:55:14 +02:00