Lukas Wirth
15239f612d
internal: Show mir eval errors on hover with debug env var set
2024-12-15 17:38:37 +01:00
Laurențiu Nicola
405f01ac3f
Merge pull request #18678 from regexident/fix-typos
...
minor: Fix a few typos
2024-12-13 09:09:33 +00:00
Vincent Esche
3d4f10a856
Fix a few typos
2024-12-13 09:54:35 +01:00
Lukas Wirth
6aadbae022
Merge pull request #18674 from Veykril/push-lrxotqknvxvr
...
Show expansion errors in expand_macro feature
2024-12-13 08:50:45 +00:00
Lukas Wirth
28fbecff42
Show expansion errors in expand_macro feature
2024-12-13 09:36:03 +01:00
Lukas Wirth
cde07f29c9
Merge pull request #18675 from ShoyuVanilla/issue-18664
...
fix: Panic when displaying generic params with defaults, again
2024-12-12 16:37:10 +00:00
Shoyu Vanilla
94ec3fe7ed
fix: Panic when displaying generic params with defaults, again
2024-12-13 01:15:41 +09:00
Chayim Refael Friedman
0b7a6f38d7
Properly handle different defaults for severity of lints
...
Previously all lints were assumed to be `#[warn]`, and we had a hand-coded list of `#[allow]` exceptions. Now the severity is autogenerated from rustdoc output.
Also support lints that change status between editions, and the `warnings` lint group.
2024-12-11 20:48:41 +02:00
Lukas Wirth
956ff4d8c5
Rename test fixture crates to ra_test_fixture
2024-12-09 11:40:21 +01:00
Lukas Wirth
bf6547a77e
Highlight right angle as part of fat arrow in macro rules arm
2024-12-06 16:28:32 +01:00
Lukas Wirth
54dbf1b446
Add typing handler for param list pipe
2024-12-06 15:49:36 +01:00
Lukas Wirth
5dc5107e9c
Improve heuristics for on typing semicolon insertion
2024-12-06 15:00:09 +01:00
Lukas Wirth
630e4ca44a
Merge pull request #18474 from Veykril/push-nvtxykxkwnvs
...
Make bracket typing handler work on more things
2024-12-06 12:03:52 +00:00
Lukas Wirth
19465b94f5
Add implict unsafety inlay hints for extern blocks
2024-12-06 12:49:03 +01:00
Lukas Wirth
bac0ed579f
Make bracket typing handler work on more things
2024-12-06 12:47:32 +01:00
Lukas Wirth
d6b62265b5
fix: Resolve generic parameters within use captures
2024-12-05 19:11:33 +01:00
Shoyu Vanilla
405520150d
fix: Panic when displaying generic params with defaults
2024-12-06 01:10:46 +09:00
Lukas Wirth
65c0b29720
Fix parsing of parenthesized type args and RTN
2024-12-04 11:48:47 +01:00
Tarek
9aff46632e
chore: deprecate typing.autoClosingAngleBrackets
configuration
...
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-03 22:38:51 +02:00
Tarek
d6b701e251
internal: Make exclude characters for typing assists configurable, default to None
...
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-03 22:38:51 +02:00
Kirill Bulatov
4261ac7856
Advertise completions and inlay hints resolve server capabilities based on the client capabilities.
2024-12-03 10:51:17 +02:00
Laurențiu Nicola
1042a8c22c
Merge pull request #18490 from ShoyuVanilla/dyn-compat-rename
...
minor: Rename `dyn compatible` to `dyn-compatible`
2024-11-07 14:21:40 +00:00
Shoyu Vanilla
05e5f9e4fd
minor: Rename dyn compatible
to dyn-compatible
2024-11-07 23:00:29 +09:00
Lukas Wirth
9ad98df61d
Merge pull request #18473 from Veykril/push-xnlzukoqttvz
...
Render extern blocks in `file_structure`
2024-11-04 11:34:35 +00:00
Lukas Wirth
3ceaf1fb68
Render extern blocks in file_structure
2024-11-04 12:21:05 +01:00
Laurențiu Nicola
881ef8bf13
Fix feature name casing
2024-11-04 10:27:32 +02:00
Lukas Wirth
78f3112626
Allow interpreting consts and statics with interpret function command
2024-11-03 15:35:45 +01:00
Lukas Wirth
94c35f6138
Allow static initializers to be const evaluated
2024-11-02 12:43:11 +01:00
Lukas Wirth
436ace3ecb
Merge pull request #18436 from Veykril/lw-yvkqwpnwsouo
...
Do not render meta info when hovering usages
2024-10-30 09:21:35 +00:00
Lukas Wirth
a953875f49
Style hover messages a bit differently
2024-10-29 16:59:48 +01:00
Lukas Wirth
3741b863a6
Do not render meta info when hovering usages
2024-10-29 15:34:17 +01:00
Lukas Wirth
8672eb8adb
Merge pull request #18421 from Veykril/push-uxxwvwnqvomr
...
Move text-edit into ide-db
2024-10-28 13:52:16 +00:00
Lukas Wirth
27306c5e4b
Reformat
2024-10-28 14:37:52 +01:00
Lukas Wirth
64f56f458f
Move text-edit into ide-db
2024-10-28 14:37:41 +01:00
LastExceed
167fe5fd7c
add test
2024-10-27 23:29:14 +01:00
LastExceed
7c8c28ce96
add LetStmt arm
2024-10-27 23:29:14 +01:00
Lukas Wirth
20ac30fb75
Invert token iteration order in macro mapping
2024-10-27 11:32:12 +01:00
Lukas Wirth
ca3699bd50
Factor out token ranking
2024-10-25 12:03:12 +02:00
Lukas Wirth
f9935be013
Merge pull request #18264 from ChayimFriedman2/semi-transparent
...
fix: Implement mixed site hygiene
2024-10-23 12:33:50 +00:00
usamoi
b32127e0b0
fix dyn incompatible hint message
2024-10-23 18:10:14 +08:00
Lukas Wirth
b837ea4985
Don't emit edits for postfix adjustment hints
2024-10-23 10:24:58 +02:00
Lukas Wirth
47d2359afa
Add text edit to implicit 'static hints
2024-10-23 09:58:20 +02:00
Lukas Wirth
bfaad1431b
Add text edit to discriminant hints
2024-10-23 09:57:00 +02:00
Lukas Wirth
fd17fa10a2
Add text edit to binding mode hints
2024-10-23 09:52:03 +02:00
Lukas Wirth
f086fa9c02
Add text edit to adjustment hints
2024-10-23 09:30:36 +02:00
Chayim Refael Friedman
8adcbdcc49
Implement semitransparent hygiene
...
Or macro_rules hygiene, or mixed site hygiene. In other words, hygiene for variables and labels but not items.
The realization that made me implement this was that while "full" hygiene (aka. def site hygiene) is really hard for us to implement, and will likely involve intrusive changes and performance losses, since every `Name` will have to carry hygiene, mixed site hygiene is very local: it applies only to bodies, and we very well can save it in a side map with minor losses.
This fixes one diagnostic in r-a that was about `izip!()` using hygiene (yay!) but it introduces a huge number of others, because of #18262 . Up until now this issue wasn't a major problem because it only affected few cases, but with hygiene identifiers referred by macros like that are not resolved at all. The next commit will fix that.
2024-10-22 21:26:56 +03:00
Lukas Wirth
3ae93bcb82
Merge binding_mode inlay hints into one
2024-10-22 17:12:16 +02:00
Lukas Wirth
db60fb42bb
Merge adjustment inlay hints into one
2024-10-22 16:56:13 +02:00
Lukas Wirth
13acfbfae4
Merge closure capture inlay hints into one
2024-10-22 16:29:15 +02:00
bors
d509449d7e
Auto merge of #18370 - duncpro:goto-def-ranges, r=Veykril
...
feat: resolve range patterns to their structs
Closes #18367
2024-10-22 12:24:25 +00:00