Lukas Wirth
19465b94f5
Add implict unsafety inlay hints for extern blocks
2024-12-06 12:49:03 +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
bors
eddab6e98c
Auto merge of #18349 - dqkqd:issue-18344, r=Veykril
...
feat: render docs from aliased type when type has no docs
Trying to close #18344
- [x] ~Find the docs by traversing upwards if the type itself has none but aliasing for another type that might have.~
- [x] Show docs from aliased type.
- [x] Showing description that we are displaying documentation for different definition in hover box.
![image](https://github.com/user-attachments/assets/820d6f97-aa2c-4dc4-8a25-75746e32d950 )
2024-10-22 11:56:16 +00:00
Khanh Duong Quoc
44e48d75dd
feat: render docs from aliased type when docs are missing
2024-10-22 20:27:05 +09:00
Duncan Proctor
2e0fae3579
tidy
2024-10-22 06:37:12 -04:00
Duncan Proctor
c679551d6b
remove duplicate test
2024-10-22 06:25:13 -04:00
Duncan Proctor
271f64f94d
resolve range patterns to the their struct types
2024-10-22 06:20:16 -04:00
bors
17055aaca9
Auto merge of #18362 - duncpro:goto-def-ranges, r=Veykril
...
feat: goto definition on range operators
Closes #18342
2024-10-22 07:49:18 +00:00
Duncan Proctor
2f6923b844
tidy
2024-10-22 03:19:47 -04:00
Duncan Proctor
f54a863965
goto definition on RangeFrom, RangeFull, RangeTo, and RangeToInclusive links to respective struct
2024-10-22 03:11:23 -04:00
duncanproctor
c7a8be110d
Move explicit range handling out of goto_definition, use OperatorClass instead
2024-10-21 20:07:07 -04:00
duncanproctor
3bc6e27993
GotoDefinition on a Range or InclusiveRange operator will link to the struct definition
2024-10-21 11:29:05 -04:00
Lukas Wirth
d878b8caad
fix: Fix token downmapping failing for include! inputs
2024-10-21 17:22:18 +02:00
Lukas Wirth
70d0b57cf0
Update ide tests
2024-10-21 11:28:19 +02:00
bors
eff79f171b
Auto merge of #18292 - roife:fix-issue-17427, r=Veykril
...
feat: handle self-param outside of methods when renaming
close #17427
2024-10-14 14:51:57 +00:00
roife
1e8a03a56e
feat: handle self-param outside of methods when renaming
2024-10-14 22:32:34 +08:00