21569 Commits

Author SHA1 Message Date
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
1hakusai1
b6d63615d2 Fix wrong fixture 2025-01-15 21:28:37 +09:00
1hakusai1
65342f4a21 Use adjusted type 2025-01-15 21:04:19 +09:00
1hakusai1
dc075fd692 Add test cases 2025-01-15 20:43:28 +09: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
1hakusai1
96ed889cdf refactor: get(0) -> first() 2025-01-14 19:00:35 +09:00
1hakusai1
a0be4b189c Remove trailing spaces 2025-01-14 17:54:15 +09:00
1hakusai1
c14cdcf5cc fix_typo 2025-01-14 17:43:28 +09:00
1hakusai1
ea87eab4ff Add the ability to jump from into to from definitions 2025-01-14 16:44:55 +09: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
Lukas Wirth
f209d50dcf Implement #[rust_analyzer::skip] for bodies 2025-01-10 14:41:27 +01:00
jnyfah
11717ca5d4 Missing errors 2025-01-10 14:22:00 +01:00
Lukas Wirth
bf669dab84 Re-implement rust string highlighting via tool attribute 2025-01-10 13:49:35 +01:00
Lukas Wirth
897f7e579e
Merge pull request #18904 from Veykril/push-yztnorquuyzw
Improve hover module path rendering
2025-01-10 11:53:38 +00:00
Lukas Wirth
d4fa92e80a Implement implicit sized bound inlay hints 2025-01-10 12:38:21 +01:00
Lukas Wirth
3bae1f0a1b Improve hover module path rendering 2025-01-10 12:36:55 +01:00
Lukas Wirth
1b52a6680f
Merge pull request #18900 from ChayimFriedman2/stupid-hang
fix: Do not compute `prettify_macro_expansion()` unless the "Inline macro" assist has actually been invoked
2025-01-10 11:02:54 +00:00
Lukas Wirth
6f04f373d7
Merge pull request #18902 from Veykril/push-znlsxykqrkoo
internal: Add Definition::Crate
2025-01-10 10:01:43 +00:00
Lukas Wirth
e6270bd378 internal: Add Definition::Crate
This is its own thing so it should be handled specifically where possible
2025-01-10 10:45:44 +01:00
Lukas Wirth
89b37675d7
Merge pull request #18901 from ChayimFriedman2/hir-reexport
minor: Remove two hir reexports
2025-01-10 06:57:18 +00:00
Lukas Wirth
d133136bc4
Merge pull request #18813 from Giga-Bowser/syntax-tree-view
feat: Add a new and improved syntax tree view
2025-01-10 06:56:34 +00:00
The 8472
7b368b97ba also initialize Layout field in rust-analyzer 2025-01-10 02:22:57 +01:00
Chayim Refael Friedman
87f7a5849c Remove two hir reexports 2025-01-10 03:19:28 +02:00
Chayim Refael Friedman
52794d5194 Do not compute prettify_macro_expansion() unless the "Inline macro" assist has actually been invoked
And not just called to be listed.

This was a major performance hang when repeatedly switching back-and-forth between a large `include!`d file (but there are others)..
2025-01-10 00:56:00 +02:00
Chayim Refael Friedman
bbcb71a403 Fix another issue with fixup reversing
We need to *remove* the whole subtree, but we don't advance `i` by this, because it hasn't gotten there yet (and never will).
2025-01-09 22:02:44 +02:00
Giga Bowser
cb5ce9eaa6 Remove the old syntax tree viewer 2025-01-09 13:20:06 -06:00
Giga Bowser
5ffe45d8cd Add a new and improved syntax tree viewer 2025-01-09 13:20:06 -06:00
duncan
04c06b4c5a Fix parsing cargo test json output by making stdout and optional field 2025-01-09 16:01:08 +00:00
Lukas Wirth
cc016df54b
Merge pull request #18889 from ChayimFriedman2/subtle-completion
fix: Fix actual token lookup in completion's `expand()`
2025-01-09 12:12:38 +00:00
Lukas Wirth
2e234e3d1b
Merge pull request #18880 from PrototypeNM1/extra-includes
Add config setting which allows adding additional include paths to the VFS.
2025-01-09 10:24:51 +00:00
Lukas Wirth
3fe50ef83c
Merge pull request #18861 from ChayimFriedman2/await-edition
fix: Make edition per-token, not per-file
2025-01-09 10:20:11 +00:00
Lukas Wirth
5c106b4efa
Merge pull request #18885 from qjerome/refactor-cargo-cfgs
refactor: struct holding cargo cfgs settings
2025-01-09 10:19:55 +00:00
Lukas Wirth
547d511ee1
Merge pull request #18890 from Veykril/push-nwnozlyppvzo
minor: Fixup macro error kinds
2025-01-09 08:54:05 +00:00