diff options
author | gfreezy <[email protected]> | 2019-01-19 16:38:34 +0000 |
---|---|---|
committer | gfreezy <[email protected]> | 2019-01-19 16:38:34 +0000 |
commit | 94d96b60f334e662f516bd0f04cc4191d7a804e6 (patch) | |
tree | 34ed5b9da22c938a5f7a3cac7a09de5812fa819f /crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap | |
parent | 64342599ca43fb72d0db8e79802a1018f480b5f5 (diff) |
refactor to use `remove_range` and `replace_range` instead of TextEdit
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap index 8e547ad37..6de8ada5a 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-19T13:42:17.817216+00:00 | 1 | Created: 2019-01-19T16:37:23.629043+00:00 |
2 | Creator: [email protected] | 2 | Creator: [email protected] |
3 | Source: crates/ra_ide_api/src/completion/completion_item.rs | 3 | Source: crates/ra_ide_api/src/completion/completion_item.rs |
4 | 4 | ||
@@ -13,9 +13,10 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
13 | "(u32, i32)" | 13 | "(u32, i32)" |
14 | ), | 14 | ), |
15 | lookup: None, | 15 | lookup: None, |
16 | insert_text: None, | ||
16 | insert_text_format: PlainText, | 17 | insert_text_format: PlainText, |
17 | text_edit: None, | 18 | replace_range: [125; 126), |
18 | additional_text_edits: None | 19 | delete_range: None |
19 | }, | 20 | }, |
20 | CompletionItem { | 21 | CompletionItem { |
21 | completion_kind: Reference, | 22 | completion_kind: Reference, |
@@ -25,13 +26,11 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
25 | ), | 26 | ), |
26 | detail: None, | 27 | detail: None, |
27 | lookup: None, | 28 | lookup: None, |
28 | insert_text_format: Snippet, | 29 | insert_text: Some( |
29 | text_edit: Some( | 30 | "foo($0)" |
30 | AtomTextEdit { | ||
31 | delete: [125; 126), | ||
32 | insert: "foo($0)" | ||
33 | } | ||
34 | ), | 31 | ), |
35 | additional_text_edits: None | 32 | insert_text_format: Snippet, |
33 | replace_range: [125; 126), | ||
34 | delete_range: None | ||
36 | } | 35 | } |
37 | ] | 36 | ] |