Commit graph

277612 commits

Author SHA1 Message Date
Luuk Wester
398cd2dbf6 make large niche description more terse, switch to using u128::is_power_of_two 2025-01-21 10:33:28 +01:00
Luuk Wester
4a7ec72961 Make niches into nices 2025-01-18 19:35:27 +01:00
Lukas Wirth
013130c22c
Merge pull request #18968 from Veykril/push-szvltqqttsyy
fix: `cargo rustc --print` needs `unstable-options`
2025-01-18 11:21:03 +00:00
Lukas Wirth
5f117b4591 fix: cargo rustc --print needs unstable-options 2025-01-18 12:04:57 +01:00
Laurențiu Nicola
6c1b1a1414
Merge pull request #18963 from gvozdvmozgu/Win32_Foundation
add missing `Win32_Foundation` feature
2025-01-17 18:54:57 +00:00
gvozdvmozgu
3ce55e949e add missing Win32_Foundation feature 2025-01-17 08:44:50 -08:00
Lukas Wirth
ff5c32f542
Merge pull request #18908 from jnyfah/error-braces
Fix: Detect missing errors for } braces before else in let...else statements
2025-01-17 13:29:56 +00:00
jnyfah
474c73bd94 CRLF to LF 2025-01-16 16:46:06 +01:00
jnyfah
05712c6c85 added tests 2025-01-16 16:19:47 +01:00
Lukas Wirth
99c7013070
Merge pull request #18952 from lh123/add-raw-keyword-complete
feat: complete raw, const keyword
2025-01-16 14:24:53 +00:00
jnyfah
715e457500 revert blocklike changes 2025-01-16 12:54:26 +01:00
lh123
1f32c2a9ec don't complete raw in &mut $0 2025-01-16 19:40:42 +08:00
Laurențiu Nicola
8d784becae
Merge pull request #18953 from VinTarZ/master
Fix `debug_assertions` broken in 1c5a125
2025-01-16 11:36:04 +00:00
VinTarZ
824bad7f65
Fix debug_assertions broken in 1c5a125beb35725ccc2ade005db9870db734bf23 2025-01-16 14:19:16 +03:00
jnyfah
39a1bb9e98 update blocklike 2025-01-16 12:11:55 +01:00
lh123
341a6d5bba feat: complete raw, const keyword 2025-01-16 18:27:59 +08: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