| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
We never actually use ability to create multiple actions out of a
single context
|
|
|
|
|
| |
I think this is the first time I use global rename for rust-analyzer
itself :-)
|
| |
|
| |
|
|
|
|
|
| |
Use the more conventional way of importing the ast types, and
put the assist at the top of the file.
|
| |
|
|
Fixes #1807
This assist can transform expressions of the form `!x || !y` into
`!(x && y)`. This also works with `&&`.
This assist will only trigger if the cursor is on the central logical
operator.
The main limitation of this current implementation is that both operands
need to be an explicit negation, either of the form `!x`, or `x != y`.
More operands could be accepted, but this would complicate the implementation
quite a bit.
|