aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/context.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-01 00:32:59 +0000
committerGitHub <[email protected]>2021-01-01 00:32:59 +0000
commitf687d738be6f5de009e58b3fcee87950f985288f (patch)
treec4c92625c917a05a732866a0b5c8970fca81034b /crates/completion/src/context.rs
parent339aab37744e7bfcab1def72acb26b81da6408ce (diff)
parent3d95c665561709f4017f28b2fb00a0bfb4661887 (diff)
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 <[email protected]>
Diffstat (limited to 'crates/completion/src/context.rs')
0 files changed, 0 insertions, 0 deletions