aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * auto_import assistAndrea Pretto2019-02-092-0/+783
| |
* | Fix introduce var duplicating newlinesVille Penttinen2019-02-091-1/+80
|/ | | | | | | | | | | | | This fixes #713. If the block before the statement we want to use introduce var on, had empty lines these empty lines would also be added between the let-statement and the current line where the new variable is used. This fixes that by trimming excess newlines from the start of the indent chunk and simply adding a single newline (when the chunk had newlines) between the let-statement and the current statement. If there were no newlines this matches the previous behaviour.
* Merge #766bors[bot]2019-02-092-2/+2
|\ | | | | | | | | | | | | | | | | | | 766: Formatting code into ra_fmt r=matklad a=eulerdisk As discussed https://github.com/rust-analyzer/rust-analyzer/pull/762#discussion_r254905885 I did only move the code without other improvements. Co-authored-by: Andrea Pretto <[email protected]>
| * Refactor formatting code out of ra_ida_api_light into ra_fmt.Andrea Pretto2019-02-082-2/+2
| |
* | Improve sorting delegaterobojumper2019-02-091-7/+5
| |
* | Remove unused importrobojumper2019-02-081-2/+2
| |
* | Add tests for action target rangesrobojumper2019-02-0810-16/+210
| |
* | Add some assist rangesrobojumper2019-02-085-10/+58
|/
* reformat the worldAleksey Kladov2019-02-089-96/+27
|
* Remove unnecessary dbg! callsVille Penttinen2019-02-071-3/+2
|
* Add new assist to remove dbg!() callsVille Penttinen2019-02-072-0/+126
| | | | | | | | | | | | | | | | | This fixes #758. Currently we try to maintain the cursor position relative to the statement under cursor, if the cursor is inside the dbg! macro call. Meaning: let foo = dbg!(some.complex<|>().expression()); Should turn into: let foo = some.complex<|>().expression(); With the cursor staying in place.
* Some clippy cleanupskjeremy2019-02-061-3/+3
|
* assists: compute editkjeremy2019-02-061-1/+1
|
* move assists to a separate crateAleksey Kladov2019-02-0610-0/+1389