aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/handlers/remove_dbg.rs
Commit message (Collapse)AuthorAgeFilesLines
* Addressed code reviewpetr-tik2020-07-291-27/+41
| | | | | | | replaced match with let-if variable assignment removed the unnecessary semicolon_on_end variable converted all code and expected test variables to raw strings and inlined them in asserts
* Fixed #5129petr-tik2020-07-271-8/+23
| | | | | | | | | | | | | | | | | | Addresses two issues: - keep the parens from dbg!() in case the call is chained or there is semantic difference if parens are excluded - Exclude the semicolon after the dbg!(); by checking if it was accidentally included in the macro_call investigated, but decided against: fix ast::MacroCall extraction to never include semicolons at the end - this logic lives in rowan. Defensively shorten the macro_range if there is a semicolon token. Deleted unneccessary temp variable macro_args Renamed macro_content to "paste_instead_of_dbg", because it isn't a simple extraction of text inside dbg!() anymore
* Make all test fn names consistent in remove_dbgpetr-tik2020-07-271-3/+29
|
* Added failing testspetr-tik2020-07-271-0/+21
|
* Move AssistKind into AssistIdkjeremy2020-07-021-1/+1
|
* Categorize assistsJeremy Kolb2020-07-021-2/+2
|
* More snippetsAleksey Kladov2020-05-201-30/+9
|
* Refactor assists API to be more convenient for adding new assistsAleksey Kladov2020-05-071-3/+3
| | | | It now duplicates completion API in its shape.
* Move target to AssistLabelAleksey Kladov2020-05-061-2/+2
| | | | | Target is used for assists sorting, so we need it before we compute the action.
* Merge assits::test_helpers and testsAleksey Kladov2020-05-061-1/+1
|
* Convert code to text-sizeAleksey Kladov2020-04-251-4/+4
|
* Name assist handlersAleksey Kladov2020-02-071-0/+150