Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge #1394 | bors[bot] | 2019-06-11 | 1 | -6/+23 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1394: Fix hover for pat that shadows items r=matklad a=sinkuu ```rust fn x() {} fn y() { let x = 0i32; x; // hover on `x` is expected to be `i32`, but the actual result was `fn x()` } ``` This was because: if [`res.is_empty()`](https://github.com/sinkuu/rust-analyzer/blob/656a0fa9f99298123d7dcee8c65a8a5ed7043bc4/crates/ra_ide_api/src/hover.rs#L205), it fallbacks to "index based approach" and adds `fn x()` to `res`, which makes [`res.extend(type_of)` below](https://github.com/sinkuu/rust-analyzer/blob/656a0fa9f99298123d7dcee8c65a8a5ed7043bc4/crates/ra_ide_api/src/hover.rs#L260-L266) not happen. Co-authored-by: Shotaro Yamada <[email protected]> | |||||
| * | Fix hover for pat that shadows items | Shotaro Yamada | 2019-06-11 | 1 | -6/+23 | |
| | | ||||||
* | | move docs under code model | Aleksey Kladov | 2019-06-11 | 2 | -10/+6 | |
| | | ||||||
* | | remove inherent source impls | Aleksey Kladov | 2019-06-11 | 4 | -8/+9 | |
| | | ||||||
* | | use Source for module, part 2 | Aleksey Kladov | 2019-06-11 | 1 | -5/+5 | |
| | | ||||||
* | | use Source for module, part 1 | Aleksey Kladov | 2019-06-11 | 3 | -8/+7 | |
| | | ||||||
* | | use Source for StructField | Aleksey Kladov | 2019-06-11 | 2 | -5/+5 | |
| | | ||||||
* | | use Source for MacroDef | Aleksey Kladov | 2019-06-11 | 2 | -7/+7 | |
| | | ||||||
* | | use Source for impl block | Aleksey Kladov | 2019-06-11 | 1 | -3/+3 | |
| | | ||||||
* | | use Source for Trait | Aleksey Kladov | 2019-06-11 | 2 | -26/+4 | |
| | | ||||||
* | | simplify | Aleksey Kladov | 2019-06-11 | 1 | -5/+5 | |
| | | ||||||
* | | use Source for TypeAlias | Aleksey Kladov | 2019-06-11 | 3 | -33/+10 | |
| | | ||||||
* | | reduce duplication in hover | Aleksey Kladov | 2019-06-11 | 1 | -56/+24 | |
| | | ||||||
* | | use Source for statics and consts | Aleksey Kladov | 2019-06-11 | 3 | -36/+11 | |
| | | ||||||
* | | use Source for Function | Aleksey Kladov | 2019-06-11 | 4 | -15/+9 | |
| | | ||||||
* | | Introduce HasSource trait | Aleksey Kladov | 2019-06-11 | 1 | -28/+18 | |
| | | ||||||
* | | use Source more | Aleksey Kladov | 2019-06-11 | 2 | -43/+22 | |
| | | ||||||
* | | introduce Source struct | Aleksey Kladov | 2019-06-11 | 2 | -14/+17 | |
|/ | ||||||
* | Simpliy hover on ast::name | Edwin Cheng | 2019-06-10 | 2 | -17/+35 | |
| | ||||||
* | Use classify_name_ref in hover | Edwin Cheng | 2019-06-10 | 3 | -14/+131 | |
| | ||||||
* | Remove incorrect FIXME | Edwin Cheng | 2019-06-09 | 1 | -2/+0 | |
| | ||||||
* | Formating | Edwin Cheng | 2019-06-09 | 1 | -2/+1 | |
| | ||||||
* | Use &str instread of Option<String> | Edwin Cheng | 2019-06-09 | 2 | -5/+5 | |
| | ||||||
* | Rename "string" to "buf" | Edwin Cheng | 2019-06-09 | 1 | -8/+8 | |
| | ||||||
* | Rename Description to ShortLabel | Edwin Cheng | 2019-06-09 | 5 | -133/+133 | |
| | ||||||
* | Make description_from_symbol depends on symbol | Edwin Cheng | 2019-06-09 | 1 | -5/+5 | |
| | ||||||
* | Rename description funcs | Edwin Cheng | 2019-06-09 | 1 | -11/+11 | |
| | ||||||
* | Change docs and description to getter method | Edwin Cheng | 2019-06-09 | 2 | -4/+11 | |
| | ||||||
* | Add display::Description | Edwin Cheng | 2019-06-09 | 4 | -67/+163 | |
| | ||||||
* | Construct doc individually | Edwin Cheng | 2019-06-08 | 2 | -45/+141 | |
| | ||||||
* | Remove node function in NavTarget | Edwin Cheng | 2019-06-08 | 5 | -80/+86 | |
| | ||||||
* | one macro def should be enough | Aleksey Kladov | 2019-06-08 | 2 | -6/+4 | |
| | ||||||
* | Merge #1377 | bors[bot] | 2019-06-06 | 14 | -644/+580 | |
|\ | | | | | | | | | | | | | | | 1377: Use inline snapshots in complete_keyword r=matklad a=sbihel Relates to #1127 Co-authored-by: Simon Bihel <[email protected]> | |||||
| * | Use inline snapshots in complete_keyword | Simon Bihel | 2019-06-04 | 14 | -644/+580 | |
| | | ||||||
* | | Fix clippy::or_fun_call | Alan Du | 2019-06-04 | 2 | -2/+2 | |
| | | ||||||
* | | Fix clippy::identity_conversion | Alan Du | 2019-06-04 | 2 | -3/+2 | |
| | | ||||||
* | | Fix clippy::new_without_default | Alan Du | 2019-06-04 | 1 | -0/+6 | |
| | | ||||||
* | | Fix clippy::assign_op_pattern | Alan Du | 2019-06-04 | 1 | -1/+1 | |
| | | ||||||
* | | Fix clippy::useless_format | Alan Du | 2019-06-04 | 1 | -2/+2 | |
| | | ||||||
* | | Fix clippy::into_iter_on_ref | Alan Du | 2019-06-04 | 1 | -1/+1 | |
| | | ||||||
* | | Fix clippy::len_zero | Alan Du | 2019-06-04 | 1 | -2/+2 | |
| | | ||||||
* | | Fix clippy::ptr_arg | Alan Du | 2019-06-04 | 1 | -2/+2 | |
| | | ||||||
* | | Fix clippy::match_ref_pats | Alan Du | 2019-06-04 | 1 | -6/+6 | |
| | | ||||||
* | | Fix clippy::single_match | Alan Du | 2019-06-04 | 1 | -4/+3 | |
|/ | ||||||
* | don't cache parses twice | Aleksey Kladov | 2019-06-02 | 2 | -7/+29 | |
| | | | | | | | | | Before this commit, `Parse`s for original file ended up two times in salsa's db: first, when we parse original file, and second, when we parse macro or a file. Given that parse trees are the worst ofenders in terms of memory, it makes sense to make sure we store them only once. | |||||
* | collect macro queries | Aleksey Kladov | 2019-06-02 | 1 | -0/+3 | |
| | ||||||
* | add AstDatabase | Aleksey Kladov | 2019-06-02 | 1 | -2/+3 | |
| | ||||||
* | collect types and bodies | Aleksey Kladov | 2019-06-01 | 1 | -0/+4 | |
| | ||||||
* | collect impl source maps | Aleksey Kladov | 2019-06-01 | 1 | -0/+1 | |
| | ||||||
* | don't cache ast_id_to_node | Aleksey Kladov | 2019-06-01 | 1 | -1/+0 | |
| |