Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Only replace NamedFieldList and add test for preserving Self | yanchith | 2019-03-18 | 1 | -13/+45 | |
| | | ||||||
| * | Remove unachievable TODO | yanchith | 2019-03-18 | 1 | -1/+0 | |
| | | ||||||
| * | Implement naive version of fill_struct_fields assist | yanchith | 2019-03-17 | 2 | -0/+122 | |
| | | ||||||
* | | Move the primary assist fn to the top of the file | Igor Matuszewski | 2019-03-16 | 1 | -30/+30 | |
| | | ||||||
* | | Provide assist when cursor is immediately outside impl item block | Igor Matuszewski | 2019-03-16 | 1 | -14/+18 | |
| | | ||||||
* | | Do a cleanup/legibility pass | Igor Matuszewski | 2019-03-16 | 1 | -21/+21 | |
| | | ||||||
* | | Take into account parent indent when filling trait members | Igor Matuszewski | 2019-03-16 | 1 | -9/+41 | |
| | | ||||||
* | | Simplify trait resolution fragment | Igor Matuszewski | 2019-03-16 | 1 | -6/+3 | |
| | | ||||||
* | | Ignore unnamed trait fns and add more tests | Igor Matuszewski | 2019-03-16 | 1 | -2/+70 | |
| | | ||||||
* | | Simplify calculation of missing functions | Igor Matuszewski | 2019-03-16 | 1 | -9/+2 | |
| | | | | | | | | | | | | Asymptotically computing a set difference is faster but in the average case we won't have more than ~10 functions. Also prefer not using hash sets as these may yield nondeterministic results. | |||||
* | | Properly support the case when the cursor is inside an empty block or outside | Igor Matuszewski | 2019-03-16 | 1 | -15/+44 | |
| | | ||||||
* | | Redo indent calculation when adding missing impl members | Igor Matuszewski | 2019-03-16 | 1 | -9/+21 | |
| | | ||||||
* | | Implement a simple working assist | Igor Matuszewski | 2019-03-16 | 1 | -13/+59 | |
| | | ||||||
* | | Calculate missing functions from impl body | Igor Matuszewski | 2019-03-16 | 1 | -1/+62 | |
| | | ||||||
* | | Add 'add_missing_impl_members' assist stub | Igor Matuszewski | 2019-03-16 | 2 | -0/+43 | |
|/ | ||||||
* | rename syntax_mapping as well | Aleksey Kladov | 2019-03-02 | 1 | -2/+2 | |
| | ||||||
* | rename syntax-mapping -> source-map | Aleksey Kladov | 2019-03-02 | 1 | -1/+1 | |
| | ||||||
* | add marks to assists | Aleksey Kladov | 2019-02-24 | 3 | -45/+41 | |
| | ||||||
* | dont show introduce variable everywhere | Aleksey Kladov | 2019-02-24 | 2 | -46/+42 | |
| | ||||||
* | Assign IDs to assists | Aleksey Kladov | 2019-02-24 | 12 | -26/+41 | |
| | ||||||
* | Simplify test_fill_match_arm_refs test cases | Ville Penttinen | 2019-02-23 | 1 | -24/+0 | |
| | ||||||
* | Fix fill_match_arms not working with references | Ville Penttinen | 2019-02-23 | 1 | -0/+103 | |
| | ||||||
* | Move `non_trivia_sibling` to `ra_syntax::algo` | Ville Penttinen | 2019-02-21 | 2 | -6/+3 | |
| | ||||||
* | auto_import: fix bug when the common path was shorter than both the current ↵ | Andrea Pretto | 2019-02-14 | 1 | -18/+67 | |
| | | | | | | use and target path. Shorter test names. | |||||
* | auto_import: import in enclosing module instead of file | Andrea Pretto | 2019-02-12 | 1 | -4/+38 | |
| | ||||||
* | auto_import: more tests and some refactorings | Andrea Pretto | 2019-02-12 | 1 | -12/+46 | |
| | ||||||
* | Fix some typos | Pascal Hertleif | 2019-02-12 | 2 | -5/+5 | |
| | ||||||
* | ra_assists: assist "providers" can produce multiple assists | Andrea Pretto | 2019-02-11 | 12 | -64/+144 | |
| | ||||||
* | Merge #762 | bors[bot] | 2019-02-10 | 2 | -0/+732 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 762: "Dumb" auto import assist r=matklad a=eulerdisk This adds a new assist to "add xxx::yyy to the current file" when the cursor is on a PATH. It manages correctly nested imports,`self` keyword and creates new nested imports if necessary. [See the tests] It doesn't use name resolution so in that sense is 'dumb', but I have plans to do that. That in the future will be useful to auto import trait names in autocompletion for example. It can easily be extended to provide multiple actions to select in which scope to import. That's another thing I plan to do. @matklad I copied some indentation code from `ide_light`, I don't know at the moment if/how you want to refactor that code. This assist was meant to be in `ide_light`. Co-authored-by: Andrea Pretto <[email protected]> | |||||
| * | auto_import: use ra_fmt | Andrea Pretto | 2019-02-09 | 1 | -109/+29 | |
| | | ||||||
| * | auto_import: struct variants for ImportAction | Andrea Pretto | 2019-02-09 | 1 | -44/+107 | |
| | | ||||||
| * | auto_import: remove PathSegmentsMatch | Andrea Pretto | 2019-02-09 | 1 | -65/+37 | |
| | | ||||||
| * | auto_import: Removed Empty in favor of Partial(0) | Andrea Pretto | 2019-02-09 | 1 | -16/+10 | |
| | | | | | | | | auto_import: Removed unecessary lifetimes | |||||
| * | auto_import assist | Andrea Pretto | 2019-02-09 | 2 | -0/+783 | |
| | | ||||||
* | | Fix introduce var duplicating newlines | Ville Penttinen | 2019-02-09 | 1 | -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 #766 | bors[bot] | 2019-02-09 | 2 | -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 Pretto | 2019-02-08 | 2 | -2/+2 | |
| | | ||||||
* | | Improve sorting delegate | robojumper | 2019-02-09 | 1 | -7/+5 | |
| | | ||||||
* | | Remove unused import | robojumper | 2019-02-08 | 1 | -2/+2 | |
| | | ||||||
* | | Add tests for action target ranges | robojumper | 2019-02-08 | 10 | -16/+210 | |
| | | ||||||
* | | Add some assist ranges | robojumper | 2019-02-08 | 5 | -10/+58 | |
|/ | ||||||
* | reformat the world | Aleksey Kladov | 2019-02-08 | 9 | -96/+27 | |
| | ||||||
* | Remove unnecessary dbg! calls | Ville Penttinen | 2019-02-07 | 1 | -3/+2 | |
| | ||||||
* | Add new assist to remove dbg!() calls | Ville Penttinen | 2019-02-07 | 2 | -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 cleanups | kjeremy | 2019-02-06 | 1 | -3/+3 | |
| | ||||||
* | assists: compute edit | kjeremy | 2019-02-06 | 1 | -1/+1 | |
| | ||||||
* | move assists to a separate crate | Aleksey Kladov | 2019-02-06 | 10 | -0/+1389 | |