Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Small fixes | Kirill Bulatov | 2021-05-03 | 2 | -3/+3 |
| | |||||
* | Tests added | Kirill Bulatov | 2021-05-03 | 2 | -2/+242 |
| | |||||
* | Less panics in the assist resolution | Kirill Bulatov | 2021-05-03 | 1 | -2/+10 |
| | |||||
* | Add docs and use better naming | Kirill Bulatov | 2021-05-03 | 3 | -8/+25 |
| | |||||
* | Resolve single assist only | Kirill Bulatov | 2021-05-03 | 9 | -32/+78 |
| | |||||
* | Add a way to resolve certain assists | Kirill Bulatov | 2021-05-03 | 10 | -92/+178 |
| | |||||
* | fix: don't duplicate Progerss::Finised for cache priming | Aleksey Kladov | 2021-05-02 | 2 | -20/+11 |
| | |||||
* | Merge #8693 | bors[bot] | 2021-05-02 | 2 | -0/+18 |
|\ | | | | | | | | | | | | | | | 8693: Ensure that only one cache priming task can run at a time r=matklad a=Bobo1239 Fixes #8632. Co-authored-by: Boris-Chengbiao Zhou <[email protected]> | ||||
| * | Ensure that only one cache priming task can run at a time | Boris-Chengbiao Zhou | 2021-04-30 | 2 | -0/+18 |
| | | | | | | | | Fixes #8632. | ||||
* | | Fix feature description inconsistency | Brandon | 2021-05-01 | 1 | -1/+1 |
| | | |||||
* | | find_path: check only crate-level prelude | Jonas Schievink | 2021-04-30 | 1 | -2/+28 |
| | | |||||
* | | Merge #8692 | bors[bot] | 2021-04-30 | 4 | -25/+100 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8692: Fix panic caused by new Try trait definition r=flodiebold a=flodiebold The new Try trait definition caused a query cycle for us. This adds recovery for that cycle, but also fixes the cause, which is that we went through the supertraits when resolving `<T as Trait>::Assoc`, which isn't actually necessary. I also rewrote `all_super_trait_refs` to an iterator before I realized what the actual problem was, so I kept that. Fixes #8686. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | | Don't look in super traits for <T as Trait>::Assoc | Florian Diebold | 2021-04-29 | 2 | -7/+14 |
| | | | | | | | | | | | | | | | | | | | | | This isn't actually how it works, you have to specify the exact trait that has the associated type. Fixes #8686. | ||||
| * | | Rewrite all_super_trait_refs as an iterator | Florian Diebold | 2021-04-29 | 1 | -18/+34 |
| | | | | | | | | | | | | | | | Doesn't fix the bug I was trying to fix, but now that I did it anyway it seems fine to keep. | ||||
| * | | Handle cycles in generic_defaults more gracefully | Florian Diebold | 2021-04-29 | 2 | -0/+22 |
| | | | |||||
| * | | Add test for #8686 | Florian Diebold | 2021-04-29 | 1 | -0/+30 |
| |/ | |||||
* | | Merge #8695 | bors[bot] | 2021-04-30 | 8 | -12/+12 |
|\ \ | |/ |/| | | | | | | | | | | | | | 8695: internal: fix naming polarity r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | internal: fix naming polarity | Aleksey Kladov | 2021-04-30 | 4 | -6/+6 |
| | | | | | | | | | | Type Constructors have *parameters*, when they are substituted with type *arguments*, we have a type. | ||||
| * | internal: normalize name | Aleksey Kladov | 2021-04-30 | 5 | -6/+6 |
| | | | | | | | | All def types in hir are unsubstituted | ||||
* | | fix: closure unify without check ClosureId | Comonad | 2021-04-29 | 2 | -0/+40 |
| | | | | | | | | closes #8604 | ||||
* | | Parse const param defaults | Jonas Schievink | 2021-04-29 | 4 | -0/+141 |
| | | |||||
* | | Correctly parse negated literals as const args | Jonas Schievink | 2021-04-29 | 3 | -0/+40 |
|/ | |||||
* | internal: ensure that client and server-side configs are not mixed up | Aleksey Kladov | 2021-04-28 | 1 | -2/+5 |
| | | | | https://github.com/rust-lang/rust/issues/84647 would help big time here. | ||||
* | Merge #8679 | bors[bot] | 2021-04-27 | 1 | -0/+6 |
|\ | | | | | | | | | | | | | | | | | 8679: fix: don't show error message for a valid notification r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | fix: don't show error message for a valid notification | Aleksey Kladov | 2021-04-27 | 1 | -0/+6 |
| | | | | | | | | Closes #6782, #6772 | ||||
* | | Return ServerNotInitialized according to the spec | Jeremy Kolb | 2021-04-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | According to the spec we should return ServerNotInitialized if the server is waiting for an initialize request and something else comes in. Upgrading to lsp-server 0.5.1 will do this and retry until the initialize request comes in. Fixes #8581 | ||||
* | | Add config options | Jorge Mederos Alvarado | 2021-04-27 | 1 | -0/+2 |
| | | |||||
* | | minor: simplify | Aleksey Kladov | 2021-04-26 | 1 | -12/+3 |
| | | |||||
* | | fix: make error message in the status bar more useful | Aleksey Kladov | 2021-04-26 | 1 | -1/+1 |
|/ | | | | | | | At the moment,the popup is just a bazillion of Cargo's "Compiling this\nCompiling that", which is not that useful. --quiet still displays error, which is what we needc | ||||
* | Use -u instead of --utc date flag | Kirill Bulatov | 2021-04-26 | 1 | -1/+1 |
| | |||||
* | fix: add date to the version string on Mac | Aleksey Kladov | 2021-04-26 | 1 | -1/+1 |
| | | | | It doesn't support `--iso` | ||||
* | Fixed formatting | Bastian Kersting | 2021-04-26 | 1 | -1/+1 |
| | |||||
* | Added mutable semantic token modifier for &mut self methods | Bastian Kersting | 2021-04-26 | 2 | -4/+9 |
| | |||||
* | Check more carefully for cases where a rename can't be done | Danny Zhu | 2021-04-25 | 2 | -6/+105 |
| | | | | | | | | | | | Attempting to rename an element of a tuple field would previously replace the type with the new name, which doesn't make sense; now it fails instead. The check is done in both `prepare_rename` and `rename` so that the case is caught before the user is prompted for a new name. Some other existing failure cases are also now additionally checked in `prepare_rename`. | ||||
* | Split out merge_imports module from helpers::insert_use | Lukas Wirth | 2021-04-24 | 8 | -329/+344 |
| | |||||
* | fix: correct version string to contain hash, build date and channel | Aleksey Kladov | 2021-04-24 | 1 | -21/+41 |
| | |||||
*-. | Merge #8591 #8638 | bors[bot] | 2021-04-23 | 15 | -355/+331 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8591: Remove SyntaxRewriter usage in insert_use in favor of mutable syntax trees r=matklad a=Veykril Unfortunately changing `insert_use` to not use `SyntaxRewriter` creates a lot of changes since so much relies on that. But on the other hand this should be the biggest usage of `SyntaxRewriter` I believe. 8638: Remove SyntaxRewriter::from_fn r=Veykril a=Veykril Co-authored-by: Lukas Wirth <[email protected]> | ||||
| | * | Remove SyntaxRewriter::from_fn | Lukas Wirth | 2021-04-23 | 3 | -31/+24 |
| |/ |/| | |||||
* | | Simplify highlight token match guards | Lukas Wirth | 2021-04-23 | 2 | -102/+92 |
| | | |||||
* | | Sort HlMod variants and ALL const | Lukas Wirth | 2021-04-23 | 6 | -46/+45 |
| | | |||||
* | | Tag `yield` and `await` as ControlFlow in semantic highlighting | Lukas Wirth | 2021-04-23 | 2 | -5/+13 |
| | | |||||
* | | Merge #8317 | bors[bot] | 2021-04-23 | 5 | -7/+636 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 8317: Convert tuple struct to named struct assist r=Veykril a=unexge Closes https://github.com/rust-analyzer/rust-analyzer/issues/8192 Co-authored-by: unexge <[email protected]> | ||||
| * | | Add missing test case for "Convert to named struct" assist | unexge | 2021-04-23 | 1 | -0/+40 |
| | | | |||||
| * | | Stop iterating reference after made an edit in "Convert to named struct" assist | unexge | 2021-04-23 | 1 | -2/+47 |
| | | | |||||
| * | | Move reference editing logic into own function to make error handling more ↵ | unexge | 2021-04-22 | 1 | -68/+61 |
| | | | | | | | | | | | | ease in "Convert to named struct" assist | ||||
| * | | Use multiple loops instead of `Iterator::chain` in `FindUsages` | unexge | 2021-04-21 | 1 | -13/+22 |
| | | | |||||
| * | | Add multi file test for "Convert to named struct" assist | unexge | 2021-04-21 | 1 | -0/+33 |
| | | | |||||
| * | | Remove `unwrap`s in "Convert to named struct" assist | unexge | 2021-04-21 | 1 | -9/+19 |
| | | | |||||
| * | | Add larger example for "Convert to named struct" assist | unexge | 2021-04-21 | 2 | -8/+60 |
| | | | |||||
| * | | Fix incorrectly replacing method calls in "Convert to named struct" assist | unexge | 2021-04-21 | 1 | -17/+41 |
| | | |