Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | rename | Unreal Hoang | 2019-05-16 | 2 | -2/+2 | |
| | | ||||||
* | | apply T! macro where it is possible | Sergey Parilin | 2019-05-15 | 7 | -23/+24 | |
|/ | ||||||
* | switch to once_cell from lazy_static | Aleksey Kladov | 2019-05-07 | 2 | -5/+3 | |
| | ||||||
* | removed duplicating fill_struct_fields assist | Sergey Parilin | 2019-05-06 | 2 | -228/+0 | |
| | ||||||
* | fill struct fields diagnostic | Sergey Parilin | 2019-05-06 | 1 | -0/+5 | |
| | ||||||
* | Remove collect | Jeremy Kolb | 2019-05-05 | 1 | -2/+1 | |
| | ||||||
* | add complex match case and documentation | Unreal Hoang | 2019-05-01 | 1 | -13/+29 | |
| | ||||||
* | move guard to arm body assist. | Unreal Hoang | 2019-05-01 | 2 | -0/+101 | |
| | ||||||
* | Merge #1194 | bors[bot] | 2019-04-22 | 3 | -70/+139 | |
|\ | | | | | | | | | | | | | | | | | 1194: Pr 1190 r=matklad a=matklad Co-authored-by: Andrea Pretto <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | move auto-imoprter into IDE | Aleksey Kladov | 2019-04-22 | 1 | -3/+1 | |
| | | | | | | | | | | auto-import is purely an IDE concern, so it should be done outside of HIR | |||||
| * | complete_import: add new import resolver infrastructure with some hardcoded ↵ | Andrea Pretto | 2019-04-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | importable name. Changes complete_scope to support that. | |||||
| * | auto_import: better no anchor management | Andrea Pretto | 2019-04-21 | 1 | -7/+48 | |
| | | ||||||
| * | auto_import: make auto import working with target as a list of SmolStr ↵ | Andrea Pretto | 2019-04-21 | 1 | -63/+65 | |
| | | | | | | | | instead of ast::Path | |||||
| * | auto_import: use TextEditBuilder instead of AssistBuilder to make it more ↵ | Andrea Pretto | 2019-04-21 | 2 | -8/+36 | |
| | | | | | | | | reusable | |||||
* | | drop useless test | Aleksey Kladov | 2019-04-22 | 1 | -28/+0 | |
| | | ||||||
* | | move add_missing_members to structured editing API | Aleksey Kladov | 2019-04-22 | 2 | -129/+178 | |
| | | | | | | | | | | Currently, this is more code, and we also loose auto-indenting of bodies, but, long-term, this is the right approach | |||||
* | | more type safety | Aleksey Kladov | 2019-04-22 | 3 | -4/+29 | |
| | | ||||||
* | | test short structs | Aleksey Kladov | 2019-04-21 | 2 | -4/+38 | |
| | | ||||||
* | | use structured editing API for fill struct assist | Aleksey Kladov | 2019-04-21 | 3 | -119/+138 | |
| | | ||||||
* | | start structured editing API | Aleksey Kladov | 2019-04-21 | 3 | -0/+156 | |
|/ | ||||||
* | better formatting when adding trait members | Aleksey Kladov | 2019-04-17 | 1 | -8/+23 | |
| | | | | | | * it's conventional not to use one-liners * new placement is more predictable, b/c it does not depend on header's length | |||||
* | replace usages of `algo::generate` with `iter::successors` from std | Robin Freyler | 2019-04-13 | 1 | -2/+3 | |
| | ||||||
* | fold ScopeWithSyntax into SourceAnalyzer | Aleksey Kladov | 2019-04-13 | 1 | -1/+1 | |
| | ||||||
* | hide some scopes | Aleksey Kladov | 2019-04-13 | 1 | -8/+3 | |
| | ||||||
* | use really correct resolver for expressions | Aleksey Kladov | 2019-04-12 | 4 | -3/+4 | |
| | ||||||
* | fix typo | Aleksey Kladov | 2019-04-11 | 1 | -2/+2 | |
| | ||||||
* | rename | Aleksey Kladov | 2019-04-11 | 4 | -6/+6 | |
| | ||||||
* | introduce SourceAnalyzer | Aleksey Kladov | 2019-04-11 | 4 | -28/+16 | |
| | ||||||
* | Stylistic changes. Updated features.md with the new assists. | Marco Groppo | 2019-04-09 | 1 | -8/+6 | |
| | ||||||
* | Add explicit type assist. | Marco Groppo | 2019-04-08 | 2 | -0/+97 | |
| | ||||||
* | remove flavor | Aleksey Kladov | 2019-04-02 | 1 | -2/+2 | |
| | ||||||
* | add ast::tokens | Aleksey Kladov | 2019-04-02 | 2 | -8/+3 | |
| | ||||||
* | intelligently add parens when inlining local varaibles | gfreezy | 2019-04-01 | 2 | -44/+391 | |
| | ||||||
* | switch to new rowan | Aleksey Kladov | 2019-04-01 | 12 | -56/+62 | |
| | ||||||
* | Flip any binary expression except assignments. | Marco Groppo | 2019-03-26 | 1 | -64/+56 | |
| | ||||||
* | Assist to flip (some) binary expressions. | Marco Groppo | 2019-03-25 | 3 | -88/+151 | |
| | | | | This assist can flip the following operators: ==, !=, >, >=, <, <=. | |||||
* | Merge #1037 | bors[bot] | 2019-03-25 | 2 | -0/+300 | |
|\ | | | | | | | | | | | | | | | 1037: inline immutable local varialbe r=matklad a=gfreezy resolved #1033 Co-authored-by: gfreezy <[email protected]> | |||||
| * | use | instead of multiple match arms | gfreezy | 2019-03-25 | 1 | -27/+27 | |
| | | ||||||
| * | inline immutable local varialbe | gfreezy | 2019-03-25 | 2 | -0/+300 | |
| | | ||||||
* | | Merge #1036 | bors[bot] | 2019-03-25 | 2 | -0/+88 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | 1036: Assist to flip equality (==) and negated equality (!=) operands. r=matklad a=marcogroppo This PR adds an assist to flip the equality operands. I hope this is the right way to do this (I'm a newbie...) Fixes #1023. Co-authored-by: Marco Groppo <[email protected]> | |||||
| * | Target only the actual operator. | Marco Groppo | 2019-03-24 | 1 | -12/+11 | |
| | | | | | | | | | | Renamed `BinExpr::op()` and `PrefixExpr::op()` to `op_kind`. Now `op()` returns the `SyntaxNode`. | |||||
| * | Minor formatting changes. | Marco Groppo | 2019-03-24 | 1 | -1/+1 | |
| | | ||||||
| * | Assist to flip equality (==) and negative equality (!=) operands. | Marco Groppo | 2019-03-24 | 2 | -0/+89 | |
| | | ||||||
* | | Add assist for adding default methods | gfreezy | 2019-03-23 | 2 | -3/+59 | |
| | | ||||||
* | | Add impl members assist shold not copy docstrings, attrs and default methods. | gfreezy | 2019-03-23 | 1 | -22/+42 | |
|/ | ||||||
* | Remove the old variants replaced by Ty::Apply | Florian Diebold | 2019-03-21 | 2 | -12/+8 | |
| | ||||||
* | Improve performance and ordering | Caio | 2019-03-20 | 1 | -21/+15 | |
| | ||||||
* | Fill partial fields | Caio | 2019-03-20 | 1 | -32/+127 | |
| | ||||||
* | Merge #989 | bors[bot] | 2019-03-18 | 2 | -0/+153 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 989: Implement naive version of fill_struct_fields assist r=matklad a=yanchith Fixes #964 This implements the `fill_struct_fields` assist. Currently only works for named struct fields, but not for tuple structs, because we seem to be missing a `TupleStructLit` (akin to `StructLit`, but for tuple structs). I am happy to implement `TupleStructLit` parsing given some guidance (provided it's really missing) and make the assist work for tuple structs as well. Could do so either in this PR, or another one 🙂 Sorry if I missed something important, this is my first PR for Rust Analyzer. Btw is there any way to run the assists in emacs? UPDATE: I just realized that parsing `TupleStructLit` would be quite difficult as it it really similar, if not identical to a function call... Co-authored-by: yanchith <[email protected]> | |||||
| * | Only replace NamedFieldList and add test for preserving Self | yanchith | 2019-03-18 | 1 | -13/+45 | |
| | |