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
3361b5701a
Generalize some type walking in hover type actions
2025-01-16 11:06:11 +01:00
Lukas Wirth
3e2848dc59
Add missing #[rust_analyzer::rust_fixture] annotations
2025-01-16 10:51:57 +01: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
1hakusai1
e8a63e43b1
Use resolve_method_call_as_callable to handle function types
2025-01-16 10:00:30 +09:00
1hakusai1
afde04b443
refactor: Change order of arguments
2025-01-16 09:35:07 +09:00
1hakusai1
c6317a3e67
refactor: rename to descriptive name
2025-01-16 09:33:52 +09: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
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
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
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
boattime
41687437af
feat: Add dereferencing autocomplete
2025-01-13 17:00:49 -08: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
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
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
Chayim Refael Friedman
87f7a5849c
Remove two hir reexports
2025-01-10 03:19:28 +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
Laurențiu Nicola
bfb81275fb
Merge pull request #18852 from ChayimFriedman2/proc-macro-panic
...
fix: Fix a bug that was caused by fixup reversing
2025-01-06 18:38:24 +00:00
Chayim Refael Friedman
f7c4833830
Fix a bug that was caused by fixup reversing
2025-01-06 20:06:20 +02:00
Lukas Wirth
4b6007115a
minor: New clippy lints
2025-01-06 17:57:17 +01:00
Chayim Refael Friedman
ce323627c5
Support the new CoercePointee derive
2025-01-04 18:35:53 +02:00
dfireBird
83fcdbf3f6
fix no space insert before and after if value is only spaces
2025-01-02 16:28:25 +05:30
Chayim Refael Friedman
bb400ca121
Fix overflow detection in MIR evaluation
...
With a bit of higher-order macros everything sorts out well.
And also fix a discovered bug when comparing long strings.
2025-01-02 11:51:12 +02:00
Lukas Wirth
7e639ee3dd
Merge pull request #18179 from ChayimFriedman2/omit-trait-completion
...
feat: Allow excluding specific traits from completion
2025-01-01 14:34:56 +00:00
Lukas Wirth
e5950cd41d
Merge pull request #18809 from Veykril/push-ktwrzsmzlplw
...
internal: Do not render closure ids in hover messages
2025-01-01 12:55:37 +00:00
Chayim Refael Friedman
7e6ade117c
Allow excluding specific traits from completion
...
To be accurate, only their methods are excluded, the trait themselves are still available.
I also excluded a bunch of std traits by default. Some less opinionated, like `AsRef`, which should never be used directly except in generic scenarios (and won't be excluded there), some more opinionated, like the ops traits, which I know some users sometimes want to use directly. Either way it's configurable.
It should be pretty easy to extend support to excluding only specific methods, but I didn't do that currently.
Traits configured to be excluded are resolved in each completion request from scratch. If this proves too expensive, it is easy enough to cache them in the DB.
2025-01-01 13:49:35 +01:00