Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #7235 | bors[bot] | 2021-01-11 | 1 | -1/+25 |
|\ | | | | | | | | | | | | | | | | | 7235: Postfix completions like ifl now works with references r=Veykril a=Maan2003 Closes #7230 Co-authored-by: Manmeet <[email protected]> Co-authored-by: Manmeet Maan <[email protected]> | ||||
| * | Fix formatting | Manmeet Maan | 2021-01-11 | 1 | -1/+1 |
| | | |||||
| * | Apply Suggestions from code review | Manmeet Maan | 2021-01-11 | 1 | -9/+6 |
| | | |||||
| * | Postfix like ifl now works with references | Manmeet | 2021-01-10 | 1 | -2/+29 |
| | | |||||
* | | Replace SyntaxKind usage with T! macro where applicable | Lukas Wirth | 2021-01-10 | 3 | -12/+11 |
|/ | |||||
* | Avoid string copy in complete_attribute | Laurențiu Nicola | 2021-01-10 | 1 | -6/+8 |
| | |||||
* | Simplify mod completion | Lukas Wirth | 2021-01-07 | 1 | -38/+31 |
| | |||||
* | Tidy up attribute completion match | Lukas Wirth | 2021-01-07 | 1 | -19/+11 |
| | |||||
* | Change <|> to $0 - Rebase | Kevaundray Wedderburn | 2021-01-07 | 22 | -312/+304 |
| | |||||
* | Align config's API with usage | Aleksey Kladov | 2021-01-06 | 11 | -68/+49 |
| | | | | The config now is mostly immutable, optimize for that. | ||||
* | YAGNI active_resolve_capabilities | Aleksey Kladov | 2021-01-06 | 3 | -29/+3 |
| | | | | | | | | | This leaks a lot of LSP details into ide layer, which we want to avoid: https://github.com/rust-analyzer/rust-analyzer/tree/c9cec381bcfd97e5f3536e31a9c546ab5c0665e6/docs/dev#lsp-independence Additionally, all what this infra does is providing a toggle for auto-import completion, but we already have one! | ||||
* | Change the should_panic completion and his related attribute test | FlowerBOII | 2021-01-06 | 1 | -7/+3 |
| | |||||
* | Remove the args for the must_use attibute and change the related tests | FlowerBOII | 2021-01-06 | 1 | -3/+3 |
| | |||||
* | Update deprecated test | FlowerBOII | 2021-01-06 | 1 | -3/+3 |
| | |||||
* | Remove a part of the deprecated autocompletion | FlowerBOII | 2021-01-06 | 1 | -1/+1 |
| | |||||
* | Merge #7168 | bors[bot] | 2021-01-05 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | 7168: Rename expr -> tail_expr r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Rename expr -> tail_expr | Aleksey Kladov | 2021-01-05 | 1 | -1/+1 |
| | | |||||
* | | Small helpers | Kirill Bulatov | 2021-01-04 | 1 | -1/+1 |
| | | |||||
* | | Code review fixes | Kirill Bulatov | 2021-01-04 | 1 | -9/+2 |
| | | |||||
* | | Ignore associated items during unqialified path fuzzy completions | Kirill Bulatov | 2021-01-04 | 1 | -1/+9 |
|/ | |||||
* | Upgrade expect-test to 1.1 | Jesse Bakker | 2021-01-03 | 1 | -1/+1 |
| | |||||
* | Handle case where detail doesn't exist without giving up on completion | Nick Spain | 2021-01-02 | 1 | -1/+1 |
| | | | Co-authored-by: Aleksey Kladov <[email protected]> | ||||
* | Remove source_old from adding const and function impls | Nick Spain | 2021-01-02 | 1 | -23/+26 |
| | |||||
* | Make the result of Const, FunctionRender and TypeAliasRender constructors ↵ | Nick Spain | 2021-01-02 | 5 | -20/+17 |
| | | | | | | optional They use source() which now returns an Option so they need to too. | ||||
* | HasSource::source_old -> HasSource::source for places where proc-macros were ↵ | Nick Spain | 2021-01-02 | 1 | -12/+4 |
| | | | | | | | | | | | | special cased In #6901 some special case handling for proc-macros was introduced to prevent panicing as they have no AST. Now the new HasSource::source method is used that returns an option. Generally this was a pretty trivial change, the only thing of much interest is that `hir::MacroDef` now implements `TryToNav` not `ToNav` as this allows us to handle `HasSource::source` now returning an option. | ||||
* | Mark HasSource::source_old as deprecated but allow at all call sites | Nick Spain | 2021-01-02 | 5 | -0/+6 |
| | |||||
* | HasSource::source -> HasSource::source_old | Nick Spain | 2021-01-02 | 5 | -6/+6 |
| | | | | To start migrating HasSource::source to return an Option. | ||||
* | Merge #7102 | bors[bot] | 2021-01-01 | 1 | -2/+66 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 7102: Fix completion of Default struct update syntax r=Veykril a=nick96 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. I think there's probably a better way to implement this context aware completion because I've seen it in other parts of rust-analyzer as a user but I'm not sure how to do it. Fixes #6969 Co-authored-by: Nick Spain <[email protected]> | ||||
| * | Strip completion prefix of what has already been typed | Nick Spain | 2021-01-01 | 1 | -5/+4 |
| | | | | | | | | | | Per Veykril's suggestion, this removes the need to repeat the completion text twice. It also handles the completion in a more general case. | ||||
| * | 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 |
| | |