Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | | | | Update tests to reflect new completions | nathanwhit | 2020-04-22 | 1 | -1/+1 | |
| | | | | | | ||||||
| * | | | | | Add tests for enum completion | nathanwhit | 2020-04-22 | 1 | -0/+178 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Adds tests for completion of enum variants in match arms, if-let statements, and basic expressions. | |||||
| * | | | | | Complete unqualified enum variants when possible | nathanwhit | 2020-04-22 | 1 | -5/+26 | |
| | | | | | | ||||||
| * | | | | | Add utility fn for expected type of a node | nathanwhit | 2020-04-22 | 1 | -1/+12 | |
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | Adds `expected_type_of` to `CompletionContext` to return the expected type of a node, if it is known. | |||||
* / | | | | Ignore proc-macro in completion | Edwin Cheng | 2020-04-18 | 1 | -0/+6 | |
|/ / / / | ||||||
* | | | | Don\t suggest import itself as a completion for import | Aleksey Kladov | 2020-04-17 | 1 | -1/+39 | |
| | | | | ||||||
* | | | | Better snippet when completing trait method | Aleksey Kladov | 2020-04-17 | 1 | -9/+10 | |
| |_|/ |/| | | ||||||
* | | | Align grammar for record patterns and literals | Aleksey Kladov | 2020-04-11 | 4 | -5/+22 | |
| |/ |/| | | | | | | | | | The grammar now looks like this [name_ref :] pat | |||||
* | | Make records grammar more orthogonal | Aleksey Kladov | 2020-04-11 | 2 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler | |||||
* | | Rename some tokens | Aleksey Kladov | 2020-04-10 | 1 | -2/+2 | |
| | | ||||||
* | | Simpler acessors for keywords | Aleksey Kladov | 2020-04-09 | 1 | -2/+2 | |
| | | ||||||
* | | Drop needless trait | Aleksey Kladov | 2020-04-09 | 1 | -14/+16 | |
| | | ||||||
* | | Be consistent about token accesors | Aleksey Kladov | 2020-04-09 | 1 | -1/+4 | |
|/ | ||||||
* | Move computation of missing fields into hir | Aleksey Kladov | 2020-04-07 | 1 | -50/+9 | |
| | ||||||
* | Add functional update test | Aleksey Kladov | 2020-04-07 | 1 | -0/+33 | |
| | ||||||
* | Fix names of test modules | Aleksey Kladov | 2020-04-07 | 1 | -2/+2 | |
| | ||||||
* | A more precise panic macro | Aleksey Kladov | 2020-04-07 | 1 | -1/+1 | |
| | ||||||
* | Don't insert !() if there's already some | Aleksey Kladov | 2020-04-07 | 2 | -3/+44 | |
| | ||||||
* | Reorder imports | Aleksey Kladov | 2020-04-07 | 1 | -3/+6 | |
| | ||||||
* | Better naming for scope completion | Aleksey Kladov | 2020-04-07 | 2 | -2/+2 | |
| | ||||||
* | Better naming for path completion | Aleksey Kladov | 2020-04-07 | 2 | -0/+0 | |
| | ||||||
* | Fix unnecessary braces warnings | Laurențiu Nicola | 2020-04-06 | 2 | -5/+5 | |
| | ||||||
* | Add parens for enums | Aleksey Kladov | 2020-04-03 | 4 | -46/+175 | |
| | ||||||
* | Generalize call parenthesis insertion | Aleksey Kladov | 2020-04-03 | 1 | -27/+46 | |
| | ||||||
* | Remove the second code-path for completing names in patterns | Aleksey Kladov | 2020-04-03 | 3 | -70/+28 | |
| | ||||||
* | Unite record completion logic into a single module | Kirill Bulatov | 2020-04-01 | 3 | -386/+411 | |
| | ||||||
* | Split draft | Kirill Bulatov | 2020-04-01 | 2 | -59/+25 | |
| | ||||||
* | Complete only missing fields in pats | Kirill Bulatov | 2020-04-01 | 1 | -1/+62 | |
| | ||||||
* | Better names for config structs | Aleksey Kladov | 2020-03-31 | 4 | -14/+14 | |
| | ||||||
* | Start stdx | Aleksey Kladov | 2020-03-28 | 1 | -24/+21 | |
| | | | | This crate will hold everything to small to be worth publishing | |||||
* | Align naming | Aleksey Kladov | 2020-03-24 | 1 | -1/+1 | |
| | ||||||
* | Merge #3694 | bors[bot] | 2020-03-24 | 1 | -1/+61 | |
|\ | | | | | | | | | | | | | | | 3694: Complete only missing fields r=matklad a=SomeoneToIgnore Co-authored-by: Kirill Bulatov <[email protected]> | |||||
| * | Code review fixes | Kirill Bulatov | 2020-03-24 | 1 | -3/+4 | |
| | | | | | | | | Co-Authored-By: Aleksey Kladov <[email protected]> | |||||
| * | Complete only missing fields | Kirill Bulatov | 2020-03-23 | 1 | -1/+60 | |
| | | ||||||
* | | Consider references when applying postfix completions | Kirill Bulatov | 2020-03-23 | 1 | -17/+123 | |
|/ | ||||||
* | Remove const | Steffen Lyngbaek | 2020-03-19 | 3 | -6/+48 | |
| | | | | | - Add test for @ matching - Address comments | |||||
* | Fixes to more accurately give complete_scope completions | Steffen Lyngbaek | 2020-03-19 | 3 | -15/+38 | |
| | | | | | | | - Exclude const, static, functions form is_pat_binding_and_path (there might be more?) - Add a check to filter out Record Fields - Fix tests | |||||
* | - Exclude Local Scope for BindPats | Steffen Lyngbaek | 2020-03-19 | 2 | -58/+16 | |
| | | | | | - Exclude BindPats with @ or ref - Remove outdated test and add one testing for ref | |||||
* | Completition for type name? #3418 | Steffen Lyngbaek | 2020-03-19 | 2 | -3/+120 | |
| | | | | | | | | Iterate through TupleStructPat's until a MatchArm if one exists. Store in a new is_pat_bind_and_path bool and allow the `complete_scope` to find matches. Added some tests to ensure it works in simple and nested cases. | |||||
* | Add test, remove printlns | Florian Diebold | 2020-03-16 | 1 | -0/+53 | |
| | ||||||
* | Get tests working | Florian Diebold | 2020-03-16 | 2 | -2/+13 | |
| | ||||||
* | wip | Florian Diebold | 2020-03-16 | 2 | -4/+13 | |
| | ||||||
* | Attempt to implement ranking of rules when none matches perfectly (wip) | Florian Diebold | 2020-03-16 | 1 | -1/+38 | |
| | ||||||
* | Make MBE expansion more resilient (WIP) | Florian Diebold | 2020-03-16 | 1 | -0/+37 | |
| | ||||||
* | Fix completion of trait items | Florian Diebold | 2020-03-14 | 1 | -0/+32 | |
| | | | | Trait items should be public by default. | |||||
* | Don't use generic DB where a concrete one will do | Aleksey Kladov | 2020-03-13 | 1 | -3/+6 | |
| | ||||||
* | Fix completion of HashMap::new | Florian Diebold | 2020-03-13 | 2 | -2/+36 | |
| | | | | | | | | | | | | | | | The `ty` function in code_model returned the type with placeholders for type parameters. That's nice for printing, but not good for completion, because placeholders won't unify with anything else: So the type we got for `HashMap` was `HashMap<K, V, T>`, which doesn't unify with `HashMap<?, ?, RandomState>`, so the `new` method wasn't shown. Now we instead return `HashMap<{unknown}, {unknown}, {unknown}>`, which does unify with the impl type. Maybe we should just expose this properly as variables though, i.e. we'd return something like `exists<type, type, type> HashMap<?0, ?1, ?2>` (in Chalk notation). It'll make the API more complicated, but harder to misuse. (And it would handle cases like `type TypeAlias<T> = HashMap<T, T>` more correctly.) | |||||
* | Restore cargo-fmt gating | Aleksey Kladov | 2020-03-13 | 1 | -1/+0 | |
| | ||||||
* | Merge #3553 | bors[bot] | 2020-03-13 | 1 | -0/+39 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 3553: Completions do not show for function with same name as mod r=matklad a=JoshMcguigan fixes #3444 I've added a test case in `crates/ra_ide/src/completion/complete_path.rs` which verifies the described behavior in #3444. Digging in, I found that [the module scope iterator](https://github.com/JoshMcguigan/rust-analyzer/blob/ba62d8bd1ce8a68b8d21aaf89ae1ea6787f18366/crates/ra_ide/src/completion/complete_path.rs#L22) only provides the module `z`, and does not provide the function `z` (although if I name the function something else then it does show up here). I thought perhaps the name wasn't being properly resolved, but I added a test in `crates/ra_hir_def/src/nameres/tests.rs` which seems to suggest that it is? I've tried to figure out how to bridge the gap between these two tests (one passing, one failing) to see where the function `z` is being dropped, but to this point I haven't been able to track it down. Any pointers on where I might look for this? Co-authored-by: Josh Mcguigan <[email protected]> | |||||
| * | fix issue 3444 | Josh Mcguigan | 2020-03-13 | 1 | -0/+39 | |
| | |