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__bindings_from_for.snap | |
parent | fa43ef30f4f96fc8e4ea1f9c4492bcb07b3335ca (diff) |
refactor completions to use TextEdit instead of InsertText
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap new file mode 100644 index 000000000..40a5fd90f --- /dev/null +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap | |||
@@ -0,0 +1,35 @@ | |||
1 | Created: 2019-01-19T13:42:17.835266+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: "x", | ||
9 | kind: Some( | ||
10 | Binding | ||
11 | ), | ||
12 | detail: None, | ||
13 | lookup: None, | ||
14 | insert_text_format: PlainText, | ||
15 | text_edit: None, | ||
16 | additional_text_edits: None | ||
17 | }, | ||
18 | CompletionItem { | ||
19 | completion_kind: Reference, | ||
20 | label: "quux", | ||
21 | kind: Some( | ||
22 | Function | ||
23 | ), | ||
24 | detail: None, | ||
25 | lookup: None, | ||
26 | insert_text_format: Snippet, | ||
27 | text_edit: Some( | ||
28 | AtomTextEdit { | ||
29 | delete: [62; 100), | ||
30 | insert: "quux()$0" | ||
31 | } | ||
32 | ), | ||
33 | additional_text_edits: None | ||
34 | } | ||
35 | ] | ||