Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename ra_assists -> assists | Aleksey Kladov | 2020-08-13 | 1 | -747/+0 |
| | |||||
* | Rename ra_ide_db -> ide_db | Aleksey Kladov | 2020-08-13 | 1 | -1/+1 |
| | |||||
* | Rename ra_syntax -> syntax | Aleksey Kladov | 2020-08-12 | 1 | -1/+1 |
| | |||||
* | align names in make | Aleksey Kladov | 2020-08-05 | 1 | -3/+2 |
| | |||||
* | Rename BindPat -> IdentPat | Aleksey Kladov | 2020-07-31 | 1 | -1/+1 |
| | |||||
* | Rename PalceholderPat -> WildcardPat | Aleksey Kladov | 2020-07-31 | 1 | -12/+10 |
| | |||||
* | Better caret placement when filling match arms | Aleksey Kladov | 2020-07-10 | 1 | -124/+86 |
| | |||||
* | Move AssistKind into AssistId | kjeremy | 2020-07-02 | 1 | -2/+1 |
| | |||||
* | Recategorize a few | kjeremy | 2020-07-02 | 1 | -1/+1 |
| | |||||
* | Categorize assists | Jeremy Kolb | 2020-07-02 | 1 | -19/+25 |
| | |||||
* | Remove db from AssistsContext | Laurențiu Nicola | 2020-07-01 | 1 | -4/+4 |
| | |||||
* | Centralize fixture parsing for assists | Aleksey Kladov | 2020-06-23 | 1 | -3/+3 |
| | |||||
* | Remove RelativePathBuf from fixture | Aleksey Kladov | 2020-06-22 | 1 | -1/+1 |
| | | | | | The paths in fixture are not really relative (the default one is `/main.rs`), so it doesn't make sense to use `RelativePathBuf` here. | ||||
* | fill_match_arms bind pattern implementation | Toby Dimmick | 2020-06-14 | 1 | -2/+14 |
| | |||||
* | fill_match_arms bind pattern test | Toby Dimmick | 2020-06-14 | 1 | -0/+34 |
| | |||||
* | Snippetify fill_match_arms | Aleksey Kladov | 2020-05-20 | 1 | -116/+77 |
| | |||||
* | Switch to new magic marks | Aleksey Kladov | 2020-05-20 | 1 | -4/+5 |
| | |||||
* | Fix Some|None order in fill_match_arms | Aleksey Kladov | 2020-05-20 | 1 | -4/+40 |
| | |||||
* | Refactor assists API to be more convenient for adding new assists | Aleksey Kladov | 2020-05-07 | 1 | -3/+3 |
| | | | | It now duplicates completion API in its shape. | ||||
* | Move target to AssistLabel | Aleksey Kladov | 2020-05-06 | 1 | -3/+2 |
| | | | | | Target is used for assists sorting, so we need it before we compute the action. | ||||
* | Merge assits::test_helpers and tests | Aleksey Kladov | 2020-05-06 | 1 | -1/+1 |
| | |||||
* | When adding match arm, don't let the floating comma | Aleksey Kladov | 2020-03-31 | 1 | -5/+25 |
| | |||||
* | Use IntoIter | Aleksey Kladov | 2020-03-30 | 1 | -2/+1 |
| | |||||
* | Remove "TODO" in comment in test | Matthew Hall | 2020-03-28 | 1 | -4/+4 |
| | |||||
* | Append new match arms rather than replacing all of them | Matthew Hall | 2020-03-28 | 1 | -5/+68 |
| | | | | This means we now retain comments when filling in match arms. | ||||
* | Merge #3700 | bors[bot] | 2020-03-24 | 1 | -45/+45 |
|\ | | | | | | | | | | | | | | | | | | | 3700: fill match arms with empty block rather than unit tuple r=matklad a=JoshMcguigan As requested by @Veetaha in #3689 and #3687, this modifies the fill match arms assist to create match arms as an empty block `{}` rather than a unit tuple `()`. In one test I left one of the pre-existing match arms as a unit tuple, and added a body to another match arm, to demonstrate that the contents of existing match arms persist. Co-authored-by: Josh Mcguigan <[email protected]> | ||||
| * | fill match arms with empty block rather than unit tuple | Josh Mcguigan | 2020-03-24 | 1 | -45/+45 |
| | | |||||
* | | Use more generic public api | Kirill Bulatov | 2020-03-24 | 1 | -2/+1 |
| | | |||||
* | | Auto import macros | Kirill Bulatov | 2020-03-24 | 1 | -2/+3 |
|/ | |||||
* | review comments | Josh Mcguigan | 2020-03-23 | 1 | -16/+108 |
| | |||||
* | implement fill match arm assist for tuple of enums | Josh Mcguigan | 2020-03-23 | 1 | -14/+149 |
| | |||||
* | Address nits and suggestions. | Steffen Lyngbaek | 2020-03-19 | 1 | -140/+32 |
| | | | | | Simplify the logic a lot by removing the check for a placeholder pat. This means the auto-fill no longer returns a compile-able value. | ||||
* | Don't show assist if all arms are present | Steffen Lyngbaek | 2020-03-19 | 1 | -33/+37 |
| | |||||
* | 'Fill match arms' should work with existing match arms | Steffen Lyngbaek | 2020-03-19 | 1 | -25/+281 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Addresses #3039 This essentially adds missing match arms. The algorithm for this can get complicated rather quickly so bail in certain conditions and rely on a PlaceholderPat. The algorighm works as such: - Iterate through the Enum Def Variants - Attempt to see if the variant already exists as a match arm - If yes, skip the enum variant. If no, include it. - If it becomes complicated, rather than exhaustively deal with every branch, mark it as a "partial match" and simply include the placeholder. Conditions for "complication": - The match arm contains a match guard - Any kind of nested destrucuring Order the resulting merged match branches as such: 1. Provided match arms 2. Missing enum variant branch arms 3. End with Placeholder if required - Add extra tests | ||||
* | Cleanup imports | Aleksey Kladov | 2020-03-19 | 1 | -1/+1 |
| | |||||
* | Don't use generic DB where a concrete one will do | Aleksey Kladov | 2020-03-13 | 1 | -6/+2 |
| | |||||
* | Refactor primary IDE API | Aleksey Kladov | 2020-02-26 | 1 | -15/+8 |
| | | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax. | ||||
* | Add or- and parenthesized-patterns | Matthew Jasper | 2020-02-09 | 1 | -3/+3 |
| | |||||
* | Name assist handlers | Aleksey Kladov | 2020-02-07 | 1 | -0/+290 |