about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide
AgeCommit message (Collapse)AuthorLines
2025-03-05Use HIR unsafety information for unsafe syntax highlightngLukas Wirth-430/+457
2025-03-05Use size_of from the prelude instead of importedThalia Archibald-2/+1
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2025-03-01Merge pull request #19251 from Veykril/push-tkmpqtzxynxkLukas Wirth-7/+4
Remove syntax editing from parenthesis computation
2025-03-01Remove syntax editing from parenthesis computationLukas Wirth-7/+4
2025-03-01Fix `test_keyword_highlighting` testLukas Wirth-29/+104
2025-03-01Cleanup string handling in syntax highlightingLukas Wirth-37/+23
2025-03-01More precise macro modifiers for syntax highlightingLukas Wirth-170/+159
2025-03-01Cleanup highlighting macro-def handlingLukas Wirth-331/+187
2025-02-28Have inline_local_variable use precedence calculation for parenthesesLukas Wirth-7/+5
2025-02-28Merge pull request #19249 from Veykril/push-noosrywrsuvnLukas Wirth-3/+11
Fix prefix adjustment hints unnecessarily introducing parens
2025-02-28Fix prefix adjustment hints unnecessarily introducing parensLukas Wirth-3/+11
2025-02-27Add anchor for intra-doc links to associated itemsNicholas Crothers-7/+99
2025-02-27enable doctestBenjaminBrienen-1/+0
2025-02-24Merge pull request #18987 from ChayimFriedman2/drop-glueLukas Wirth-1/+690
feat: Calculate drop glue and show it on hover
2025-02-21feat: update insta inline snapshot when clicks 'Update Test' runnableandylokandy-1/+1
2025-02-17Use correct working directory for non-workspace proc-macro executionMehul Arora-2/+4
2025-02-17Merge pull request #19127 from ChayimFriedman2/different-generic-argsLukas Wirth-26/+4
feat: Refactor path lowering and serve a new path diagnostic
2025-02-17Calculate drop glue and show it on hoverChayim Refael Friedman-1/+690
Also fix the `needs_drop()` intrinsic. Unions also need this information (to err if they have a drop-needing field), but this will come in a follow-up PR.
2025-02-17Fix sorting of runnablesChayim Refael Friedman-11/+4
There were two mistakes: first, tests were sorted before test modules, and second, we re-sorted based on the name only, which cancelled the sort based on the kind.
2025-02-16Refactor path loweringChayim Refael Friedman-26/+4
And add a new diagnostic for non-`Fn` parenthesized generic args. Path lowering started to look like a mess, with each function carrying additional parameters for the diagnostic callback (since paths can occur both in type and in expression/pattern position, and their diagnostic handling is different) and the segment index, for the diagnostics report. So I refactored it from stateless functions on `TyLoweringContext` into stateful struct, `PathLoweringContext`, that tracks the process of lowering a path from resolution til assoc types selection.
2025-02-16Merge pull request #19137 from asuto15/highlight-extern-crateLukas Wirth-0/+19
fix: highlight `extern crate` in doc comments
2025-02-16fix: Stabilize sort order of `related_tests`Lukas Wirth-27/+35
2025-02-16fix: Stabilize sort order of runnablesLukas Wirth-33/+45
2025-02-15fix: remove unnecessary conversionasuto15-1/+1
2025-02-15Delete library modifier to highlighting for extern crateasuto15-24/+7
2025-02-13Delete useless commaasuto15-1/+1
2025-02-13Add modifiers to highlighting for extern crateasuto15-2/+31
2025-02-12Merge pull request #19109 from Veykril/push-nzpuuqommpnqLukas Wirth-7/+12
fix: Do not show safety hints for extern items lacking semantics
2025-02-12fix: Do not show safety hints for extern items lacking semanticsLukas Wirth-7/+12
2025-02-12minor: don't show drop hints for other patterngohome001-6/+6
2025-02-11Merge pull request #19117 from gohome001/implicit-drop-inlay-hints-bugChayim Refael Friedman-2/+24
Fix: don't emit implicit drop inlay hints for macro
2025-02-11add test case for ignoring inlay hint for macro callgohome001-0/+21
2025-02-11don't emit implicit drop inlay hints for macrogohome001-2/+3
2025-02-11Fix highlighting for extern crate in doc commentsasuto15-0/+7
2025-02-10Shadowing BuiltinType by ModuleHayashi Mikihiro-0/+34
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
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