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