| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-07-15 | Auto merge of #17587 - joshka:jm/edit-name-after-refactor, r=Veykril | bors | -5/+21 | |
| Trigger VSCode to rename after extract variable assist is applied When the user applies the "Extract Variable" assist, the cursor is positioned at the newly inserted variable. This commit adds a command to the assist that triggers the rename action in VSCode. This way, the user can quickly rename the variable after applying the assist. Fixes part of: #17579 https://github.com/user-attachments/assets/4cf38740-ab22-4b94-b0f1-eddd51c26c29 I haven't yet looked at the module or function extraction assists yet. | ||||
| 2024-07-15 | Fix stable iteration ordering for `Map<Name, ...>` usages | Lukas Wirth | -5/+5 | |
| 2024-07-12 | Trigger VSCode to rename after extract variable assist is applied | bors | -5/+21 | |
| When the user applies the "Extract Variable" assist, the cursor is positioned at the newly inserted variable. This commit adds a command to the assist that triggers the rename action in VSCode. This way, the user can quickly rename the variable after applying the assist. Fixes part of: #17579 | ||||
| 2024-07-12 | Use Symbol in Name | Lukas Wirth | -5/+5 | |
| 2024-07-11 | Merge from rust-lang/rust | Laurențiu Nicola | -1/+0 | |
| 2024-07-07 | Auto merge of #17555 - Veykril:grammar-inline, r=Veykril | bors | -1/+1 | |
| internal: Inline generated syntax methods | ||||
| 2024-07-07 | HasGenericArgs syntax trait | Lukas Wirth | -1/+1 | |
| 2024-07-07 | Auto merge of #17523 - wada314:master, r=Veykril | bors | -4/+35 | |
| Add an option to use "::" for the external crate prefix. Fixes #11823 . Hi I'm very new to rust-analyzer and not sure how the review process are. Can somebody take a look at this PR? thanks! | ||||
| 2024-07-07 | Update generated lint definitions | Lukas Wirth | -796/+1022 | |
| 2024-07-02 | squash. | Shohei Wada | -4/+35 | |
| 2024-07-01 | Auto merge of #17494 - harrysarson:harry/keep-braces, r=Veykril | bors | -3/+30 | |
| do not normalize `use foo::{self}` to `use foo` It changes behaviour and can cause collisions. E.g. for the following snippet ```rs mod foo { pub mod bar {} pub const bar: i32 = 8; } // transforming the below to `use foo::bar;` causes the error: // // the name `bar` is defined multiple times use foo::bar::{self}; const bar: u32 = 99; fn main() { let local_bar = bar; } ``` we still normalize ```rs use foo::bar; use foo::bar::{self}; ``` to `use foo::bar;` because this cannot cause collisions. See: https://github.com/rust-lang/rust-analyzer/pull/17140#issuecomment-2079189725 | ||||
| 2024-06-30 | Remove inline `rust_2018_idioms, unused_lifetimes` lint warn, Cargo.toml ↵ | Lukas Wirth | -2/+0 | |
| already enforces this | ||||
| 2024-06-30 | Simplify | Lukas Wirth | -5/+1 | |
| 2024-06-27 | Remove the `box_pointers` lint. | Nicholas Nethercote | -1/+0 | |
| As the comment says, this lint "is mostly historical, and not particularly useful". It's not worth keeping it around. | ||||
| 2024-06-26 | do not normalize `use foo::{self}` to `use foo` | Harry Sarson | -3/+30 | |
| It changes behaviour and can cause collisions. E.g. for the following snippet ```rs mod foo { pub mod bar {} pub const bar: i32 = 8; } // tranforming the below to `use foo::bar;` causes the error: // // the name `bar` is defined multiple times use foo::bar::{self}; const bar: u32 = 99; fn main() { let local_bar = bar; } ``` we still normalize ```rs use foo::bar; use foo::bar::{self}; ``` to `use foo::bar;` because this cannot cause collisions. See: https://github.com/rust-lang/rust-analyzer/pull/17140#issuecomment-2079189725 | ||||
| 2024-06-24 | Enum variants are not generic def ids | Lukas Wirth | -4/+7 | |
| 2024-06-17 | Auto merge of #17439 - Veykril:paralleler-prime-caches, r=Veykril | bors | -34/+16 | |
| Properly prime all crate def maps in parallel_prime_caches | ||||
| 2024-06-17 | Properly prime all crate def maps in `parallel_prime_caches` | Lukas Wirth | -34/+16 | |
| 2024-06-13 | internal: Fix rustdoc warnings | Wilfred Hughes | -1/+1 | |
| `cargo doc` generates a bunch of warnings on rust-analyzer. Fix all the bare URL and empty code block warnings. | ||||
| 2024-06-11 | Auto merge of #17374 - Veykril:configs, r=Veykril | bors | -1/+1 | |
| Allow choosing logical cores for num threads config | ||||
| 2024-06-10 | Thread more HasSource::source calls through Semantics for caching | Lukas Wirth | -11/+11 | |
| 2024-06-09 | Allow choosing logical cores for num threads config | Lukas Wirth | -1/+1 | |
| 2024-06-06 | chore: Prefer tracing span shorthand macros | Wilfred Hughes | -31/+25 | |
| 2024-06-04 | Auto merge of #17282 - jkelleyrtp:jk/filter-by-underscorte, r=Veykril | bors | -1/+7 | |
| Feat: hide double underscored symbols from symbol search Fixes #17272 by changing the default behavior of query to skip results that start with `__` (two underscores). Not sure if this has any far reaching implications - a review would help to understand if this is the right place to do the filtering, and if it's fine to do it by default on the query. If you type `__` as your search, then we'll show the matching double unders, just in case you actually need the symbol. | ||||
| 2024-06-04 | Recognize `__` prefixes for symbol search query | Lukas Wirth | -12/+3 | |
| 2024-06-03 | Simplify | Lukas Wirth | -1/+1 | |
| 2024-06-02 | Make `extract_expressions_from_format_string` only use snippets when available | DropDemBits | -0/+6 | |
| 2024-05-24 | Add toggle_async_sugar assist code action | maxwase | -0/+4 | |
| 2024-05-22 | Fix: clippy | Jonathan Kelley | -1/+1 | |
| 2024-05-22 | Allow searching with prefix | Jonathan Kelley | -1/+6 | |
| 2024-05-22 | Feat: hide double underscored symbols from symbol search | Jonathan Kelley | -1/+11 | |
| 2024-05-22 | fix: ensure implied bounds from associated types are considered in autocomplete | David Barsky | -1/+10 | |
| 2024-05-22 | internal: refactor `prefer_no_std`/`prefer_prelude` bools into a struct | David Barsky | -33/+20 | |
| 2024-05-22 | Auto merge of #17277 - Veykril:find-path-fixes, r=Veykril | bors | -5/+5 | |
| fix: Various find path fixes Fixes https://github.com/rust-lang/rust-analyzer/issues/17271 | ||||
| 2024-05-22 | Auto merge of #17268 - Veykril:signatures, r=Veykril | bors | -11/+9 | |
| feat: More callable info With this PR we retain more info about callables other than functions, allowing for closure parameter type inlay hints to be linkable as well as better signature help around closures and `Fn*` implementors. | ||||
| 2024-05-22 | Update assists test fixtures | Lukas Wirth | -7/+11 | |
| 2024-05-22 | fix: Fix general find-path inconsistencies | Lukas Wirth | -14/+10 | |
| 2024-05-19 | Merge from rust-lang/rust | Laurențiu Nicola | -3/+3 | |
| 2024-05-18 | Show fn traits in signature info for trait implementors | Lukas Wirth | -4/+1 | |
| 2024-05-18 | Allow hir::Param to refer to other entity params aside from functions | Lukas Wirth | -7/+8 | |
| 2024-05-16 | Auto merge of #17243 - Veykril:static-lt-hir, r=Veykril | bors | -8/+18 | |
| internal: Add StaticLifetime to hir API | ||||
| 2024-05-16 | internal: Add StaticLifetime to hir API | Lukas Wirth | -8/+18 | |
| 2024-05-15 | Fix typos | blyxyas | -1/+1 | |
| 2024-04-30 | fix: Tracing span names should match function names | Wilfred Hughes | -11/+9 | |
| When viewing traces, it's slightly confusing when the span name doesn't match the function name. Ensure the names are consistent. (It might be worth moving most of these to use #[tracing::instrument] so the name can never go stale. @davidbarsky suggested that is marginally slower, so I've just done the simple change here.) | ||||
| 2024-04-25 | fix: Fix expression scopes not being calculated for inline consts | Lukas Wirth | -2/+2 | |
| 2024-04-24 | Error on using `yield` without also using `#[coroutine]` on the closure | Oli Scherer | -3/+3 | |
| And suggest adding the `#[coroutine]` to the closure | ||||
| 2024-04-21 | Allow rust files to be used linkedProjects | Lukas Wirth | -0/+26617 | |
| 2024-04-20 | Merge commit '55d9a533b309119c8acd13061581b43ae8840823' into sync-from-ra | Laurențiu Nicola | -105/+136 | |
| 2024-03-31 | Merge commit 'f5a9250147f6569d8d89334dc9cca79c0322729f' into sync-from-ra | Laurențiu Nicola | -0/+1 | |
| 2024-03-17 | Merge commit '5ecace48f693afaa6adf8cb23086b651db3aec96' into sync-from-ra | Laurențiu Nicola | -19/+20 | |
