bors[bot] f687d738be
Merge #7102
7102: Fix completion of Default struct update syntax r=Veykril a=nick96

Previously the inserted text was always `..Default::default()` which ends up as `...Default::default()`
if `.` was typed. Now  checks if the current token is `.` and inserts `.Default::default()`
if it is, so `..Default::default()` is correctly completed.

I think there's probably a better way to implement this context aware completion because I've seen it in other parts of rust-analyzer as a user but I'm not sure how to do it.

Fixes #6969

Co-authored-by: Nick Spain <nicholas.spain@stileeducation.com>
2021-01-01 00:32:59 +00:00
..
2020-08-24 13:29:10 +02:00
2020-12-30 10:39:50 -05:00
2020-12-12 12:27:09 -05:00
2021-01-01 00:32:59 +00:00
2020-11-25 10:11:53 -05:00
2020-12-30 10:39:50 -05:00
2020-12-30 10:39:50 -05:00
2020-12-30 10:39:50 -05:00
2020-12-30 10:39:50 -05:00
2020-12-31 02:58:41 +08:00
2020-11-02 14:07:08 +01:00
2020-12-31 15:29:26 +00:00
2020-12-31 15:11:14 +00:00
2020-11-12 17:48:07 -08:00
2020-12-30 10:39:50 -05:00
2020-12-09 16:32:03 +00:00