diff options
author | Aleksey Kladov <[email protected]> | 2019-02-18 09:05:16 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-18 09:24:20 +0000 |
commit | 92aa0f9c871a9308ea3db1b1c4b7e42d88348e30 (patch) | |
tree | ce785e530a547e3aede708b7725b4a95e666f45f /crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap | |
parent | 79f35cc6992d18e97b0bb9e309a2dc37f6f286e8 (diff) |
Don't use additional_text_edits API internally
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap index 43367010b..486b353ef 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-02-18T07:29:59.800831987Z" | 2 | created: "2019-02-18T09:10:52.152402422Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_ide_api/src/completion/completion_item.rs | 4 | source: crates/ra_ide_api/src/completion/completion_item.rs |
5 | expression: kind_completions | 5 | expression: kind_completions |
@@ -8,16 +8,28 @@ expression: kind_completions | |||
8 | CompletionItem { | 8 | CompletionItem { |
9 | label: "Test function", | 9 | label: "Test function", |
10 | source_range: [66; 66), | 10 | source_range: [66; 66), |
11 | text_edit: TextEdit { | ||
12 | atoms: [ | ||
13 | AtomTextEdit { | ||
14 | delete: [66; 66), | ||
15 | insert: "#[test]\nfn ${1:feature}() {\n $0\n}" | ||
16 | } | ||
17 | ] | ||
18 | }, | ||
11 | kind: Snippet, | 19 | kind: Snippet, |
12 | lookup: "tfn", | 20 | lookup: "tfn" |
13 | insert_text: "#[test]\nfn ${1:feature}() {\n $0\n}", | ||
14 | insert_text_format: Snippet | ||
15 | }, | 21 | }, |
16 | CompletionItem { | 22 | CompletionItem { |
17 | label: "pub(crate)", | 23 | label: "pub(crate)", |
18 | source_range: [66; 66), | 24 | source_range: [66; 66), |
19 | kind: Snippet, | 25 | text_edit: TextEdit { |
20 | insert_text: "pub(crate) $0", | 26 | atoms: [ |
21 | insert_text_format: Snippet | 27 | AtomTextEdit { |
28 | delete: [66; 66), | ||
29 | insert: "pub(crate) $0" | ||
30 | } | ||
31 | ] | ||
32 | }, | ||
33 | kind: Snippet | ||
22 | } | 34 | } |
23 | ] | 35 | ] |