diff options
author | gfreezy <[email protected]> | 2019-01-20 04:02:00 +0000 |
---|---|---|
committer | gfreezy <[email protected]> | 2019-01-20 04:02:00 +0000 |
commit | 2a43638052213d1faa690e6d68bd5702e44fa027 (patch) | |
tree | 38cb979816dcdff9b9847592a1f99193f0bda70b /crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap | |
parent | 94d96b60f334e662f516bd0f04cc4191d7a804e6 (diff) |
use a combination of `source_change` and `text_edit` for `CompleteItem`
Diffstat (limited to 'crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap index 8bcf60fa8..fd56a6c8c 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__no_semi_after_break_continue_in_expr.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-19T16:37:23.640842+00:00 | 1 | Created: 2019-01-20T04:00:48.209867+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 | ||
@@ -15,8 +15,8 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
15 | "if $0 {}" | 15 | "if $0 {}" |
16 | ), | 16 | ), |
17 | insert_text_format: Snippet, | 17 | insert_text_format: Snippet, |
18 | replace_range: [106; 108), | 18 | source_range: [106; 108), |
19 | delete_range: None | 19 | text_edit: None |
20 | }, | 20 | }, |
21 | CompletionItem { | 21 | CompletionItem { |
22 | completion_kind: Keyword, | 22 | completion_kind: Keyword, |
@@ -30,8 +30,8 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
30 | "match $0 {}" | 30 | "match $0 {}" |
31 | ), | 31 | ), |
32 | insert_text_format: Snippet, | 32 | insert_text_format: Snippet, |
33 | replace_range: [106; 108), | 33 | source_range: [106; 108), |
34 | delete_range: None | 34 | text_edit: None |
35 | }, | 35 | }, |
36 | CompletionItem { | 36 | CompletionItem { |
37 | completion_kind: Keyword, | 37 | completion_kind: Keyword, |
@@ -45,8 +45,8 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
45 | "while $0 {}" | 45 | "while $0 {}" |
46 | ), | 46 | ), |
47 | insert_text_format: Snippet, | 47 | insert_text_format: Snippet, |
48 | replace_range: [106; 108), | 48 | source_range: [106; 108), |
49 | delete_range: None | 49 | text_edit: None |
50 | }, | 50 | }, |
51 | CompletionItem { | 51 | CompletionItem { |
52 | completion_kind: Keyword, | 52 | completion_kind: Keyword, |
@@ -60,8 +60,8 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
60 | "loop {$0}" | 60 | "loop {$0}" |
61 | ), | 61 | ), |
62 | insert_text_format: Snippet, | 62 | insert_text_format: Snippet, |
63 | replace_range: [106; 108), | 63 | source_range: [106; 108), |
64 | delete_range: None | 64 | text_edit: None |
65 | }, | 65 | }, |
66 | CompletionItem { | 66 | CompletionItem { |
67 | completion_kind: Keyword, | 67 | completion_kind: Keyword, |
@@ -75,8 +75,8 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
75 | "continue" | 75 | "continue" |
76 | ), | 76 | ), |
77 | insert_text_format: Snippet, | 77 | insert_text_format: Snippet, |
78 | replace_range: [106; 108), | 78 | source_range: [106; 108), |
79 | delete_range: None | 79 | text_edit: None |
80 | }, | 80 | }, |
81 | CompletionItem { | 81 | CompletionItem { |
82 | completion_kind: Keyword, | 82 | completion_kind: Keyword, |
@@ -90,8 +90,8 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
90 | "break" | 90 | "break" |
91 | ), | 91 | ), |
92 | insert_text_format: Snippet, | 92 | insert_text_format: Snippet, |
93 | replace_range: [106; 108), | 93 | source_range: [106; 108), |
94 | delete_range: None | 94 | text_edit: None |
95 | }, | 95 | }, |
96 | CompletionItem { | 96 | CompletionItem { |
97 | completion_kind: Keyword, | 97 | completion_kind: Keyword, |
@@ -105,7 +105,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
105 | "return" | 105 | "return" |
106 | ), | 106 | ), |
107 | insert_text_format: Snippet, | 107 | insert_text_format: Snippet, |
108 | replace_range: [106; 108), | 108 | source_range: [106; 108), |
109 | delete_range: None | 109 | text_edit: None |
110 | } | 110 | } |
111 | ] | 111 | ] |