Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unnecessary completion::macro_in_item_position | Lukas Wirth | 2021-06-07 | 6 | -72/+17 |
| | |||||
* | Reorder CompletionContext fields | Lukas Wirth | 2021-06-07 | 1 | -16/+14 |
| | |||||
* | Move more things into PathCompletionContext | Lukas Wirth | 2021-06-07 | 8 | -46/+62 |
| | |||||
* | Simplify CompletionContext by introducing a path CallKind enum | Lukas Wirth | 2021-06-06 | 6 | -32/+49 |
| | |||||
* | Merge #9140 | bors[bot] | 2021-06-05 | 3 | -40/+71 |
|\ | | | | | | | | | | | | | | | | | | | 9140: feat: Render documentation for derive completion r=Veykril a=Veykril ![eEzGiq2wNa](https://user-images.githubusercontent.com/3757771/120847308-9c5a3300-c573-11eb-958d-e0f22f4757ed.gif) Nothing fancy as all the std derives aren't really documented though maybe some 3rd party crates document them equally to their trait counterparts. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Complete third-party attributes | Lukas Wirth | 2021-06-04 | 1 | -0/+19 |
| | | |||||
| * | Render documentation for derive completion | Lukas Wirth | 2021-06-04 | 2 | -40/+52 |
| | | |||||
* | | Fix incorrect list nesting in format_like feature description | Lukas Wirth | 2021-06-05 | 1 | -9/+9 |
|/ | |||||
* | Generate default lint completions | Lukas Wirth | 2021-06-04 | 4 | -6618/+4 |
| | |||||
* | Implement hover for lints | Lukas Wirth | 2021-06-04 | 3 | -2821/+2930 |
| | |||||
* | NFC: remove redundant clones (clippy::perf) | Matthias Krüger | 2021-06-03 | 1 | -1/+1 |
| | |||||
* | Remove obsolete is_new_item field on CompletionContext | Lukas Wirth | 2021-06-02 | 4 | -17/+5 |
| | |||||
* | Add MethodCall and FieldAccess variants to ImmediateLocation | Lukas Wirth | 2021-06-02 | 7 | -49/+81 |
| | |||||
* | Implement per-edition preludes | Jonas Schievink | 2021-06-01 | 1 | -18/+19 |
| | |||||
* | Merge #9079 | bors[bot] | 2021-05-31 | 1 | -3/+53 |
|\ | | | | | | | | | | | | | | | | | 9079: Don't take the parent kind of trailing attributes in attr completion r=Veykril a=Veykril bors r+ fixes https://github.com/rust-analyzer/rust-analyzer/issues/9076 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Don't take the parent kind of trailing attributes in attr completion | Lukas Wirth | 2021-05-31 | 1 | -3/+53 |
| | | |||||
* | | Add config setting for self-on-the-fly | Lukas Wirth | 2021-05-31 | 4 | -2/+4 |
| | | |||||
* | | Move unprefixed field/method completion to `dot` | Lukas Wirth | 2021-05-31 | 3 | -93/+101 |
| | | |||||
* | | Less strings, more hir::Names | Lukas Wirth | 2021-05-31 | 4 | -13/+13 |
| | | |||||
* | | Complete `self.` prefixed fields and methods inside methods | Lukas Wirth | 2021-05-31 | 6 | -54/+165 |
|/ | |||||
* | Use `Name`s instead of Strings in the completion rendering api | Lukas Wirth | 2021-05-31 | 10 | -142/+165 |
| | |||||
* | Merge #9068 | bors[bot] | 2021-05-30 | 6 | -146/+163 |
|\ | | | | | | | | | | | | | | | 9068: Move more `CompletinoContext` fields to `ImmediateLocation` r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Move more fields to `ImmediateLocation` | Lukas Wirth | 2021-05-30 | 6 | -146/+163 |
| | | |||||
* | | Fix incorrect prefer_inner calls on some attribute completions | Lukas Wirth | 2021-05-30 | 1 | -6/+31 |
|/ | |||||
* | Only complete derive proc macros in `#[derive]` | Jonas Schievink | 2021-05-29 | 1 | -2/+1 |
| | |||||
* | Add some lint completion tests | Lukas Wirth | 2021-05-29 | 3 | -30/+67 |
| | |||||
* | Merge #9027 | bors[bot] | 2021-05-29 | 4 | -359/+852 |
|\ | | | | | | | | | | | | | | | | | | | | | 9027: feat: Attribute completion is context aware r=Veykril a=Veykril This splits off the `lint` and `derive` completions into their own submodules of `attribute`. The idea is to create a lazy global hashmap that maps `SyntaxKind` to attribute names(`&[&str]`) in which we index with the syntax kind of the "thing" we are attributing giving us the attributes back that are valid for this kind. Then we use this name to do a binary search on the attribute list to fetch and build the corresponding completion item. Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | simplify | Lukas Wirth | 2021-05-29 | 3 | -85/+92 |
| | | |||||
| * | Add another attribute completion test | Lukas Wirth | 2021-05-28 | 1 | -5/+20 |
| | | |||||
| * | Add attribute completion tests | Lukas Wirth | 2021-05-28 | 1 | -8/+399 |
| | | |||||
| * | tt muncher time | Lukas Wirth | 2021-05-27 | 3 | -27/+57 |
| | | |||||
| * | Split attribute completion module into attribute, derive and lint modules | Lukas Wirth | 2021-05-27 | 3 | -366/+302 |
| | | |||||
| * | Attribute completion is context aware | Lukas Wirth | 2021-05-27 | 2 | -28/+142 |
| | | |||||
* | | More completion pattern tests | Lukas Wirth | 2021-05-28 | 2 | -86/+109 |
| | | |||||
* | | Implement prev sibling determination for `CompletionContext` | Lukas Wirth | 2021-05-28 | 3 | -54/+114 |
| | | |||||
* | | simplify | Lukas Wirth | 2021-05-28 | 4 | -112/+117 |
| | | |||||
* | | Don't label derive macros with their banged_name | Lukas Wirth | 2021-05-28 | 1 | -1/+5 |
| | | |||||
* | | Complete keywords in (Assoc)ItemList with leading attribute | Lukas Wirth | 2021-05-28 | 2 | -4/+33 |
| | | |||||
* | | Only complete modules in empty use-statements | Lukas Wirth | 2021-05-28 | 3 | -14/+27 |
|/ | |||||
* | Complete modules in item lists | Lukas Wirth | 2021-05-27 | 3 | -4/+45 |
| | |||||
* | Complete modules in assoc item lists | Lukas Wirth | 2021-05-27 | 3 | -5/+13 |
| | |||||
* | Cleanup `ImmediateLocation` determination | Lukas Wirth | 2021-05-27 | 5 | -115/+132 |
| | |||||
* | Don't complete non-macro item paths in impls and modules | Lukas Wirth | 2021-05-27 | 6 | -29/+76 |
| | |||||
* | simplify | Lukas Wirth | 2021-05-27 | 7 | -36/+37 |
| | |||||
* | simplify | Lukas Wirth | 2021-05-27 | 2 | -18/+10 |
| | |||||
* | Collapse more CompletionContext booleans into enums | Lukas Wirth | 2021-05-27 | 6 | -98/+133 |
| | |||||
* | Set `record_pat_syntax` more precisely in CompletionContext | Lukas Wirth | 2021-05-26 | 3 | -41/+58 |
| | |||||
* | Merge #9015 | bors[bot] | 2021-05-26 | 4 | -80/+93 |
|\ | | | | | | | | | | | | | | | | | 9015: Merge pattern completion related bools into an enum r=Veykril a=Veykril The two bools can never both be set so this is basically just a tri-state enum. bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Merge pattern completion related bools into an enum | Lukas Wirth | 2021-05-26 | 4 | -80/+93 |
| | | |||||
* | | Merge #9012 | bors[bot] | 2021-05-26 | 1 | -21/+29 |
|\ \ | |/ |/| | | | | | | | | | | | 9012: feat: add tab stops for keyword completions r=matklad a=eduardocanellas Add tab stops for all the keywords that I judged fit. I also introduced some line breaks and spaces, following the pattern I saw in the `postfix` module. Co-authored-by: Eduardo Canellas <[email protected]> |