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__snippets_in_items.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__snippets_in_items.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__snippets_in_items.snap | 26 |
1 files changed, 11 insertions, 15 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 e7cc5c410..5a87ae357 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,4 +1,4 @@ | |||
1 | Created: 2019-01-19T13:42:17.845616+00:00 | 1 | Created: 2019-01-19T16:37:23.682017+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,14 +13,12 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
13 | lookup: Some( | 13 | lookup: Some( |
14 | "tfn" | 14 | "tfn" |
15 | ), | 15 | ), |
16 | insert_text_format: Snippet, | 16 | insert_text: Some( |
17 | text_edit: Some( | 17 | "#[test]\nfn ${1:feature}() {\n $0\n}" |
18 | AtomTextEdit { | ||
19 | delete: [49; 79), | ||
20 | insert: "#[test]\nfn ${1:feature}() {\n $0\n}" | ||
21 | } | ||
22 | ), | 18 | ), |
23 | additional_text_edits: None | 19 | insert_text_format: Snippet, |
20 | replace_range: [49; 79), | ||
21 | delete_range: None | ||
24 | }, | 22 | }, |
25 | CompletionItem { | 23 | CompletionItem { |
26 | completion_kind: Snippet, | 24 | completion_kind: Snippet, |
@@ -30,13 +28,11 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
30 | ), | 28 | ), |
31 | detail: None, | 29 | detail: None, |
32 | lookup: None, | 30 | lookup: None, |
33 | insert_text_format: Snippet, | 31 | insert_text: Some( |
34 | text_edit: Some( | 32 | "pub(crate) $0" |
35 | AtomTextEdit { | ||
36 | delete: [49; 79), | ||
37 | insert: "pub(crate) $0" | ||
38 | } | ||
39 | ), | 33 | ), |
40 | additional_text_edits: None | 34 | insert_text_format: Snippet, |
35 | replace_range: [49; 79), | ||
36 | delete_range: None | ||
41 | } | 37 | } |
42 | ] | 38 | ] |