Young-Flash
d94a832264
test: add test case for func with multiline param list
2025-06-30 17:36:16 +08:00
Young-Flash
5ae67747f5
internal: add FoldKind::Function
2025-06-30 17:36:16 +08:00
Young-Flash
8ac661eaa9
feat: support folding multiline arg list & fn body in one folding range
2025-06-30 17:34:02 +08:00
Chayim Refael Friedman
a6c1fa01d9
Merge pull request #20100 from ShoyuVanilla/ignore-sized-hierarchy
...
Backport new sized-hierarchy trait bounds in old ways
2025-06-26 20:37:18 +00:00
Shoyu Vanilla
953e9d1c36
Backport new sized-hierarchy trait bounds in old ways
2025-06-26 23:22:26 +09:00
roifewu
15e70c21d8
refactor: enhance highlighting for control flow kws in macros
2025-06-26 13:43:15 +08:00
roifewu
79de21bd9d
refactor: simplify functions related to branch_exit_points in highlight_related
2025-06-26 13:41:41 +08:00
roifewu
c36758def4
refactor: rename branches
to branch_exit_points
in highlight_related
2025-06-26 13:41:41 +08:00
roifewu
9fa0543504
refactor: improve macro handling in navigation for control-flow kws
2025-06-26 13:41:41 +08:00
roifewu
f87220e22a
feat: highlighting of related return values while the cursor is on any match
, if
, or match arm arrow (=>
)
2025-06-26 13:41:39 +08:00
Lukas Wirth
70cbf8332a
Merge pull request #20012 from lnicola/bump-literal-escaper
...
Update to literal-escaper 0.0.4
2025-06-24 08:21:36 +00:00
Lukas Wirth
4589eb8748
Merge pull request #20080 from Veykril/push-vnrwqppplykm
...
Cleanup `folding_ranges` and support more things
2025-06-24 08:02:55 +00:00
Lukas Wirth
13221eb4e6
Cleanup folding_ranges
and support more things
2025-06-24 09:51:44 +02:00
Lukas Wirth
b50d527931
Merge pull request #20036 from Veykril/push-yquvoyrxkksx
...
Do not default to 'static for trait object lifetimes
2025-06-24 06:59:54 +00:00
Lukas Wirth
2b05bd7d7e
Do not default to 'static for trait object lifetimes
...
We lack trait object default lifetime elision, so `'static` can be wrong at times, confusing the user
2025-06-24 08:49:24 +02:00
Chayim Refael Friedman
de312d0c71
Don't run doctests
2025-06-23 00:50:22 +03:00
Lukas Wirth
03f1003637
chore: Start infesting ide crates with 'db lifetime
2025-06-17 10:42:38 +02:00
Lukas Wirth
b1824c3962
feat: Insert required parentheses when typing +
in trait type
2025-06-16 19:02:18 +02:00
Laurențiu Nicola
5e37466de6
Format goto_type_definition
2025-06-16 15:33:48 +03:00
Lukas Wirth
c0258d01ba
Merge pull request #19990 from Veykril/push-zkvrlrotmuzr
...
Generate annotations for macro defined items if their name is in the input
2025-06-13 11:41:26 +00:00
Lukas Wirth
d78cade65e
Generate annotations for macro defined items if their name is in the input
2025-06-13 13:30:09 +02:00
Lukas Wirth
23712aea06
cargo upgrade
2025-06-13 10:08:20 +02:00
Lukas Wirth
7011fd054f
Merge pull request #19981 from Veykril/push-tzzunsrqqunv
...
fix: Do not force descend into derives for goto IDE features
2025-06-12 07:48:49 +00:00
Lukas Wirth
c8cedae2f9
fix: Do not force descend into derives for goto IDE features
...
Doing so can cause us to duplicate navigation targets for the same ranges which breaks convenience features of some editors where go to def can trigger find all references
2025-06-12 09:37:45 +02:00
Lukas Wirth
13494f4cac
ItemTree
's ItemVisibilities
has no identity, so deduplicate
2025-06-12 09:14:43 +02:00
Lukas Wirth
4cf958cfd4
fix: Hide dyn inlay hints for incomplete impl
s
2025-06-11 11:49:44 +02:00
Lukas Wirth
8e217cc68a
fix: Record macro calls for fields in ChildBySource
impls
2025-06-06 07:34:42 +02:00
Lukas Wirth
bb5e6deff5
fix: Record macro calls in signatures in ChildBySource
impls
2025-06-05 15:04:50 +02:00
Lukas Wirth
b9733810bb
feat: Add dyn
keyword inlay hints
2025-06-04 11:40:05 +02:00
Lukas Wirth
d2164fe08b
Remove unnecessary parameters in inlay-hint computation
2025-06-04 11:31:45 +02:00
Lukas Wirth
96c4455114
fix: Fix edition handling for names in rename logic
2025-06-02 15:27:13 +02:00
Lukas Wirth
42e8e4ac4e
Enhance renaming to include identifiers that are generated from the original symbol
...
Co-authored-by: Jake Goulding <jake.goulding@integer32.com>
2025-06-02 15:26:21 +02:00
Lukas Wirth
cdd0ac27e3
Merge pull request #19898 from Veykril/push-ykumpuwmuvmu
...
refactor: Remove unncessary duplication in highlight_related
2025-05-31 05:35:49 +00:00
Lukas Wirth
9ee761904e
refactor: Remove unncessary duplication in highlight_related
2025-05-31 07:25:03 +02:00
Lukas Wirth
38bf4b1fe1
internal: Restructure some semantics APIs for virtual macro files
2025-05-30 22:03:04 +02:00
Lukas Wirth
e65dddaf59
Merge pull request #19861 from vremyavnikuda/docs/find-all-refs-constructor-search
...
docs: add documentation for find_all_refs constructor search
2025-05-30 06:45:28 +00:00
vremyavnikuda
b71e8fadf5
docs:deleting duplicate documentation
2025-05-28 22:17:29 +07:00
Lukas Wirth
5900e25edc
Merge pull request #19880 from Veykril/push-xmpxumsrkymk
...
fix: Handle included files better in IDE layer
2025-05-28 08:49:42 +00:00
Lukas Wirth
e72738de99
fix: Handle included files better in IDE layer
...
This does not fully fix things, but it introduces a function that can be used to fix occurences.
When using `to_def` functionality, the input node needs to come from the macro expanded include, not the real file that was included.
This does unfortunately add more caller burden, but there is not really a way around it.
2025-05-28 10:38:38 +02:00
Lukas Wirth
c44372d06c
Merge pull request #19876 from ShoyuVanilla/layout-padding
...
feat: Render padding information when hovering on structs
2025-05-28 08:16:38 +00:00
Shoyu Vanilla
e806957098
feat: Render padding information when hovering on structs
2025-05-28 14:18:50 +09:00
Lukas Wirth
bbbcfaab8b
fix: Fix IDE layer not resolving some macro calls
2025-05-28 06:58:40 +02:00
vremyavnikuda
a2b58e216d
fix: formated to clippy
2025-05-26 16:41:49 +07:00
vremyavnikuda
8dd930390b
fix: the lines are formatted according to clippy
2025-05-26 16:00:45 +07:00
vremyavnikuda
0902094d01
fix: the lines are formatted according to clippy
2025-05-26 15:51:50 +07:00
vremyavnikuda
82edbbcd2a
docs: add documentation for find_all_refs constructor search ( #10725 )
2025-05-26 15:51:50 +07:00
Chayim Refael Friedman
87529e8631
Properly implement might_be_inside_macro_call()
using semantic information instead of syntactical hacks
...
And rename it to `is_inside_macro_call()` accordingly.
2025-05-25 20:15:58 +03:00
Lukas Wirth
e464ff8c75
Merge pull request #19687 from gohome001/highlight_unsafe
...
feat: highlight unsafe operations
2025-05-18 08:44:10 +00:00
gohome001
c6e3a4cf20
minor: code review tweak
2025-05-10 13:16:34 +08:00
Hayashi Mikihiro
0235ff883f
extract function: doc_attributes
to find def from inner doc
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-07 03:12:19 +09:00