Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Infer correct expected type in closure | Florian Diebold | 2021-05-23 | 1 | -1/+8 | |
| | | | | Sadly currently only works if the closure body isn't completely missing. | |||||
* | Infer correct expected type for generic struct fields | Florian Diebold | 2021-05-23 | 2 | -16/+23 | |
| | ||||||
* | Record method call substs and use them in call info | Florian Diebold | 2021-05-23 | 1 | -0/+60 | |
| | ||||||
* | 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 | |
| | ||||||
* | Fix compilation of hir and ide crates | Florian Diebold | 2021-05-21 | 1 | -1/+1 | |
| | ||||||
* | Replace ImportGranularity::Guess with guessing boolean flag | Lukas Tobias Wirth | 2021-05-19 | 1 | -0/+1 | |
| | ||||||
* | MergeBehavior -> ImportGranularity | Lukas Tobias Wirth | 2021-05-18 | 1 | -2/+5 | |
| | ||||||
* | simplify | Lukas Wirth | 2021-05-15 | 1 | -12/+10 | |
| | ||||||
* | Merge #8794 | bors[bot] | 2021-05-10 | 1 | -1/+1 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8794: Give MergeBehaviour variants better names r=Veykril a=Veykril I never really liked the variant names I gave this enum from the beginning and then I found out about rustfmt's `imports_granularity` config: > imports_granularity > > How imports should be grouped into use statements. Imports will be merged or split to the configured level of granularity. > > Default value: Preserve > Possible values: Preserve, Crate, Module, Item > Stable: No I personally prefer using `crate` over `full` and `module` over last, they seem more descriptive. Keeping these similar between tooling also seems like a good plus point to me. We might even wanna take over the entire enum at some point if we have a `format/cleanup imports` assists in the future which would probably want to also have the `preserve` and `item` options. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | Give MergeBehaviour variants better names | Lukas Wirth | 2021-05-10 | 1 | -1/+1 | |
| | | ||||||
* | | Corrected 2 typos on line 83 | mixio | 2021-05-10 | 1 | -1/+1 | |
|/ | ||||||
* | Add `=` to pattern recovery | Lukas Wirth | 2021-05-08 | 1 | -1/+22 | |
| | ||||||
* | Small macro fix | Kirill Bulatov | 2021-05-06 | 1 | -1/+1 | |
| | ||||||
* | internal: use API stabilized in 1.52 | Aleksey Kladov | 2021-05-06 | 1 | -1/+1 | |
| | ||||||
* | 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 | 4 | -38/+35 | |
| | ||||||
* | 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 | 2 | -117/+113 | |
| | ||||||
* | Fix feature description inconsistency | Brandon | 2021-05-01 | 1 | -1/+1 | |
| | ||||||
* | internal: normalize name | Aleksey Kladov | 2021-04-30 | 2 | -3/+3 | |
| | | | | All def types in hir are unsubstituted | |||||
* | Split out merge_imports module from helpers::insert_use | Lukas Wirth | 2021-04-24 | 1 | -4/+1 | |
| | ||||||
* | Add cov_marks to insert_use tests | Lukas Wirth | 2021-04-20 | 2 | -2/+2 | |
| | ||||||
* | Remove SyntaxRewriter usage in insert_use in favor of ted | Lukas Wirth | 2021-04-20 | 1 | -4/+4 | |
| | ||||||
* | 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 | |
| | ||||||
* | Use CompletionTextEdit::InsertAndReplace if supported by the client | Lukas Wirth | 2021-04-08 | 1 | -1/+1 | |
| | ||||||
* | 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 | |
| | ||||||
* | internal: document hypothetical completion problem | Aleksey Kladov | 2021-04-05 | 1 | -0/+28 | |
| | ||||||
* | Resolve associated types | Lukas Wirth | 2021-04-01 | 1 | -1/+1 | |
| | ||||||
* | Merge #8267 | bors[bot] | 2021-03-31 | 2 | -0/+4 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 2 | -0/+4 | |
| | | ||||||
* | | Rename target_ty to self_ty | Lukas Wirth | 2021-03-29 | 3 | -3/+3 | |
|/ | ||||||
* | completion relevance distinguish between exact type match and could unify | Josh Mcguigan | 2021-03-26 | 4 | -43/+80 | |
| | ||||||
* | completion relevance consider if types can be unified | Josh Mcguigan | 2021-03-26 | 1 | -1/+32 | |
| | ||||||
* | Merge hir::MacroDef::is_* into hir::MacroDef::kind | Lukas Wirth | 2021-03-23 | 1 | -1/+2 | |
| | ||||||
* | add unit test to demonstrate struct fields/methods do not get ref match ↵ | Josh Mcguigan | 2021-03-23 | 1 | -0/+38 | |
| | | | | completions | |||||
* | implement a temporary workaround for #8058 | Josh Mcguigan | 2021-03-22 | 4 | -7/+37 | |
| | ||||||
* | Merge #8132 | bors[bot] | 2021-03-21 | 2 | -1/+36 | |
|\ | | | | | | | | | | | | | | | 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 | 2 | -1/+36 | |
| | | ||||||
* | | clippy::complexity simplifications related to Iterators | Matthias Krüger | 2021-03-21 | 1 | -1/+1 | |
| | | ||||||
* | | Less reallocations | Kirill Bulatov | 2021-03-21 | 1 | -1/+0 | |
| | | ||||||
* | | Use smart case in flyimport items lookup | Kirill Bulatov | 2021-03-21 | 1 | -3/+58 | |
| | | ||||||
* | | Merge #8123 | bors[bot] | 2021-03-21 | 2 | -10/+50 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | 8123: Do not display unqualified assoc item completions r=SomeoneToIgnore a=SomeoneToIgnore Part of https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/autoimport.20weirdness Removes all flyimport completions for any unqualified associated type, effectively reverting https://github.com/rust-analyzer/rust-analyzer/pull/8095 I've explained the reasoning in the corresponding FIXME and open to discussions. As an alternative way, we could add yet another parameter in the method that's used by the `qualify_path` and enable it for the qualify assists only. Co-authored-by: Kirill Bulatov <[email protected]> | |||||
| * | Disable unqualified assoc items completion for now | Kirill Bulatov | 2021-03-20 | 1 | -1/+1 | |
| | | ||||||
| * | Docs | Kirill Bulatov | 2021-03-20 | 1 | -2/+2 | |
| | | ||||||
| * | Do not query item search by name eagerly | Kirill Bulatov | 2021-03-20 | 1 | -10/+18 | |
| | |