about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide-db
AgeCommit message (Collapse)AuthorLines
2025-05-23Bump salsaLukas Wirth-3/+1
2025-05-20Merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-05-09Split duration_constructors to get non-controversial bits out faster.Dietrich Daroch-1/+1
2025-05-08Merge pull request #19507 from Hmikihiro/fix_module_doc_linksLukas Wirth-36/+110
fix: resolve doc path from parent module if outer comments exist on module
2025-05-07check module path inner or outerHayashi Mikihiro-36/+110
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-06Notify the user that we're collecting symbolsChayim Refael Friedman-1/+10
It could be confusing if they see "Indexing n/n" but cache priming does not finish.
2025-05-05Add a `--num-threads` to the `prime-caches` CLI commandChayim Refael Friedman-56/+57
And make it parallel by default (and remove the `--parallel` flag) to mirror the IDE cache priming.
2025-05-05Better manage parallel prime cachesChayim Refael Friedman-245/+167
To make best use of available cores, and don't waste time waiting for other tasks. See the comments in the code for explanation.
2025-05-05fix: Remove unnecessary token length check for macros in renamingLukas Wirth-5/+0
2025-05-05refactor: De-arc defmap queriesLukas Wirth-1/+1
2025-05-01remove a couple of clonesMatthias Krüger-2/+2
2025-04-29Split out salsa_macrosLukas Wirth-3/+4
Does not do much yet due to tracing pulling syn but oh well
2025-04-29Cleanup cfg check handling in expression store loweringLukas Wirth-9/+11
2025-04-29refactor: Clean up cache priming cancellation handlingLukas Wirth-21/+40
2025-04-28Merge pull request #19704 from Veykril/push-wrvznvvpvtvpLukas Wirth-0/+12
Add expression fill mode variant for filling with underscore expressions
2025-04-28Add expression fill mode variant for filling with underscore expressionsLukas Wirth-0/+12
2025-04-28Merge from rust-lang/rustLaurențiu Nicola-29/+0
2025-04-22Merge pull request #19657 from ChayimFriedman2/better-offset-ofLukas Wirth-0/+8
feat: Better support `offset_of!()`
2025-04-22Resolve `offset_of!()` in IDEChayim Refael Friedman-0/+8
2025-04-21Get rid of static predefined symbolsChayim Refael Friedman-4/+4
Make them all `const`.
2025-04-19Make `HirFileId`, `EditionedFileId` and macro files Salsa structChayim Refael Friedman-244/+198
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-10Remove all upcasts!Chayim Refael Friedman-46/+12
It turns out there were a lot redundant too.
2025-04-09internal: fix `NameGenerator`'s and `AnyMap`'s rustdocsDavid Barsky-1/+1
2025-04-09Merge pull request #19462 from Veykril/push-ypvprvvwkyllLukas Wirth-42/+37
refactor: Lower type-refs before type inference
2025-04-09refactor: Lower type-refs before type inferenceLukas Wirth-42/+37
This refactors how we deal with items in hir-def lowering. - It now lowers all of them through an "ExpressionStore" (kind of a misnomer as this point) as their so called *Signatures. - We now uniformly lower type AST into TypeRefs before type inference. - Likewise, this moves macro expansion out of type inference, resulting in a single place where we do non-defmap macro expansion. - Finally, this PR removes a lot of information from ItemTree, making the DefMap a lot less likely to be recomputed and have it only depend on actual early name resolution related information (not 100% true, we still have ADT fields in there but thats a follow up removal).
2025-04-08fix(auto-import): Prefer imports of matching types for argument lists Lukas Wirth-7/+37
2025-04-04prefer default over newBenjaminBrienen-13/+14
2025-04-03Stabilize `cfg_boolean_literals`clubby789-29/+0
2025-04-03fix(ide-assists): remove `AssistKind::None`Prajwal S N-10/+1
This was being used by a single assist, which qualifies under the "refactor" kind. The variant has been removed, and all usages updated accordingly. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-31fix: Cleanup param name inlay hint filteringLukas Wirth-2/+2
2025-03-28Merge pull request #19375 from ChayimFriedman2/do-not-completeLukas Wirth-24/+106
feat: Allow crate authors to control completion of their things
2025-03-27Allow crate authors to control completion of their thingsChayim Refael Friedman-24/+106
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-26refactor: Use MEDIUM durability for crate-graph changes, high for library ↵Lukas Wirth-5/+5
source files The idea here is that the crate graph may change over time, but library source file contents *never* will (or really never should). Disconnecting the two means that queries that depend on library sources will not need to re-validatewhen the crate graph changes (unless they depend on the crate graph in some capacity).
2025-03-23chore: Bump dependenciesLukas Wirth-4/+4
2025-03-23chore: Remove unused dependenciesLukas Wirth-1/+0
2025-03-22Speed up resolving "Generate delegate method" assist (part 2)Felicián Németh-0/+30
Make it compile by adding a `None` subtype to rest of the AssistId instantiations.
2025-03-22Speed up resolving "Generate delegate method" assist (part 1)Felicián Németh-2/+6
Fix #19322 Sometimes there are 185 "Generate delegate" assists with the same assist_id and asssist_kind. This commit introduces and additional differentiator: assist_subtype. Therefore, when the LSP client sends an assist resolve request, rust-analyzer only need to compute edits for a single assist instead of 185.
2025-03-21chore: Remove some unnecessary usage of `Semantics`Lukas Wirth-34/+32
2025-03-17chore: Bump `Edition::CURRENT` to 2024Lukas Wirth-37/+37
2025-03-16Suppress must_use for ControlFlow in rust-analyzerMichael Goulet-2/+2
2025-03-15cargo fmtBenjaminBrienen-84/+78
2025-03-15Merge pull request #19366 from Veykril/push-mkunlxkysssrLukas Wirth-3/+3
chore: Remove legacy `SyntaxContextId` re-export
2025-03-15chore: Remove legacy `SyntaxContextId` re-exportLukas Wirth-3/+3
2025-03-14Merge pull request #19356 from flodiebold/push-snpyvwuulkmwLukas Wirth-18/+18
fix: Avoid recursively debug printing crates
2025-03-14Avoid recursively debug printing cratesFlorian Diebold-18/+18
2025-03-14Split `variant_data` into its own queryLukas Wirth-3/+1
2025-03-14Split assoc items out of `trait_data`/`impl_data` queriesLukas Wirth-2/+2
2025-03-12Salsify the crate graphChayim Refael Friedman-39/+71
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
2025-03-10internal: port rust-analyzer to new SalsaDavid Barsky-346/+408
2025-03-10Merge pull request #19332 from Veykril/push-trvznlqsvtyqLukas Wirth-16/+13
Make change annotations per text-edit