summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide-completion
AgeCommit message (Collapse)AuthorLines
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
2025-03-27Allow crate authors to control completion of their thingsChayim Refael Friedman-123/+241
Via the new `#[rust_analyzer::completions(...)]` attribute. Also fix a bug with existing settings for that where the paths wouldn't resolve correctly.
2025-03-25add more completion about "impl"Hegui Dai-22/+76
2025-03-23chore: Bump dependenciesLukas Wirth-3/+3
2025-03-21Merge pull request #19412 from Veykril/push-krktmvxmlxmtLukas Wirth-0/+1
chore: Remove some unnecessary usage of `Semantics`
2025-03-21chore: Remove some unnecessary usage of `Semantics`Lukas Wirth-0/+1
2025-03-19add postfix completion for const blockgvozdvmozgu-20/+86
2025-03-17chore: Bump `Edition::CURRENT` to 2024Lukas Wirth-1/+1
2025-03-16minor: Remove unnecessary allocations in `function::params_display`Lukas Wirth-16/+16
2025-03-16Merge pull request #19363 from euclio/varargs-detailLukas Wirth-1/+54
display varargs in completion detail
2025-03-15display varargs in completion detailAndy Russell-1/+54
2025-03-15cargo fmtBenjaminBrienen-199/+197
2025-03-14Split enum variants out of `enum_data` queryLukas Wirth-2/+2
2025-03-10internal: port rust-analyzer to new SalsaDavid Barsky-13/+26
2025-03-10Merge pull request #19332 from Veykril/push-trvznlqsvtyqLukas Wirth-2/+1
Make change annotations per text-edit
2025-03-10Make change annotations per text-editLukas Wirth-2/+1
2025-03-10Merge pull request #19330 from ChayimFriedman2/normalize-projectionLukas Wirth-41/+47
fix: Normalize projections in evaluated const display and layout calculation
2025-03-10Merge pull request #19079 from ChayimFriedman2/rename-conflictLukas Wirth-0/+2
feat: Warn the user when a rename will change the meaning of the program
2025-03-09Rank ADT constructors as constructors for completion scoringLukas Wirth-12/+102
2025-03-07Refactor relevance scoring to use a named constant BASE_SCORETongjun Gao-3/+5
Replace magic number with a named constant for improved readability and maintainability of the scoring logic
2025-03-07Fix logical error in relevance scoring implementationTongjun Gao-3/+3
2025-03-06Warn the user when a rename will change the meaning of the programChayim Refael Friedman-0/+2
Specifically, when a rename of a local will change some code that refers it to refer another local, or some code that refer another local to refer to it. We do it by introducing a dummy edit with an annotation. I'm not a fond of this approach, but I don't think LSP has a better way.
2025-03-06Pass the target crate in `HirFormatter`Chayim Refael Friedman-41/+47
This is required to format evaluated consts, because we need trait env, and it needs the crate (currently it uses the last crate in topological order, which is wrong, the next commit will fix that).
2025-03-06Adjust relevance scoring threshold to consistent with existing implementationsTongjun Gao-1/+1
2025-03-05Merge pull request #19279 from Natural-selection1/masterLukas Wirth-1/+51
Improve keyword completion for 'let' and 'let mut'
2025-03-05add test cases for 'letm' keyword completionTongjun Gao-0/+19
2025-03-05minicore: Add size_of to prelude and add rust_2024 preludeThalia Archibald-0/+1
2025-03-04change 'let mut' keyword completion into 'ietm' snippetTongjun Gao-2/+2
2025-03-04Improve keyword completion for 'let' and 'let mut'Tongjun Gao-1/+32