Commit graph

21541 commits

Author SHA1 Message Date
Laurențiu Nicola
248bd511ae
Merge pull request #18966 from lnicola/bump-windows-sys
minor: Bump `windows-sys`
2025-01-18 15:59:53 +00:00
Lukas Wirth
2cd26fd9f5
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
0f7b85a9d6 fix: cargo rustc --print needs unstable-options 2025-01-18 12:04:57 +01:00
Laurențiu Nicola
d01fb4d45a Bump windows-sys 2025-01-17 21:28:11 +02:00
gvozdvmozgu
790d4ac011 add missing Win32_Foundation feature 2025-01-17 08:44:50 -08:00
Lukas Wirth
cd199eacd0
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
31c07e4676 CRLF to LF 2025-01-16 16:46:06 +01:00
jnyfah
b96819ca44 added tests 2025-01-16 16:19:47 +01:00
Lukas Wirth
903bc8133c
Merge pull request #18952 from lh123/add-raw-keyword-complete
feat: complete raw, const keyword
2025-01-16 14:24:53 +00:00
jnyfah
2ac6cb1521 revert blocklike changes 2025-01-16 12:54:26 +01:00
lh123
a282733b49 don't complete raw in &mut $0 2025-01-16 19:40:42 +08:00
VinTarZ
d71015d90d
Fix debug_assertions broken in 1c5a125beb 2025-01-16 14:19:16 +03:00
jnyfah
e3deeec2f2 update blocklike 2025-01-16 12:11:55 +01:00
lh123
9809143562 feat: complete raw, const keyword 2025-01-16 18:27:59 +08:00
Lukas Wirth
132a2a03c4
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
2ca2e56d51
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
3361b5701a Generalize some type walking in hover type actions 2025-01-16 11:06:11 +01:00
Lukas Wirth
24e1db2f0c Minor docs improvement 2025-01-16 11:05:20 +01:00
Lukas Wirth
71f1c4470d Add edit test for await skipping completions 2025-01-16 10:56:57 +01:00
Lukas Wirth
3e2848dc59 Add missing #[rust_analyzer::rust_fixture] annotations 2025-01-16 10:51:57 +01:00
Lukas Wirth
954ed7bb74
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
52a6f430ef Partially back out "fix: Fix sourceroot construction for virtual manifests" 2025-01-16 10:02:26 +01:00
Lukas Wirth
9c7d8bbdc0
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
c7f187430f
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
lh123
3125d5fbe5 add goto-to-def actions for trait bound 2025-01-16 14:47:42 +08:00
lh123
1cfafb2bc5 add go-to-type-def actions for func params 2025-01-16 14:47:26 +08:00
Waffle Lapkin
dde6ab4983
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
772266abeb
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
cec9fa1606 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
7d337c7f35
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
759a9e6805
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
5ff89d86aa fix: Don't return inlay hints outside requested range 2025-01-15 14:42:53 +01:00
Lukas Wirth
1fc15e0673
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
96d5b177cf
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
96f8bc8c0f
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
d32b09dc1b fix: Fix semantics not always correctly caching file roots 2025-01-15 13:40:25 +01:00
Lukas Wirth
557c467aa9 Flip on typing config to be opt-in, better defaults 2025-01-15 10:25:37 +01:00
Lukas Wirth
2a89e4a051 Early exit in search properly 2025-01-15 09:47:45 +01:00
Lukas Wirth
9384ceeef8
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
5530167a1e feat: Render type parameter projection target bounds in inlays 2025-01-15 08:54:38 +01:00
Lukas Wirth
d82e1a2472
Merge pull request #18917 from boattime/master
feat: Add dereferencing autocomplete
2025-01-15 07:46:18 +00:00
Carson M.
297ce528f4
Update notify to 8.0.0 2025-01-14 01:31:07 -06:00
boattime
41687437af feat: Add dereferencing autocomplete 2025-01-13 17:00:49 -08:00
Chayim Refael Friedman
8ab18927ce 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
f66bbbf27d internal: Compute inlay hint tooltips lazily 2025-01-12 14:42:44 +01:00
Lukas Wirth
0f595b07bd Fix text edits for discriminant hints 2025-01-12 14:04:35 +01:00
Lukas Wirth
f43a37ad25 internal: Compute inlay hint text edits lazily 2025-01-12 14:00:37 +01:00
Lukas Wirth
720e727a9d fix: Fix ref text edit for binding mode hints 2025-01-12 13:14:00 +01:00
Wilfred Hughes
7f6b8745c8 minor: Fix grammar in doc comments
"too" should be "to" here.
2025-01-10 17:38:14 -08:00
Lukas Wirth
4f35021ca9
Merge pull request #18907 from Veykril/push-uqlzpttmvurv
Implement `#[rust_analyzer::skip]` for bodies
2025-01-10 13:59:23 +00:00