Commit graph

277596 commits

Author SHA1 Message Date
Lukas Wirth
5f117b4591 fix: cargo rustc --print needs unstable-options 2025-01-18 12:04:57 +01:00
Lukas Wirth
fa71da9ff0
Merge pull request #18951 from Veykril/push-zpvunsvlpuxt
Add missing `#[rust_analyzer::rust_fixture]` annotations
2025-01-16 10:21:22 +00:00
Lukas Wirth
56059f8c7a
Merge pull request #18950 from Veykril/push-okmsynnltxts
Generalize some type walking in hover type actions
2025-01-16 10:19:37 +00:00
Lukas Wirth
4d5632b720 Generalize some type walking in hover type actions 2025-01-16 11:06:11 +01:00
Lukas Wirth
664cdd2936 Minor docs improvement 2025-01-16 11:05:20 +01:00
Lukas Wirth
548d70f8aa Add edit test for await skipping completions 2025-01-16 10:56:57 +01:00
Lukas Wirth
5a9763750e Add missing #[rust_analyzer::rust_fixture] annotations 2025-01-16 10:51:57 +01:00
Lukas Wirth
419bdb20e2
Merge pull request #18949 from Veykril/push-yzklntsnnuts
Partially back out "fix: Fix sourceroot construction for virtual manifests"
2025-01-16 09:18:48 +00:00
Lukas Wirth
c00dfedc34 Partially back out "fix: Fix sourceroot construction for virtual manifests" 2025-01-16 10:02:26 +01:00
Lukas Wirth
8ec90940f2
Merge pull request #18946 from lh123/goto-to-type-def-func-param-and-trait-bound
feat: show go-to-type-def actions for func param and trait bound when hovering
2025-01-16 08:48:02 +00:00
Lukas Wirth
d6477b952b
Merge pull request #18927 from ChayimFriedman2/skip-iter-await
feat: Add smart completions that skip `await` or `iter()` and `into_iter()`
2025-01-16 08:47:26 +00:00
Laurențiu Nicola
1c73899e18
Merge pull request #18944 from WaffleLapkin/trait_upcast_chalk
update chalk, fixing trait upcasting
2025-01-16 06:55:38 +00:00
lh123
fdc672e402 add goto-to-def actions for trait bound 2025-01-16 14:47:42 +08:00
lh123
b6ba392bb1 add go-to-type-def actions for func params 2025-01-16 14:47:26 +08:00
Waffle Lapkin
fea252667d
update chalk
this brings in support from trait upcasting, yay!
(and as such fixes a test)
2025-01-16 00:38:36 +01:00
Waffle Lapkin
20e3834f69
add a test for trait upcasting type mismatch
this adds a test asserting *incorrect* behavior that can be seen in
<https://github.com/rust-lang/rust-analyzer/issues/18083>, and a test
asserting the *correct* behavior for the case of no super traits.
2025-01-16 00:38:36 +01:00
Chayim Refael Friedman
553d525f16 Add smart completions that skip await or iter() and into_iter()
E.g. complete `await.foo()`.
2025-01-15 22:32:07 +02:00
HKalbasi
88ae0896f9
Merge pull request #18897 from duncanawoods/master
fix: Make test_runner::TestState::stdout optional to fix parsing cargo test json output
2025-01-15 19:51:36 +00:00
Lukas Wirth
805598dac3
Merge pull request #18922 from Veykril/push-tmtzukrsnott
fix: Don't return inlay hints outside requested range
2025-01-15 13:58:07 +00:00
Lukas Wirth
79f1471cd0 fix: Don't return inlay hints outside requested range 2025-01-15 14:42:53 +01:00
Lukas Wirth
6bf145932a
Merge pull request #18940 from Veykril/push-ulowqkpprslq
fix: Fix semantics not always correctly caching file roots
2025-01-15 12:54:58 +00:00
Lukas Wirth
38e696f6cf
Merge pull request #18929 from ChayimFriedman2/i-acknowledge-defeat
fix: Fix another bug when reaching macro expansion limit caused a stack overflow
2025-01-15 12:41:17 +00:00
Lukas Wirth
97522d1fe0
Merge pull request #18939 from Veykril/push-wztmylkyqttu
Flip on typing config to be opt-in, better defaults
2025-01-15 12:40:45 +00:00
Lukas Wirth
b56b4d60fe fix: Fix semantics not always correctly caching file roots 2025-01-15 13:40:25 +01:00
Lukas Wirth
7be6698e75 Flip on typing config to be opt-in, better defaults 2025-01-15 10:25:37 +01:00
Lukas Wirth
1ceea5b275 Early exit in search properly 2025-01-15 09:47:45 +01:00
Lukas Wirth
0ed9d1c8e5
Merge pull request #18925 from Veykril/push-mtxxvpowwtrt
feat: Render type parameter projection target bounds in inlays
2025-01-15 08:08:15 +00:00
Lukas Wirth
eed2b5cf94 feat: Render type parameter projection target bounds in inlays 2025-01-15 08:54:38 +01:00
Lukas Wirth
a12c80ded2
Merge pull request #18917 from boattime/master
feat: Add dereferencing autocomplete
2025-01-15 07:46:18 +00:00
Laurențiu Nicola
d3f69695c5
Merge pull request #18937 from darichey/hide-syntax-tree-default
Hide syntax tree view by default
2025-01-14 19:43:59 +00:00
David Richey
b470508cea Hide syntax tree view by default 2025-01-14 13:21:42 -06:00
Laurențiu Nicola
d36b3a2915
Merge pull request #18933 from decahedron1/notify-7
fix: Update `notify` to `8.0.0`
2025-01-14 07:46:22 +00:00
Carson M.
49b2257f66
Update notify to 8.0.0 2025-01-14 01:31:07 -06:00
boattime
a10a921bb9 feat: Add dereferencing autocomplete 2025-01-13 17:00:49 -08:00
Chayim Refael Friedman
70309b11e0 Fix another bug when reaching macro expansion limit caused a stack overflow
This time without missing bindings.

