about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide-completion
AgeCommit message (Collapse)AuthorLines
2025-07-31`cargo clippy --fix`Lukas Wirth-351/+306
2025-07-26Migrate PathTransform to SyntaxEditorHayashi Mikihiro-2/+2
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-12Fix assoc type where clause positionA4-Tacks-5/+75
2025-07-03Fix some things with builtin derivesChayim Refael Friedman-0/+4
1. Err on unions on derive where it's required. 2. Err on `#[derive(Default)]` on enums without `#[default]` variant. 3. Don't add where bounds `T: Default` when expanding `Default` on enums (structs need that, enums not). Also, because I was annoyed by that, in minicore, add a way to filter on multiple flags in the line-filter (`// :`). This is required for the `Debug` and `Hash` derives, because the derive should be in the prelude but the trait not.
2025-06-29Remove unnecessary parens in closureyukang-1/+1
2025-06-27Fix completion in when typing `integer.|`Chayim Refael Friedman-1/+43
It should show integer, not floating point methods.
2025-06-26Prettify AST in `PathTransform` if it's coming from a macroChayim Refael Friedman-0/+27
2025-06-24Merge pull request #20036 from Veykril/push-yquvoyrxkksxLukas Wirth-9/+9
Do not default to 'static for trait object lifetimes
2025-06-24Do not default to 'static for trait object lifetimesLukas Wirth-9/+9
We lack trait object default lifetime elision, so `'static` can be wrong at times, confusing the user
2025-06-23Don't run doctestsChayim Refael Friedman-0/+1
2025-06-22Minic rustc's new `format_args!` expansionShoyu Vanilla-3/+1
2025-06-19Revert "Turn `BlockId` into a `#[salsa::tracked]`"Lukas Wirth-8/+4
This reverts commit 8643a858dbaf12b37e90b603cdee64434576c229.
2025-06-17Merge pull request #20025 from SoxPopuli/hide_private_imports_without_peLaurențiu Nicola-5/+98
Hide imported privates if private editable is disabled
2025-06-17Hide imported privates if private editable is disabledCharlotte Smith-5/+98
2025-06-17Merge pull request #20023 from Veykril/push-vkqlnyttnqzlLukas Wirth-153/+255
Improve completions in if / while expression conditions
2025-06-17Better completion test sortingLukas Wirth-38/+38
2025-06-17Improve completions in if / while expression conditionsLukas Wirth-121/+223
2025-06-17chore: Start infesting ide crates with 'db lifetimeLukas Wirth-131/+136
2025-06-04add qualifiers to attribute completionsRyan Mehri-14/+30
2025-06-04match on segments of path and some small cleanupRyan Mehri-23/+14
2025-06-02feat: implement completion for diagnostic moduleRyan Mehri-17/+175
2025-06-02fix: don't duplicate must_use for functions and traitsRyan Mehri-2/+2
2025-05-26Merge pull request #19862 from ChayimFriedman2/item-resolve-macro-hirChayim Refael Friedman-1/+37
fix: Fix IDE resolution of item macros
2025-05-25Properly implement `might_be_inside_macro_call()` using semantic information ↵Chayim Refael Friedman-20/+69
instead of syntactical hacks And rename it to `is_inside_macro_call()` accordingly.
2025-05-25Fix IDE resolution of item macrosChayim Refael Friedman-1/+37
It wasn't inside the source, because there was no source map.
2025-05-08Fix postfix snippets duplicating derefsChayim Refael Friedman-13/+33
2025-05-08Still complete parentheses & method call arguments if there are existing ↵Chayim Refael Friedman-3/+76
parentheses, but they are after a newline
2025-05-05Support environment variable CARGO_MANIFEST_PATH.Victor-0/+1
2025-05-03Improve let snippetA4-Tacks-6/+6
2025-05-03Improve the let code snippetA4-Tacks-6/+101
2025-05-02Render more lifetimesLukas Wirth-12/+12
2025-05-01remove a couple of clonesMatthias Krüger-5/+1
2025-04-30fix: Improve parser recovery a bitLukas Wirth-4/+2
2025-04-28Merge pull request #19699 from ChayimFriedman2/escape-labelDavid Barsky-2/+18
fix: Escape raw names in labels properly
2025-04-28Add expression fill mode variant for filling with underscore expressionsLukas Wirth-1/+1
2025-04-26Don't escape `'static`Chayim Refael Friedman-2/+2
As it is a valid lifetime without escaping. It does need to be escaped as a label, but we have no way to distinguish that.
2025-04-26Escape raw names in labels properlyChayim Refael Friedman-0/+16
2025-04-21Merge pull request #19644 from ChayimFriedman2/const-symsLukas Wirth-8/+7
internal: Make predefined symbols `const` instead of `static`
2025-04-21Merge pull request #19604 from WtzLAS/fix-issue-19601Lukas Wirth-1/+1
Add semicolon to use
2025-04-21Remove unnecessary predefined symbol clonesChayim Refael Friedman-6/+5
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-2/+2
Make them all `const`.
2025-04-19Make `HirFileId`, `EditionedFileId` and macro files Salsa structChayim Refael Friedman-22/+18
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-16add semicolon to useWtz_LASR-1/+1
2025-04-10Remove all upcasts!Chayim Refael Friedman-1/+1
It turns out there were a lot redundant too.
2025-04-08fix(auto-import): Prefer imports of matching types for argument lists Lukas Wirth-17/+15
2025-04-05Merge pull request #19447 from Natural-selection1/add_impl_forLukas Wirth-0/+27
add more completion about "impl"
2025-04-04prefer default over newBenjaminBrienen-1/+1
2025-03-31fix: Fix new nightly lintsLukas Wirth-3/+3
2025-03-28update testHegui Dai-22/+22
2025-03-28move "impl<> for <>" and test about itHegui Dai-27/+0