about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide-assists
AgeCommit message (Collapse)AuthorLines
2025-06-24fix: Use `ROOT` hygiene for `args` inside new `format_args!` expansionShoyu Vanilla-11/+5
2025-06-23Don't run doctestsChayim Refael Friedman-0/+1
2025-06-23In "Wrap return type" assist, don't wrap exit points if they already have ↵Chayim Refael Friedman-32/+131
the right type
2025-06-22Minic rustc's new `format_args!` expansionShoyu Vanilla-3/+9
2025-06-21fix: Correct grammar in remove all unused imports assistZakaria Elkatani-1/+1
2025-06-17chore: Start infesting ide crates with 'db lifetimeLukas Wirth-116/+134
2025-06-06In "Fill match arms", allow users to prefer `Self` to the enum name when ↵Chayim Refael Friedman-29/+200
possible But default to not to. I chose to have a more generic config name because maybe other assists could also use the same approach.
2025-06-05feat: ide-assist, generate single field struct FromA4-Tacks-6/+1043
2025-06-03Merge pull request #19869 from MatrixFrog/publicize_fieldLukas Wirth-145/+2
Add a quickfix for accessing a private field of a struct
2025-06-03Merge pull request #19901 from BazookaMusic/masterLukas Wirth-12/+192
Enable Assist edit for tuple<->named struct for the struct and visiblity keywords
2025-06-02Add a quickfix for accessing a private field of a structTyler Breisacher-145/+2
2025-06-02simplify expression that checks the offsetBazookaMusic-36/+30
2025-06-02Enhance renaming to include identifiers that are generated from the original ↵Lukas Wirth-1/+2
symbol Co-authored-by: Jake Goulding <jake.goulding@integer32.com>
2025-06-01clippy and more formattingBazookaMusic-9/+4
2025-06-01rename function so it makes more senseBazookaMusic-5/+5
2025-06-01Formatting issues resolvedBazookaMusic-13/+18
2025-06-01add missing public keywordBazookaMusic-1/+1
2025-06-01Allow assist edit for converting structs to appear also on struct keyword ↵BazookaMusic-6/+192
and on visibility
2025-05-29fix: Fix import insertion not being fully cfg awareLukas Wirth-35/+37
2025-05-28feat: Desugar assist for `let pat = expr?;` -> `let else`Lukas Wirth-171/+324
2025-05-26Merge pull request #19792 from A4-Tacks/fix-generate-mut-trait-impl-indentLukas Wirth-3/+91
fix: ide-assists, generate mut trait impl indent
2025-05-26Merge pull request #19785 from A4-Tacks/fix-generate-new-indentLukas Wirth-1/+136
fixes: ide-assists, generate_new indent loses
2025-05-15handle trait in functionHayashi Mikihiro-21/+23
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15check globHayashi Mikihiro-21/+22
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15rename fn name take_path to anyHayashi Mikihiro-1/+1
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15fix: ide-assists, generate mut trait impl indentA4-Tacks-3/+91
2025-05-14fix: Removing all unused imports removes used imports for imports used for ↵Hayashi Mikihiro-38/+177
Derive macros Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-14fixes: ide-assists, generate_new indent losesA4-Tacks-1/+136
2025-05-05Merge pull request #19747 from Veykril/push-kqxvxrxozswrLukas Wirth-12/+40
fix: Fix `move_bounds` assists not working for lifetimes
2025-05-05fix: Fix `move_bounds` assists not working for lifetimesLukas Wirth-12/+40
2025-05-05feat: add an assist to unwrap a type with a generic argVishruth-Thimmaiah-0/+175
This assist unwraps a type into its generic type argument, ignoring const and lifetime arguments
2025-05-02Render more lifetimesLukas Wirth-23/+23
2025-05-01remove a couple of clonesMatthias Krüger-8/+8
2025-04-28Merge pull request #19542 from snprajwal/let-else-to-matchLukas Wirth-130/+194
refactor: migrate `let_else_to_match` to editor
2025-04-28refactor: migrate `merge_imports` to syntax editorPrajwal S N-43/+25
Co-authored-by: Tarek <tareknaser360@gmail.com> Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-28chore: rename `unmerge_use` to `unmerge_imports`Prajwal S N-44/+44
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-28fix: migrate `unmerge_use` to syntax editorPrajwal S N-15/+44
Also ensures that attributes on the use item are applied to the new use item when unmerging. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-28refactor: migrate `let_else_to_match` to editorPrajwal S N-130/+194
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-28Merge pull request #19704 from Veykril/push-wrvznvvpvtvpLukas Wirth-13/+71
Add expression fill mode variant for filling with underscore expressions
2025-04-28Add expression fill mode variant for filling with underscore expressionsLukas Wirth-13/+71
2025-04-26Merge pull request #19692 from vishruth-thimmaiah/remove_underscore_for_used_varChayim Refael Friedman-0/+212
feat: adds an assist to remove underscores from used variables
2025-04-27feat: adds an assist to remove underscores from used variablesVishruth-Thimmaiah-0/+212
adds an assist that suggests removing any underscore prefixes from used variables.
2025-04-25Clarify text for add_braces assistWilfred Hughes-3/+3
"to arm expression" is hard to parse, because "arm" can be a verb. Not all Rust users may know that "arm" refers to a `match` expression either. Tweak the wording to make the sentence easier to parse, and clarify that this assist refers to `match`. Use the same wording style for the closure version too.
2025-04-22Merge pull request #19622 from A4-Tacks/raw-string-suffixLukas Wirth-13/+293
Fix ide-assists raw_string suffix fail
2025-04-21Remove unnecessary predefined symbol clonesChayim Refael Friedman-10/+10
Now that they're const it's no longer needed. Nothing manual was performed: only a regexp search of `sym::([\w][\w\d]*)\.clone\(\)` and replace by `sym::$1`.
2025-04-21Get rid of static predefined symbolsChayim Refael Friedman-3/+3
Make them all `const`.
2025-04-19Make `HirFileId`, `EditionedFileId` and macro files Salsa structChayim Refael Friedman-152/+164
And make more queries non-interned. Also flip the default for queries, now the default is to not intern and to intern a query you need to say `invoke_interned`.
2025-04-19Fix replace_string_with_char escaped char quoteA4-Tacks-5/+145
2025-04-18Support ide-assists raw_string suffixA4-Tacks-8/+148
2025-04-16Merge pull request #19591 from snprajwal/fix-make-macroLukas Wirth-2/+9
fix: use `ast::TokenTree` in `make::expr_macro`