summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide
AgeCommit message (Collapse)AuthorLines
2025-02-07minor changesjnyfah-1/+1
2025-02-06collapsing if statementjnyfah-4/+2
2025-02-06closure parameter inlay hintsjnyfah-1/+39
2025-02-04Fix a failing testChayim Refael Friedman-2/+20
The reason this test passed previously is not because it was working as intended, but because prior to the previous commit we did not resolve the `use` at all! Now, `use self as _` is invalid code anyway (it prints E0429), and because we fallback to the value namespace if we can't resolve in the type namespace (which is a reasonable behavior), this test now actually fails. I don't think we want to change the fallback, so I removed `use self as _` and instead added a new test, where the value can be resolved in the type namespace.
2025-02-04Fix IDE resolution of `use` inside a bodyChayim Refael Friedman-0/+18
We stopped the expression search too early because `use` is an item.
2025-02-04Merge pull request #19084 from Veykril/push-muworpzpzqupLukas Wirth-1/+2
Split cache priming into distinct phases
2025-02-04Expose symbol of `CrateName`Lukas Wirth-1/+2
2025-02-03Merge pull request #19062 from darichey/scip-fix-module-namesLukas Wirth-16/+43
Fix scip indexing of module names
2025-01-29Merge pull request #19070 from Veykril/push-wpqzmznymtrnLukas Wirth-70/+32
Remove mutable syntax tree shenanigans from adjustment hints
2025-01-29Remove mutable syntax tree shenanigans from adjustment hintsLukas Wirth-70/+32
2025-01-28Merge pull request #19015 from Wilfred/mdbookLukas Wirth-253/+207
manual: Convert to mdbook
2025-01-28Fix scip symbols for implicit modulesDavid Richey-11/+26
2025-01-28Fix scip `crate` symbol nameDavid Richey-5/+17
2025-01-27fix: Properly handle CRLF line endings in the syntax tree viewGiga Bowser-34/+65
2025-01-27Merge pull request #19047 from lnicola/rename-highlightLaurențiu Nicola-0/+14
fix: Fix syntactic highlighting for renames
2025-01-27Fix syntactic highlighting for renamesLaurențiu Nicola-0/+14
2025-01-27Fix #[rustc_deprecated_safe_2024]Chayim Refael Friedman-15/+35
It should be considered by the edition of the caller, not the callee. Technically we still don't do it correctly - we need the span of the method name (if it comes from a macro), but we don't keep it and this is good enough for now.
2025-01-27Merge pull request #19036 from Veykril/push-nprltlwvryxwLukas Wirth-1/+4
Split out `ExpressionStore` from `Body`
2025-01-26Support RFC 2396Chayim Refael Friedman-2/+6
AKA. target_feature 1.1, or non unsafe target_feature.
2025-01-26Add GenericDefId::StaticIdLukas Wirth-1/+4
2025-01-25Merge pull request #19020 from ShoyuVanilla/issues-19007Lukas Wirth-0/+34
fix: Prevent infinite recursion of bounds formatting
2025-01-26fix: Prevent infinite recursion of bounds formattingShoyu Vanilla-37/+34
2025-01-25fix: Fix markdown horizontal ruler sometimes being treated as a headingLukas Wirth-1/+5
2025-01-25Skip redundant path search in `resolve_completion_edits`Lukas Wirth-1/+1
2025-01-25Merge pull request #18973 from ThouCheese/feat/nice-nichesLukas Wirth-2/+85
Make niches into nices
2025-01-24manual: Convert to mdbookWilfred Hughes-253/+207
Split manual.adoc into markdown files, one for each chapter. For the parts of the manual that are generated from source code doc comments, update the comments to use markdown syntax and update the code generators to write to `generated.md` files. For the weekly release, stop copying the .adoc files to the `rust-analyzer/rust-analyzer.github.io` at release time. Instead, we'll sync the manual hourly from this repository. See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/226 for the sync. This PR should be merged first, and that PR needs to be merged before the next weekly release. This change is based on #15795, but rebased and updated. I've also manually checked each page for markdown syntax issues and fixed any I encountered. Co-authored-by: Lukas Wirth <lukastw97@gmail.com> Co-authored-by: Josh Rotenberg <joshrotenberg@gmail.com>
2025-01-24Merge pull request #18991 from Veykril/push-rmqmnrymwmozLukas Wirth-245/+339
Keep already computed inlay hint properties instead of late resolving them
2025-01-24Lazily compute location links in type hints againLukas Wirth-9/+18
2025-01-24Add a new failing test that overflows stackShoyu Vanilla-0/+37
2025-01-21Keep already computed inlay hint properties instead of late resolving themLukas Wirth-27/+31
2025-01-21Make `InlayHint::linked_location` computation lazyLukas Wirth-203/+281
2025-01-21remove is_pwr2Luuk Wester-17/+3
2025-01-21switch from using leading zeros to trailing zerosLuuk Wester-1/+4
2025-01-21Fix Param::as_local treating closures wrongLukas Wirth-38/+41
2025-01-21make large niche description more terse, switch to using u128::is_power_of_twoLuuk Wester-5/+5
2025-01-21Merge pull request #18986 from Veykril/push-zlwvwlowpzqmLukas Wirth-0/+39
Goto `Display::fmt` when invoked on `to_string`
2025-01-21Cleanup `Name` string renderingLukas Wirth-31/+24
2025-01-20Goto `Display::fmt` when invoked on `to_string`Lukas Wirth-0/+39
2025-01-20Bring back goto def redirect for parse -> FromStrLukas Wirth-3/+43
2025-01-20Move dual blanket impl logic from source analyzer to goto_defLukas Wirth-28/+39
2025-01-20Merge pull request #18967 from Veykril/push-pwonkmwqmmolLukas Wirth-2/+5
Properly record meaningful imports as re-exports in symbol index
2025-01-20Merge pull request #18934 from 1hakusai1/goto_definition_from_intoLukas Wirth-0/+162
feat: Add the ability to jump from `into` to `from` definitions
2025-01-20Preserve impl assoc names in ImplDataLukas Wirth-2/+5
2025-01-20Add a test case1hakusai1-0/+24
2025-01-20Use Semantics::resolve_method_call_as_callable to find implementation1hakusai1-51/+4
2025-01-18Make niches into nicesLuuk Wester-2/+96
2025-01-16Merge pull request #18951 from Veykril/push-zpvunsvlpuxtLukas Wirth-6/+23
Add missing `#[rust_analyzer::rust_fixture]` annotations
2025-01-16Generalize some type walking in hover type actionsLukas Wirth-31/+30
2025-01-16Add missing `#[rust_analyzer::rust_fixture]` annotationsLukas Wirth-6/+23
2025-01-16add goto-to-def actions for trait boundlh123-1/+104