Solve it by returning to the old ways, i.e. just throw the extra nodes away.

In other words, I acknowledge defeat.
2025-01-13 15:55:30 +02:00
Lukas Wirth
0f900e2428
Merge pull request #18923 from Veykril/push-oovkowowotqx
internal: Compute inlay hint tooltips lazily
2025-01-12 13:57:11 +00:00
Lukas Wirth
6766e6679d internal: Compute inlay hint tooltips lazily 2025-01-12 14:42:44 +01:00
Lukas Wirth
b1aa9fb017
Merge pull request #18921 from Veykril/push-zwullmxomvsm
internal: Compute inlay hint text edits lazily
2025-01-12 13:20:33 +00:00
Lukas Wirth
ed121ecc2a Fix text edits for discriminant hints 2025-01-12 14:04:35 +01:00
Lukas Wirth
b79da13a22 internal: Compute inlay hint text edits lazily 2025-01-12 14:00:37 +01:00
Lukas Wirth
139db0ae50
Merge pull request #18920 from Veykril/push-zxwtmooxumsl
fix: Fix `ref` text edit for binding mode hints
2025-01-12 12:28:57 +00:00
Lukas Wirth
ab9779b490 fix: Fix ref text edit for binding mode hints 2025-01-12 13:14:00 +01:00
Laurențiu Nicola
f00e5ca787
Merge pull request #18913 from Wilfred/grammar_fix
minor: Fix grammar in doc comments
2025-01-11 06:19:03 +00:00
Wilfred Hughes
442c4edb09 minor: Fix grammar in doc comments
"too" should be "to" here.
2025-01-10 17:38:14 -08:00
Lukas Wirth
6d05207cca
Merge pull request #18907 from Veykril/push-uqlzpttmvurv
Implement `#[rust_analyzer::skip]` for bodies
2025-01-10 13:59:23 +00:00
Lukas Wirth
a40bbcfdf8 Implement #[rust_analyzer::skip] for bodies 2025-01-10 14:41:27 +01:00
Lukas Wirth
b0eb548473
Merge pull request #18906 from Veykril/push-upuxsyovskmt
feat: Re-implement rust string highlighting via tool attribute
2025-01-10 13:38:43 +00:00
Lukas Wirth
a006eaba79 Re-implement rust string highlighting via tool attribute 2025-01-10 13:49:35 +01:00
Lukas Wirth
f513b27ed5
Merge pull request #18904 from Veykril/push-yztnorquuyzw
Improve hover module path rendering
2025-01-10 11:53:38 +00:00
Lukas Wirth
0a354a4025
Merge pull request #18903 from Veykril/push-mqmworppxuyw
Implement implicit sized bound inlay hints
2025-01-10 11:53:18 +00:00