Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move IntoIterator into FamousDefs | Lukas Wirth | 2020-10-07 | 1 | -23/+5 |
| | |||||
* | Use FamousDefs for shorten_iterator hint | Lukas Wirth | 2020-10-06 | 1 | -57/+36 |
| | |||||
* | Shorten type hints for std::iter Iterators | Lukas Wirth | 2020-10-06 | 1 | -6/+125 |
| | |||||
* | Merge #6148 | bors[bot] | 2020-10-06 | 1 | -0/+34 |
|\ | | | | | | | | | | | | | | | 6148: Fix trait object hir formatting behind pointer and references r=matklad a=Veykril Fixes #6064 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Fix trait object hir formatting behind pointer and references | Lukas Wirth | 2020-10-06 | 1 | -0/+34 |
| | | |||||
* | | Merge #6124 | bors[bot] | 2020-10-06 | 3 | -5/+35 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6124: Better normalized crate name usage r=jonas-schievink a=SomeoneToIgnore Closes https://github.com/rust-analyzer/rust-analyzer/issues/5343 Closes https://github.com/rust-analyzer/rust-analyzer/issues/5932 Uses normalized name for code snippets (to be able to test the fix), hover messages and documentation rewrite links (are there any tests for those?). Also renamed the field to better resemble the semantics. Co-authored-by: Kirill Bulatov <[email protected]> | ||||
| * | | Properly name the field | Kirill Bulatov | 2020-10-02 | 3 | -5/+5 |
| | | | |||||
| * | | Add a dash test | Kirill Bulatov | 2020-10-02 | 1 | -0/+30 |
| | | | |||||
* | | | Merge #6127 | bors[bot] | 2020-10-05 | 2 | -2/+23 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6127: Correctly complete items with leading underscore r=SomeoneToIgnore a=fmease Fixes #6091. Let me know if the test is placed into the right file or if it is even desired. Co-authored-by: León Orell Valerian Liehr <[email protected]> | ||||
| * | | | Correctly complete items with leading underscore | León Orell Valerian Liehr | 2020-10-03 | 2 | -2/+23 |
| |/ / | |||||
* | / | Fix feature name | Aleksey Kladov | 2020-10-05 | 1 | -1/+1 |
| |/ |/| | |||||
* | | Improve readability in inlay_hints.rs | Igor Aleksanov | 2020-10-03 | 1 | -4/+5 |
| | | |||||
* | | Remove 'for_expr' test from inlay_hints.rs | Igor Aleksanov | 2020-10-03 | 1 | -14/+1 |
| | | |||||
* | | Make the tests for complete/incomplete for inlay hints work | Igor Aleksanov | 2020-10-03 | 1 | -10/+77 |
| | | |||||
* | | Better inlay hints in 'for' loops | Igor Aleksanov | 2020-10-03 | 1 | -2/+49 |
|/ | |||||
* | rename mock_analysis -> fixture | Aleksey Kladov | 2020-10-02 | 23 | -99/+90 |
| | |||||
* | Get rid of MockAnalysis | Aleksey Kladov | 2020-10-02 | 18 | -414/+280 |
| | |||||
* | Move ide::AnalysisChange -> base_db::Change | Aleksey Kladov | 2020-10-02 | 3 | -10/+7 |
| | | | | | | This seems like a better factoring logically; ideally, clients shouldn't touch `set_` methods of the database directly. Additionally, I think this should remove the unfortunate duplication in fixture code. | ||||
* | Expectify find_references tests | Aleksey Kladov | 2020-10-02 | 1 | -176/+181 |
| | |||||
* | Reduce visibiity | Aleksey Kladov | 2020-10-02 | 2 | -13/+14 |
| | |||||
* | Use expect_test to make format_str_parser test more data-driven | Igor Aleksanov | 2020-10-02 | 1 | -35/+35 |
| | |||||
* | Use lookup table instead of enum for postfix completion kinds | Igor Aleksanov | 2020-10-02 | 1 | -62/+20 |
| | |||||
* | Use ast::String for extracting string literal contents | Igor Aleksanov | 2020-10-02 | 2 | -14/+19 |
| | |||||
* | Improve format-like completions code appearance | Igor Aleksanov | 2020-10-02 | 2 | -32/+26 |
| | |||||
* | Add missing entry to doc-comment | Igor Aleksanov | 2020-10-02 | 1 | -0/+1 |
| | |||||
* | Simplify is_string_literal function | Igor Aleksanov | 2020-10-02 | 1 | -9/+5 |
| | |||||
* | Improve checks for postfix suggestions | Igor Aleksanov | 2020-10-02 | 3 | -16/+23 |
| | |||||
* | Add postfix completion for format-like string literals | Igor Aleksanov | 2020-10-02 | 3 | -1/+376 |
| | |||||
* | Minor clippy performance suggestions | kjeremy | 2020-09-30 | 1 | -2/+2 |
| | |||||
* | Extend **Status** command to also show dep info for the file | Aleksey Kladov | 2020-09-29 | 2 | -18/+35 |
| | | | | This should help with troubleshooting wrong project configuration | ||||
* | Remove periodic gc stub | Aleksey Kladov | 2020-09-29 | 2 | -7/+2 |
| | |||||
* | Add tests | vsrs | 2020-09-29 | 1 | -3/+77 |
| | |||||
* | Do not show references CodeLens for tests. | vsrs | 2020-09-29 | 3 | -14/+26 |
| | |||||
* | Make method references CodeLens lazy. | vsrs | 2020-09-29 | 1 | -1/+16 |
| | |||||
* | Add hover config `linksInHover` to suppress links | flw | 2020-09-29 | 3 | -12/+146 |
| | |||||
* | Merge #6055 | bors[bot] | 2020-09-25 | 1 | -0/+5 |
|\ | | | | | | | | | | | | | | | | | | | 6055: Add ok postfix completion r=matklad a=mullr Wrapping values in `Ok(...)` is so pervasive that it seems reasonable for it to have its own postfix completion. Co-authored-by: Russell Mull <[email protected]> | ||||
| * | Cargo fmt | Russell Mull | 2020-09-22 | 1 | -9/+2 |
| | | |||||
| * | Add ok postfix completion | Russell Mull | 2020-09-22 | 1 | -0/+12 |
| | | |||||
* | | Merge #6072 | bors[bot] | 2020-09-25 | 2 | -6/+6 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6072: Cleanup unintended unresolved reference in syntax higlighting test r=matklad a=Nashenas88 Fixes the issue brought up here https://github.com/rust-analyzer/rust-analyzer/pull/5957#discussion_r486625707 cc @jonas-schievink Co-authored-by: Paul Daniel Faria <[email protected]> | ||||
| * | | Cleanup unintended unresolved reference in syntax higlighting test | Paul Daniel Faria | 2020-09-24 | 2 | -6/+6 |
| | | | |||||
* | | | Merge #6056 | bors[bot] | 2020-09-24 | 1 | -0/+12 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | 6056: Add dbgr postfix completion r=matklad a=lnicola Expanding to `dbg!(&e)`. Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| * | | Add dbgr postfix completion | Laurențiu Nicola | 2020-09-22 | 1 | -0/+12 |
| | | | |||||
* | | | Merge #5846 | bors[bot] | 2020-09-24 | 2 | -3/+130 |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5846: Add references to fn args during completion r=matklad a=adamrk When completing a function call, if there is an argument taken as a ref or mut ref which matches the name and type of a variable in scope, we will insert a `&` or `&mut` when filling in the function arguments. This addresses https://github.com/rust-analyzer/rust-analyzer/issues/5449. E.g. ```rust fn foo(x: &i32) {} fn main() { let x = 5; foo # completing foo here generates `foo(&x)` now instead of `foo(x)` } ``` Co-authored-by: adamrk <[email protected]> | ||||
| * | | Trim mut keyword in fn completion | adamrk | 2020-09-02 | 1 | -1/+22 |
| | | | |||||
| * | | Remove exposing unification | adamrk | 2020-09-02 | 1 | -1/+1 |
| | | | |||||
| * | | Collect locals in context | adamrk | 2020-09-02 | 2 | -12/+15 |
| | | | |||||
| * | | Add back Param struct | adamrk | 2020-09-01 | 1 | -1/+1 |
| | | | |||||
| * | | Add references to fn args during completion | adamrk | 2020-08-30 | 1 | -2/+105 |
| | | | |||||
* | | | Update tests | Jonas Schievink | 2020-09-16 | 1 | -5/+57 |
| |/ |/| | |||||
* | | Avoid checking all ancestors and fix mis-completion | oxalica | 2020-09-15 | 1 | -33/+215 |
| | |