Aleksey Kladov
1b0c7701cc
Rename ra_ide -> ide
2020-08-13 17:58:27 +02:00
Aleksey Kladov
bb5c189b7d
Rename ra_ide_db -> ide_db
2020-08-13 16:39:16 +02:00
Kirill Bulatov
0de795fc4c
Consider only IdentPats for param name hints
2020-08-13 00:44:16 +03:00
Aleksey Kladov
a1c187eef3
Rename ra_syntax -> syntax
2020-08-12 18:30:53 +02:00
Aleksey Kladov
208b7bd7ba
Rename ra_prof -> profile
2020-08-12 16:35:29 +02:00
Aleksey Kladov
9818108798
Rename BindPat -> IdentPat
2020-07-31 20:12:10 +02:00
Aleksey Kladov
2e2642efcc
Remove TypeAscriptionOwner
2020-07-30 20:51:43 +02:00
Aleksey Kladov
6f8aa75329
Rename RecordLit -> RecordExpr
2020-07-30 16:21:30 +02:00
Kirill Bulatov
54cc3fee45
Do not show default types in closures
2020-07-20 23:50:41 +03:00
Jeremy Kolb
17f4d27f12
Minor perf tweaks per clippy
2020-07-19 14:26:24 -04:00
Aleksey Kladov
371c5aec1c
call_info works with closures
2020-07-17 12:04:10 +02:00
Aleksey Kladov
a5ae8b8b92
Inlay hints use callables
2020-07-16 21:51:44 +02:00
Aleksey Kladov
29832b8c3d
Reduce visibility
2020-07-16 18:07:53 +02:00
Aleksey Kladov
ff0312fa32
Semantical call info
2020-07-16 18:03:04 +02:00
Aleksey Kladov
b5ce84b170
Align CallableDefId naming with other ids
2020-07-16 13:16:34 +02:00
Aleksey Kladov
65d9966a4f
Always put config first
2020-07-09 16:12:53 +02:00
Aleksey Kladov
8b725a2f77
Switch to expect for the rest of inlay tests
2020-06-30 21:55:21 +02:00
Aleksey Kladov
442c13ba17
Simplify most of the inlay hints tests
2020-06-30 18:04:25 +02:00
bors[bot]
ca31b1d63a
Merge #5105
...
5105: Simlify with matches!() r=matklad a=Veetaha
Co-authored-by: Veetaha <veetaha2@gmail.com>
2020-06-28 22:37:25 +00:00
Aleksey Kladov
7cf1981a2d
Don't show ra_fixture param hints
2020-06-28 13:11:41 +02:00
Veetaha
e75e2ae5b6
Simlify with matches!()
2020-06-28 04:03:59 +03:00
Aleksey Kladov
e9cb818c26
Use fixtures more
2020-06-24 11:05:47 +02:00
Florian Diebold
a4a4a1854e
Fix type parameter defaults
...
They should not be applied in expression or pattern contexts, unless there are
other explicitly given type args.
2020-06-05 20:09:13 +02:00
Aleksey Kladov
522d24a607
Inlay Hints: more directly account for self param
2020-06-05 13:58:52 +02:00
Aleksey Kladov
1c6a2eb14a
Move the rest of the features to generated docs
2020-05-31 11:29:19 +02:00
Kirill Bulatov
30817de3af
Code review fixes
...
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-05-04 11:04:02 +03:00
Kirill Bulatov
66882f1a24
Move snake case method to heck
2020-05-03 21:35:21 +03:00
Kirill Bulatov
ba8ffab644
Omit name hints for enum names similar to parameter names
2020-05-03 15:55:08 +03:00
Kirill Bulatov
8eb820f460
Omit name hints for method names similar to parameter names
2020-05-03 15:55:08 +03:00
Aleksey Kladov
8843588fca
Convert tests to text-size
2020-04-25 11:59:18 +02:00
Laurențiu Nicola
8a51a74556
Omit more parameter hints in the presence of underscores
2020-04-18 10:53:48 +03:00
Laurențiu Nicola
81aab500c6
Hide parameter hints for single-argument functions with the same name
2020-04-09 21:47:04 +03:00
IceSentry
ebc61709c8
use .expr() to remove ref
2020-04-09 12:26:49 -04:00
IceSentry
ae416f3c6e
clean up param hint checking
2020-04-09 10:35:07 -04:00
IceSentry
cba694c602
better &mut
and &
matching
2020-04-08 19:26:47 -04:00
IceSentry
de6db06322
ignore &mut
and &
when checking params
2020-04-08 19:07:21 -04:00
IceSentry
a2dc18f71a
remove TODO
2020-04-08 18:11:24 -04:00
IceSentry
2a582b78a5
Add more heuristics for hiding obvious param hints
...
This will now hide "value", "pat", "rhs" and "other"
These words were selected from the std because they are used in common functions with only a single param and are obvious by their use.
I think it would be good to also hide "bytes" if the type is `[u8; n]` but I'm not sure how to get the param type signature
It will also hide the hint if the passed param starts or end with the param_name
2020-04-08 17:48:16 -04:00
Laurențiu Nicola
70960df437
Don't show chaining hints for record literals and unit structs
2020-04-01 13:14:41 +03:00
Aleksey Kladov
569f47e427
Better names for config structs
2020-03-31 16:05:25 +02:00
Matt Hooper
7b35da04bf
Improvements based on code review feedback
2020-03-25 00:18:55 +01:00
Matt Hooper
9d298115a6
Fmt corrections
2020-03-24 23:22:41 +01:00
Matt Hooper
b70ce559b8
Added more unit tests
2020-03-24 23:22:41 +01:00
Matt Hooper
a197abbc7a
Added new inlay hint kind and rules for method chaining
2020-03-24 23:18:42 +01:00
Aleksey Kladov
fd3ece2b73
Make naming more uniform
2020-03-12 17:38:48 +01:00
Steffen Lyngbaek
58248e24cd
Switch from Vec<InlayKind> to object with props
...
- Instead of a single object type, use several individual nested types
to allow toggling from the settings GUI
- Remove unused struct definitions
- Install and test that the toggles work
2020-03-11 20:14:39 -07:00
Steffen Lyngbaek
cfb48df149
Address Issues from Github
...
- Updated naming of config
- Define struct in ra_ide and use remote derive in rust-analyzer/config
- Make inlayConfig type more flexible to support more future types
- Remove constructor only used in tests
2020-03-10 14:36:01 -07:00
Steffen Lyngbaek
e98aff109a
Parameter inlay hint separate from variable type inlay? #2876
...
Add setting to allow enabling either type inlay hints or parameter
inlay hints or both. Group the the max inlay hint length option
into the object.
- Add a new type for the inlayHint options.
- Add tests to ensure the inlays don't happen on the server side
2020-03-10 14:33:45 -07:00
Kirill Bulatov
605dc98451
Omit unit struct hints
2020-03-08 23:21:08 +02:00
Aleksey Kladov
584c8d9875
Slightly refactor inlay hints
2020-02-29 23:24:50 +01:00