Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add some lint completion tests | Lukas Wirth | 2021-05-29 | 3 | -30/+67 |
| | |||||
* | Merge #9027 | bors[bot] | 2021-05-29 | 3 | -359/+851 |
|\ | | | | | | | | | | | | | | | | | | | | | 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 | 1 | -28/+141 |
| | | |||||
* | | More completion pattern tests | Lukas Wirth | 2021-05-28 | 1 | -2/+0 |
| | | |||||
* | | Implement prev sibling determination for `CompletionContext` | Lukas Wirth | 2021-05-28 | 1 | -1/+1 |
| | | |||||
* | | simplify | Lukas Wirth | 2021-05-28 | 1 | -97/+95 |
| | | |||||
* | | Complete keywords in (Assoc)ItemList with leading attribute | Lukas Wirth | 2021-05-28 | 1 | -0/+15 |
| | | |||||
* | | Only complete modules in empty use-statements | Lukas Wirth | 2021-05-28 | 1 | -14/+16 |
|/ | |||||
* | Complete modules in item lists | Lukas Wirth | 2021-05-27 | 3 | -4/+45 |
| | |||||
* | Complete modules in assoc item lists | Lukas Wirth | 2021-05-27 | 2 | -4/+13 |
| | |||||
* | Cleanup `ImmediateLocation` determination | Lukas Wirth | 2021-05-27 | 2 | -3/+21 |
| | |||||
* | Don't complete non-macro item paths in impls and modules | Lukas Wirth | 2021-05-27 | 4 | -16/+56 |
| | |||||
* | simplify | Lukas Wirth | 2021-05-27 | 6 | -33/+27 |
| | |||||
* | Collapse more CompletionContext booleans into enums | Lukas Wirth | 2021-05-27 | 4 | -26/+21 |
| | |||||
* | Set `record_pat_syntax` more precisely in CompletionContext | Lukas Wirth | 2021-05-26 | 1 | -8/+32 |
| | |||||
* | Merge #9015 | bors[bot] | 2021-05-26 | 2 | -8/+9 |
|\ | | | | | | | | | | | | | | | | | 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 | 2 | -8/+9 |
| | | |||||
* | | 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]> | ||||
| * | feat: add tab stops for keyword completions | Eduardo Canellas | 2021-05-26 | 1 | -21/+29 |
| | | |||||
* | | simplify | Lukas Wirth | 2021-05-26 | 1 | -3/+3 |
|/ | |||||
* | fix: remove undesired completions from trait/impl blocks | Eduardo Canellas | 2021-05-26 | 1 | -0/+2 |
| | |||||
* | fix: don't show pd/ppd completions where it shouldn't be | Eduardo Canellas | 2021-05-25 | 2 | -11/+5 |
| | |||||
* | Paper over #8931 a bit more | Florian Diebold | 2021-05-23 | 1 | -0/+1 |
| | | | | | | | | | The problem was the skipping of binders in `resolve_method_call_as_callable`; this still doesn't use the _correct_ substitution, but at least it doesn't return a type with free variables in it. Fixes #8931. | ||||
* | Add test for #8931 and better checking | Florian Diebold | 2021-05-23 | 1 | -0/+29 |
| | |||||
* | simplify | Lukas Wirth | 2021-05-15 | 1 | -12/+10 |
| | |||||
* | Simplify | Edwin Cheng | 2021-05-06 | 1 | -6/+2 |
| | |||||
* | Fix: Do not overwrite comments and attrs in trait impl completion | Jesse Bakker | 2021-05-06 | 1 | -8/+65 |
| | |||||
* | simplify | Lukas Tobias Wirth | 2021-05-05 | 3 | -8/+9 |
| | |||||
* | Add some cov marks for qualified_path completion | Lukas Tobias Wirth | 2021-05-04 | 1 | -5/+8 |
| | |||||
* | Complete enum variants through type aliases | Lukas Tobias Wirth | 2021-05-04 | 1 | -7/+33 |
| | |||||
* | Make CompletionContext expected_type smarter | Lukas Tobias Wirth | 2021-05-03 | 1 | -22/+0 |
| | |||||
* | Fix feature description inconsistency | Brandon | 2021-05-01 | 1 | -1/+1 |
| | |||||
* | Add cov_marks to insert_use tests | Lukas Wirth | 2021-04-20 | 1 | -1/+1 |
| | |||||
* | Exclude inherent traits from flyimports | Kirill Bulatov | 2021-04-16 | 1 | -0/+23 |
| | |||||
* | Do not show flyimports in trait or impl declarations | Kirill Bulatov | 2021-04-15 | 1 | -0/+50 |
| | |||||
* | Fix typo | memoryruins | 2021-04-07 | 1 | -2/+2 |
| | |||||
* | Do not import on the fly during fields of record literal syntax | memoryruins | 2021-04-06 | 1 | -0/+43 |
| | |||||
* | Resolve associated types | Lukas Wirth | 2021-04-01 | 1 | -1/+1 |
| | |||||
* | Merge #8267 | bors[bot] | 2021-03-31 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8267: Adding gifs and screenshots for features in manual r=matklad a=MozarellaMan For #6539 This includes most of gif or screenshot examples of most items in the "Features" header. With the exceptions of: - **On Typing Assists** - couldn't get it to work for a demo, I'm probably missing something? - **Structural search and replace** - looked to be already a visual example of the feature - **Workspace symbol** - wasn't sure how best to show this, all of the examples maybe? Also wasn't sure of the best code example to show it off - **Semantic Syntax Highlighting** - seemed obvious enough to not need a screenshot, but I could easily add this All the gifs/pngs are hosted in this [comment](https://github.com/rust-analyzer/rust-analyzer/issues/6539#issuecomment-809574840). Please let me know if any of them aren't suitable (and why) and I'll improve it! Or if you don't like the theme/font Co-authored-by: Ayomide Bamidele <[email protected]> | ||||
| * | Gifs and screenshots for features in manual | Ayomide Bamidele | 2021-03-31 | 1 | -0/+2 |
| | | |||||
* | | Rename target_ty to self_ty | Lukas Wirth | 2021-03-29 | 2 | -2/+2 |
|/ | |||||
* | Merge hir::MacroDef::is_* into hir::MacroDef::kind | Lukas Wirth | 2021-03-23 | 1 | -1/+2 |
| | |||||
* | implement a temporary workaround for #8058 | Josh Mcguigan | 2021-03-22 | 1 | -1/+1 |
| | |||||
* | Merge #8132 | bors[bot] | 2021-03-21 | 1 | -0/+31 |
|\ | | | | | | | | | | | | | | | 8132: Add `'` to trigger_characters, allowing more direct lifetime completions r=Veykril a=Veykril Fixes having to type a character after `'` to complete lifetimes and labels Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Add `'` to trigger_characters, allowing more direct lifetime completions | Lukas Wirth | 2021-03-21 | 1 | -0/+31 |
| | |