1hakusai1
dc075fd692
Add test cases
2025-01-15 20:43:28 +09: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
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
Lukas Wirth
a612fc9a16
Merge pull request #18757 from roife/fix-17812
...
feat: support updating snapshot tests with codelens/hovering/runnables
2025-01-01 12:44:55 +00:00
Lukas Wirth
721e43e9d3
internal: Do not render closure ids in hover messages
...
They are not useful
2025-01-01 13:41:07 +01:00
Lukas Wirth
add0963033
Merge pull request #18758 from mgsloan/scip-unique-symbols
...
Improve SCIP symbols
2024-12-31 09:25:30 +00:00
roife
edaf62e7d9
feat: show go-to-type-def actions for subst when hovering
2024-12-31 13:05:29 +08:00
Michael Sloan
37cee9fdaa
Remove erroneous omit of inherent impls
...
Should have been included in 34dc94bb2d05def8b88739a9382b127feb1a35a0
2024-12-30 13:51:41 -07:00
Michael Sloan
03cb63cc75
Make impl HirDisplay for TraitRef
provide just the trait type
2024-12-30 13:34:02 -07:00
roife
7b3dffd657
refactor snapshot-tests detection in runnables
2024-12-30 23:56:31 +08:00
dfireBird
92f8fef527
Fix render of literal to be rendered in codeblock
2024-12-30 20:03:10 +05:30
Lukas Wirth
90b724afad
Merge pull request #18785 from Veykril/push-uvsqposqyvmo
...
Cleanup toolchain info fetching
2024-12-29 12:57:31 +00:00
Lukas Wirth
5ce14b0439
Enforce a current directory being set for spawned commands
2024-12-29 12:51:13 +01:00
Lukas Wirth
bb921fbe94
Show variance of parameters on hover
2024-12-28 20:31:20 +01:00
Michael Sloan
34dc94bb2d
Only include SCIP SymbolInformation for first inherent impl
2024-12-27 18:13:14 -07:00
Michael Sloan
f8ea9cace8
Update crates/ide/src/moniker.rs
...
Co-authored-by: David Barsky <me@davidbarsky.com>
2024-12-27 15:58:32 -07:00
Michael Sloan
eb4543818d
Update crates/ide/src/moniker.rs
...
Co-authored-by: David Barsky <me@davidbarsky.com>
2024-12-27 15:58:26 -07:00
roife
bba8d2dc02
move env vars for snapshot tests to UpdateTest
2024-12-26 20:19:26 +08:00
roife
1dcce45f48
optimize snapshot-testing macro detection and add tests
2024-12-26 19:51:14 +08:00
roife
edb61b10ab
feat: support UpdateTest in codelens
2024-12-26 19:50:32 +08:00