Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | minor: use minicore | Aleksey Kladov | 2021-06-18 | 1 | -13/+4 |
| | |||||
* | minor: use minicore | Aleksey Kladov | 2021-06-18 | 1 | -3/+1 |
| | |||||
* | internal: minimize minicore | Aleksey Kladov | 2021-06-17 | 1 | -3/+3 |
| | | | | | | We want to keep minicore small, so let's split out iterator adapters and sources into a separate `iterators` region, and use them only when needed. | ||||
* | internal: switch some tests to minicore | Aleksey Kladov | 2021-06-17 | 1 | -16/+15 |
| | |||||
* | clippy::redudant_borrow | Maan2003 | 2021-06-13 | 1 | -3/+3 |
| | |||||
* | Cleanup parameter_hint_heuristics inlay hints test | Lukas Wirth | 2021-06-04 | 1 | -87/+68 |
| | |||||
* | Reorganize inlay_hints tests | Lukas Wirth | 2021-06-04 | 1 | -522/+493 |
| | |||||
* | Prefix/suffix parameter inlay hint hiding heuristic is more strict | Lukas Wirth | 2021-06-03 | 1 | -70/+57 |
| | |||||
* | Merge #8942 | bors[bot] | 2021-05-25 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 8942: Add `library` semantic token modifier to items from other crates r=arzg a=arzg Closes #5772. A lot of code here is pretty repetitive; please let me know if you have any ideas how to improve it, or whether it’s fine as-is. Side-note: How can I add tests for this? I don’t see a way for the test Rust code in `test_highlighting` to reference other crates to observe the new behaviour. Co-authored-by: Aramis Razzaghipour <[email protected]> | ||||
| * | Remove hir krate methods | Aramis Razzaghipour | 2021-05-24 | 1 | -1/+1 |
| | | |||||
* | | Minor: fix comment style | Aleksey Kladov | 2021-05-23 | 1 | -1/+3 |
|/ | | | | See https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md#documentation | ||||
* | Add basic support for array lengths in types | Jade | 2021-05-11 | 1 | -1/+1 |
| | | | | | | | | | | This recognizes `let a = [1u8, 2, 3]` as having type `[u8; 3]` instead of the previous `[u8; _]`. Byte strings and `[0u8; 2]` kinds of range array declarations are unsupported as before. I don't know why a bunch of our rustc tests had single quotes inside strings un-escaped by `UPDATE_EXPECT=1 cargo t`, but I don't think it's bad? Maybe something in a nightly? | ||||
* | simplify | Lukas Tobias Wirth | 2021-05-05 | 1 | -3/+1 |
| | |||||
* | Add and start using TraitRef and ProjectionTy builders | Florian Diebold | 2021-04-04 | 1 | -1/+1 |
| | |||||
* | Gifs and screenshots for features in manual | Ayomide Bamidele | 2021-03-31 | 1 | -0/+2 |
| | |||||
* | syntax: return owned string instead of leaking string | cynecx | 2021-03-26 | 1 | -1/+1 |
| | |||||
* | Power up goto_implementation | Lukas Wirth | 2021-03-15 | 1 | -1/+1 |
| | | | | | by allowing it to be invoked on references of names, showing all (trait) implementations of the given type in all crates including builtin types | ||||
* | Allow comments between newlines in chaining hints | Paco Soberón | 2021-02-16 | 1 | -16/+22 |
| | |||||
* | Update fixed tests | Jonas Schievink | 2021-02-10 | 1 | -0/+1 |
| | |||||
* | Only hide parameter hints for path, field and methodcall expressions | Lukas Wirth | 2021-01-27 | 1 | -1/+19 |
| | |||||
* | . | Aleksey Kladov | 2021-01-19 | 1 | -1/+1 |
| | |||||
* | Render Fn* trait objects and impl types as rust does | Lukas Wirth | 2021-01-13 | 1 | -0/+37 |
| | |||||
* | Skip leading underscores unconditionally | Jacob Pratt | 2021-01-10 | 1 | -2/+5 |
| | |||||
* | Short-circuit boolean operation | Jacob Pratt | 2021-01-10 | 1 | -4/+8 |
| | |||||
* | Remove unnecessary allocation | Jacob Pratt | 2021-01-10 | 1 | -7/+12 |
| | | | | | | | | | | The case-insensitive prefix/suffix check can be performed character-by-character. This allows the check to be done without having to allocate a new string. As a side effect, it's also no longer necessary to convert the entire string to lowercase, as it's done as needed. As the only case equality we're handling is ASCII, this operation can be further optimized by using byte equality, rather than character equality. | ||||
* | Hide argument name hint regardless of case | Jacob Pratt | 2021-01-09 | 1 | -3/+10 |
| | |||||
* | More maintainable config | Aleksey Kladov | 2021-01-06 | 1 | -10/+11 |
| | | | | | | | Rather than eagerly converting JSON, we losslessly keep it as is, and change the shape of user-submitted data at the last moment. This also allows us to remove a bunch of wrong Defaults | ||||
* | Move the helpers into ide_db | Kirill Bulatov | 2020-11-28 | 1 | -2/+2 |
| | |||||
* | Extract the import code into the shared module | Kirill Bulatov | 2020-11-27 | 1 | -2/+2 |
| | |||||
* | Only show `self` ident when showing parameter self hints | Lukas Wirth | 2020-11-02 | 1 | -2/+23 |
| | |||||
*-. | Merge #6393 #6399 | bors[bot] | 2020-11-02 | 1 | -2/+106 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6393: Remove repetitive inlay hints (take 2) r=matklad a=lnicola 6399: Keep generic annotations when qualifying things r=matklad a=Veykril The `qualify_path` assists currently eats up already annotated generics in all but one cases which can be annoying if one already pre-fills generics of a type before it's been qualified. Co-authored-by: Matthew Sanetra <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | Add check if param name is similar to fn name | Matthew Sanetra | 2020-10-28 | 1 | -2/+106 |
| |/ | |||||
* / | do not use associated types placeholder for inlay hint | Benjamin Coenen | 2020-10-28 | 1 | -0/+21 |
|/ | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | Hide paramater inlay hints for cloned vars if applicable | Lukas Wirth | 2020-10-22 | 1 | -1/+28 |
| | |||||
* | Don't rely on display names in inlay_hints | Aleksey Kladov | 2020-10-20 | 1 | -6/+13 |
| | |||||
* | More type safety around names | Aleksey Kladov | 2020-10-20 | 1 | -3/+2 |
| | |||||
* | Rename declaration_name -> display_name | Aleksey Kladov | 2020-10-20 | 1 | -1/+1 |
| | | | | | | | | Declaration names sounds like a name of declaration -- something you can use for analysis. It empathically isn't, and is just a label displayed in various UI. It's important not to confuse the two, least we accidentally mix semantics with UI (I believe, there's already a case of this in the FamousDefs at least). | ||||
* | Fix iterator hint shortening heuristic | Lukas Wirth | 2020-10-12 | 1 | -2/+2 |
| | |||||
* | Also replace the associated types with iter | Kirill Bulatov | 2020-10-10 | 1 | -11/+14 |
| | |||||
* | Add a test | Kirill Bulatov | 2020-10-10 | 1 | -23/+39 |
| | |||||
* | Clean up inlay_hints | Lukas Wirth | 2020-10-07 | 1 | -18/+14 |
| | |||||
* | Shorten iterator hints for std::iter iterators behind references | Lukas Wirth | 2020-10-07 | 1 | -2/+4 |
| | |||||
* | Shorten iterator chain hints | Lukas Wirth | 2020-10-07 | 1 | -36/+81 |
| | |||||
* | 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 |
| | |||||
* | Fix trait object hir formatting behind pointer and references | Lukas Wirth | 2020-10-06 | 1 | -0/+34 |
| | |||||
* | 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 |
| |