Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | More compact debug representation for completion | Aleksey Kladov | 2019-02-18 | 55 | -1883/+610 | |
| | ||||||
* | Don't render `()` in calls to assoc functions | Aleksey Kladov | 2019-02-17 | 3 | -6/+42 | |
| | ||||||
* | Merge #844 | bors[bot] | 2019-02-17 | 3 | -34/+94 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 844: Refactor find_all_refs to return ReferenceSearchResult r=vipentti a=vipentti This refactors `find_all_refs` to return a new `ReferenceSearchResult` based on feedback in #839. There are few questions/notes regarding the refactor: 1. Introducing `NavigationTarget::from_bind_pat` this simply forwards the call to `NavigationTarget::from_named`, could we just expose `from_named` directly as `pub(crate)` ? 2. Added an utility method `NavigationTarget::range` since there were few places where you would use `self.focus_range.unwrap_or(self.full_range)` 3. Implementing `IntoIterator` for `ReferenceSearchResult`. This turns `ReferenceSearchResult` into an iterator over `FileRanges` and allows previous code to mostly stay as it was based on the order that `find_all_refs` previously had (declaration first and then the references). I'm not sure if there is a way of doing the conversion to `IntoIter` without the allocation of a new vector 4. Is it possible to have a binding without a name? I'm not sure if the `NavigationTarget::from_bind_pat` can cause some edge-cases that previously were ok This fixes #835. Co-authored-by: Ville Penttinen <[email protected]> | |||||
| * | Remove leading :: | Ville Penttinen | 2019-02-17 | 1 | -1/+1 | |
| | | ||||||
| * | Refactor find_all_refs to return ReferenceSearchResult | Ville Penttinen | 2019-02-17 | 3 | -34/+94 | |
| | | ||||||
* | | Unify with the autorefed/autoderefed receiver type during method resolution | Florian Diebold | 2019-02-17 | 1 | -1/+1 | |
|/ | ||||||
* | Turn ImplBlock into a copy type just containing IDs | Florian Diebold | 2019-02-16 | 3 | -9/+15 | |
| | | | | | | | This makes it more like the other code model types. Also make Module::definition_source/declaration_source return HirFileIds, to make them more like the other source functions. | |||||
* | document design guideline | Aleksey Kladov | 2019-02-16 | 1 | -0/+6 | |
| | ||||||
* | use better label for &mut ref completion | Aleksey Kladov | 2019-02-14 | 2 | -11/+11 | |
| | ||||||
* | Merge #831 | bors[bot] | 2019-02-14 | 2 | -13/+84 | |
|\ | | | | | | | | | | | | | | | 831: tweak postfix completions r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | tweak postfix completions | Aleksey Kladov | 2019-02-14 | 2 | -13/+60 | |
| | | | | | | | | | | * better label * add refm for &mut | |||||
| * | add ref postfix template | Aleksey Kladov | 2019-02-14 | 2 | -3/+27 | |
| | | ||||||
* | | Be precise about the argument list | Jeremy Kolb | 2019-02-14 | 1 | -15/+7 | |
|/ | | | | Fixes #812 | |||||
* | Complete names from prelude | Florian Diebold | 2019-02-13 | 2 | -1/+74 | |
| | ||||||
* | Keep track of crate edition | Florian Diebold | 2019-02-13 | 2 | -4/+5 | |
| | ||||||
* | Fix possible issue where unnamed is_symbol_def would pop stack wrongly | Ville Penttinen | 2019-02-13 | 1 | -11/+1 | |
| | | | | This removes is_symbol_def as unnecessary. | |||||
* | Use cloned over map + clone | Ville Penttinen | 2019-02-13 | 1 | -1/+1 | |
| | ||||||
* | Use clone directly rather than map + clone | Ville Penttinen | 2019-02-13 | 1 | -1/+1 | |
| | ||||||
* | Add support for container_name in workspace/symbol query | Ville Penttinen | 2019-02-12 | 2 | -14/+59 | |
| | ||||||
* | Filter attributes from the completion details/label | Laurențiu Nicola | 2019-02-12 | 3 | -0/+49 | |
| | ||||||
* | Fix some typos | Pascal Hertleif | 2019-02-12 | 9 | -25/+25 | |
| | ||||||
* | Implement completion for associated items | Laurențiu Nicola | 2019-02-12 | 6 | -1/+245 | |
| | ||||||
* | fix regression in self-referential completion | Aleksey Kladov | 2019-02-11 | 3 | -15/+32 | |
| | ||||||
* | remove hard-coded query-group macro | Aleksey Kladov | 2019-02-11 | 2 | -43/+0 | |
| | ||||||
* | use extern prelude in Resolver | Aleksey Kladov | 2019-02-11 | 2 | -0/+38 | |
| | | | | | | | This fixes two bugs: - completion for paths works again - we handle extern prelude shadowing more correctly | |||||
* | reformat the world | Aleksey Kladov | 2019-02-08 | 23 | -274/+87 | |
| | ||||||
* | diagnostics is now a function | Aleksey Kladov | 2019-02-08 | 2 | -64/+62 | |
| | ||||||
* | move diagnostics to a separate file | Aleksey Kladov | 2019-02-08 | 2 | -27/+22 | |
| | ||||||
* | move index_resolve to symbol index | Aleksey Kladov | 2019-02-08 | 4 | -14/+11 | |
| | ||||||
* | move find_references to references | Aleksey Kladov | 2019-02-08 | 3 | -67/+55 | |
| | ||||||
* | rename rename to references | Aleksey Kladov | 2019-02-08 | 2 | -2/+2 | |
| | ||||||
* | move crate for | Aleksey Kladov | 2019-02-08 | 3 | -16/+16 | |
| | ||||||
* | move changes to a separate file | Aleksey Kladov | 2019-02-08 | 4 | -254/+263 | |
| | ||||||
* | Some clippy cleanups | kjeremy | 2019-02-06 | 6 | -16/+17 | |
| | ||||||
* | move assists to a separate crate | Aleksey Kladov | 2019-02-06 | 6 | -295/+24 | |
| | ||||||
* | Rename assits to assists | Jeremy Kolb | 2019-02-05 | 6 | -5/+5 | |
| | ||||||
* | Complete extern prelude (again) | Florian Diebold | 2019-02-04 | 2 | -0/+36 | |
| | ||||||
* | Make it possible to have multiple crate in a mock analysis fixture | Florian Diebold | 2019-02-04 | 1 | -2/+10 | |
| | ||||||
* | make HirDatabase object-safe | Aleksey Kladov | 2019-02-03 | 2 | -2/+4 | |
| | ||||||
* | fill match arm | gfreezy | 2019-02-03 | 6 | -2/+290 | |
| | ||||||
* | fold complete_postfix tests into one | Hoàng Đức Hiếu | 2019-02-03 | 5 | -411/+3 | |
| | ||||||
* | add postfix completion for `dbg!()` with `.dbg` | Hoàng Đức Hiếu | 2019-02-02 | 5 | -6/+212 | |
| | ||||||
* | Some cleanup and additional tests | Florian Diebold | 2019-02-01 | 4 | -24/+120 | |
| | ||||||
* | Make the Resolution variants tuple variants | Florian Diebold | 2019-02-01 | 3 | -21/+17 | |
| | ||||||
* | Cleanup | Florian Diebold | 2019-02-01 | 3 | -4/+5 | |
| | ||||||
* | Use the new Resolver API for goto def | Florian Diebold | 2019-02-01 | 2 | -24/+36 | |
| | ||||||
* | Use the new Resolver API in completion | Florian Diebold | 2019-02-01 | 5 | -68/+74 | |
| | ||||||
* | split HirDatabase api | csmoe | 2019-02-01 | 1 | -1/+2 | |
| | ||||||
* | remove hard-coded support for ctry macro | Aleksey Kladov | 2019-02-01 | 4 | -44/+15 | |
| | | | | | It was used mainly to prevent HirFileId infra from bitroting, but the `vec![]` macro can serve that just as well! | |||||
* | Go To Implementation for Trait | kjeremy | 2019-01-31 | 1 | -6/+78 | |
| |