Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Add a test for correct completion of ..Default::default() | Nick Spain | 2021-01-01 | 1 | -1/+61 | |
| | | ||||||
| * | Fix completion of Default struct update syntax | Nick Spain | 2020-12-31 | 1 | -1/+6 | |
| | | | | | | | | | | | | | | | | Previously the inserted text was always `..Default::default()` which ends up as `...Default::default()` if `.` was typed. Now checks if the current token is `.` and inserts `.Default::default()` if it is, so `..Default::default()` is correctly completed. Fixes #6969 | |||||
* | | Remove some unneeded string allocations | Lukas Wirth | 2020-12-31 | 1 | -1/+1 | |
|/ | ||||||
* | Update crates | kjeremy | 2020-12-30 | 1 | -1/+1 | |
| | ||||||
* | Avoid a couple of allocations | Laurențiu Nicola | 2020-12-29 | 2 | -3/+3 | |
| | ||||||
* | Merge #7064 | bors[bot] | 2020-12-29 | 1 | -3/+8 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7064: Ignore qualifiers when doing autoimport completions lookup r=lnicola a=SomeoneToIgnore A follow-up of https://github.com/rust-analyzer/rust-analyzer/pull/6918#issuecomment-748511151 and the PR itself. Tweaks the `import_map` query api to be more flexible with the ways to match against the import path and now fuzzy imports search in names only. This had improved the completion speed for me locally in ~5 times for `fuzzy_completion` span time, but please recheck me here. IMO we're fast and presice enough now, so I've added the modules back to the fuzzy search output. Also tweaks the the expect tests to display functions explicitly, to avoid confusing "duplicate" results. Co-authored-by: Kirill Bulatov <[email protected]> | |||||
| * | Tweak the fuzzy search limits | Kirill Bulatov | 2020-12-28 | 1 | -1/+6 | |
| | | ||||||
| * | Add docs and optimisations | Kirill Bulatov | 2020-12-28 | 1 | -2/+2 | |
| | | ||||||
| * | Better query api and fuzzy search | Kirill Bulatov | 2020-12-28 | 1 | -1/+1 | |
| | | ||||||
| * | Draft the module exclusion in modules | Kirill Bulatov | 2020-12-28 | 1 | -1/+1 | |
| | | ||||||
* | | Merge #7076 | bors[bot] | 2020-12-29 | 1 | -1/+10 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 7076: Properly parse path separators in format-like postfix r=Veykril a=Veykril Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Properly parse path separators in format-like postfix | Lukas Wirth | 2020-12-29 | 1 | -1/+10 | |
| |/ | ||||||
* / | format-postfix completion takes format instead of fmt | Lukas Wirth | 2020-12-29 | 2 | -2/+2 | |
|/ | ||||||
* | Merge #6960 | bors[bot] | 2020-12-23 | 2 | -1/+55 | |
|\ | | | | | | | | | | | | | | | | | 6960: Show enum variant on Self qualified paths r=matklad a=Veykril Fixes first part of #6549 Fixes #6550 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Show enum variant completions for ref scrutinee | Lukas Wirth | 2020-12-20 | 1 | -1/+26 | |
| | | ||||||
| * | Show enum variant on Self qualified paths | Lukas Wirth | 2020-12-20 | 1 | -0/+29 | |
| | | ||||||
* | | Reduce some more code duplication | Lukas Wirth | 2020-12-22 | 5 | -94/+76 | |
| | | ||||||
* | | Insert snippet positions after fields names in record patterns | Lukas Wirth | 2020-12-21 | 2 | -6/+6 | |
| | | ||||||
* | | Create non-exhaustive patterns for non_exhaustive attributed items | Lukas Wirth | 2020-12-20 | 1 | -3/+5 | |
| | | ||||||
* | | Reduce code duplication in pattern completion | Lukas Wirth | 2020-12-20 | 1 | -34/+29 | |
| | | ||||||
* | | Emit snippets for struct pattern completion if enabled | Lukas Wirth | 2020-12-20 | 2 | -15/+36 | |
| | | ||||||
* | | Add completions for patterns | Lukas Wirth | 2020-12-20 | 5 | -26/+311 | |
|/ | ||||||
* | Align code_model name with ungrammar | Aleksey Kladov | 2020-12-20 | 4 | -28/+19 | |
| | ||||||
* | Fewer allocations | Kirill Bulatov | 2020-12-19 | 1 | -5/+7 | |
| | ||||||
* | Tidy up | Kirill Bulatov | 2020-12-19 | 2 | -32/+26 | |
| | ||||||
* | Keep the original completion order in tests | Kirill Bulatov | 2020-12-19 | 12 | -194/+193 | |
| | ||||||
* | Add a slightly better fuzzy search heuristics | Kirill Bulatov | 2020-12-19 | 1 | -10/+62 | |
| | ||||||
* | Merge #6901 | bors[bot] | 2020-12-18 | 1 | -0/+1 | |
|\ | | | | | | | | | | | | | | | | | | | 6901: Temp fixes panic caused by no ast for proc-macro r=maklad a=edwin0cheng There are some panic when hover/goto definition for proc-macro. It is because in current design, we don't have `ast-node` for proc-macro and then it trigger [this](https://github.com/rust-analyzer/rust-analyzer/blob/479d1f7eec22c3564867223e2093f14774092528/crates/hir/src/has_source.rs#L116) line to panic. This PR is a temp fix for all of these similar to https://github.com/rust-analyzer/rust-analyzer/blob/bd4c352831662762ee7a66da77ec9adf623b0a0a/crates/completion/src/render/macro_.rs#L42 Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | Temp fixes panic caused by no ast for proc-macro | Edwin Cheng | 2020-12-18 | 1 | -0/+1 | |
| | | ||||||
* | | Show first fuzzy completions fully containing the input | Kirill Bulatov | 2020-12-17 | 1 | -5/+14 | |
|/ | ||||||
* | Move to upstream `macro_rules!` model | Jonas Schievink | 2020-12-15 | 1 | -3/+3 | |
| | ||||||
* | Remove some redundant allocations | Jeremy Kolb | 2020-12-12 | 2 | -2/+2 | |
| | ||||||
* | Use natural trait ordering in derive completion | Aleksey Kladov | 2020-12-11 | 1 | -17/+18 | |
| | | | | | | | | derive(Clone, Copy) reads better than derive(Copy, Clone). However, we preserve the reverse ordering in the lookup text for sorting purposes. That way, it's convenient to type just `Ord` to derive everything. | |||||
* | Remove debug print | Aleksey Kladov | 2020-12-10 | 1 | -7/+5 | |
| | ||||||
* | Minor, more orthogonal code | Aleksey Kladov | 2020-12-10 | 4 | -16/+12 | |
| | | | | It's better to accept things as arguments rather than store them. | |||||
* | Normalize spelling to American English | Aleksey Kladov | 2020-12-10 | 4 | -12/+12 | |
| | ||||||
* | Tweak the search query params for better lookup speed | Kirill Bulatov | 2020-12-08 | 1 | -31/+29 | |
| | ||||||
* | Better config name | Kirill Bulatov | 2020-12-08 | 3 | -10/+9 | |
| | ||||||
* | Disable the completion for no corresponding client resolve capabilities | Kirill Bulatov | 2020-12-07 | 9 | -145/+79 | |
| | ||||||
* | Document the feature | Kirill Bulatov | 2020-12-07 | 1 | -0/+43 | |
| | ||||||
* | Simplify | Kirill Bulatov | 2020-12-07 | 1 | -2/+4 | |
| | ||||||
* | Less panic, more tests | Kirill Bulatov | 2020-12-07 | 2 | -9/+60 | |
| | ||||||
* | Fix the profiling label | Kirill Bulatov | 2020-12-07 | 1 | -1/+1 | |
| | ||||||
* | Use stateless completion resolve | Kirill Bulatov | 2020-12-07 | 4 | -15/+40 | |
| | ||||||
* | Remove the state | Kirill Bulatov | 2020-12-07 | 2 | -31/+4 | |
| | ||||||
* | Make completion resolve async | Kirill Bulatov | 2020-12-07 | 2 | -3/+31 | |
| | ||||||
* | Simplify import edit calculation | Kirill Bulatov | 2020-12-07 | 7 | -50/+65 | |
| | ||||||
* | Remove redundant code | Kirill Bulatov | 2020-12-07 | 5 | -27/+15 | |
| | ||||||
* | Refactor the code | Kirill Bulatov | 2020-12-07 | 7 | -9/+29 | |
| | ||||||
* | Add eager resolve capability | Kirill Bulatov | 2020-12-07 | 7 | -11/+41 | |
| |