diff options
author | gfreezy <[email protected]> | 2019-01-19 14:02:50 +0000 |
---|---|---|
committer | gfreezy <[email protected]> | 2019-01-19 14:02:50 +0000 |
commit | d08e81cdd818dd3378c292767e15a38e6bbc6f6c (patch) | |
tree | e07b3363f21912ca7aaca4ae1dce482c0bcd6f85 /crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap | |
parent | fa43ef30f4f96fc8e4ea1f9c4492bcb07b3335ca (diff) |
refactor completions to use TextEdit instead of InsertText
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 | 37 |
1 files changed, 37 insertions, 0 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 new file mode 100644 index 000000000..8e547ad37 --- /dev/null +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap | |||
@@ -0,0 +1,37 @@ | |||
1 | Created: 2019-01-19T13:42:17.817216+00:00 | ||
2 | Creator: [email protected] | ||
3 | Source: crates/ra_ide_api/src/completion/completion_item.rs | ||
4 | |||
5 | [ | ||
6 | CompletionItem { | ||
7 | completion_kind: Reference, | ||
8 | label: "the_field", | ||
9 | kind: Some( | ||
10 | Field | ||
11 | ), | ||
12 | detail: Some( | ||
13 | "(u32, i32)" | ||
14 | ), | ||
15 | lookup: None, | ||
16 | insert_text_format: PlainText, | ||
17 | text_edit: None, | ||
18 | additional_text_edits: None | ||
19 | }, | ||
20 | CompletionItem { | ||
21 | completion_kind: Reference, | ||
22 | label: "foo", | ||
23 | kind: Some( | ||
24 | Method | ||
25 | ), | ||
26 | detail: None, | ||
27 | lookup: None, | ||
28 | insert_text_format: Snippet, | ||
29 | text_edit: Some( | ||
30 | AtomTextEdit { | ||
31 | delete: [125; 126), | ||
32 | insert: "foo($0)" | ||
33 | } | ||
34 | ), | ||
35 | additional_text_edits: None | ||
36 | } | ||
37 | ] | ||