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__no_semi_after_break_continue_in_expr.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__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 | 86 |
1 files changed, 36 insertions, 50 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 26c54018e..8bcf60fa8 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-19T13:42:17.821881+00:00 | 1 | Created: 2019-01-19T16:37:23.640842+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 | ||
@@ -11,14 +11,12 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
11 | ), | 11 | ), |
12 | detail: None, | 12 | detail: None, |
13 | lookup: None, | 13 | lookup: None, |
14 | insert_text_format: Snippet, | 14 | insert_text: Some( |
15 | text_edit: Some( | 15 | "if $0 {}" |
16 | AtomTextEdit { | ||
17 | delete: [106; 108), | ||
18 | insert: "if $0 {}" | ||
19 | } | ||
20 | ), | 16 | ), |
21 | additional_text_edits: None | 17 | insert_text_format: Snippet, |
18 | replace_range: [106; 108), | ||
19 | delete_range: None | ||
22 | }, | 20 | }, |
23 | CompletionItem { | 21 | CompletionItem { |
24 | completion_kind: Keyword, | 22 | completion_kind: Keyword, |
@@ -28,14 +26,12 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
28 | ), | 26 | ), |
29 | detail: None, | 27 | detail: None, |
30 | lookup: None, | 28 | lookup: None, |
31 | insert_text_format: Snippet, | 29 | insert_text: Some( |
32 | text_edit: Some( | 30 | "match $0 {}" |
33 | AtomTextEdit { | ||
34 | delete: [106; 108), | ||
35 | insert: "match $0 {}" | ||
36 | } | ||
37 | ), | 31 | ), |
38 | additional_text_edits: None | 32 | insert_text_format: Snippet, |
33 | replace_range: [106; 108), | ||
34 | delete_range: None | ||
39 | }, | 35 | }, |
40 | CompletionItem { | 36 | CompletionItem { |
41 | completion_kind: Keyword, | 37 | completion_kind: Keyword, |
@@ -45,14 +41,12 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
45 | ), | 41 | ), |
46 | detail: None, | 42 | detail: None, |
47 | lookup: None, | 43 | lookup: None, |
48 | insert_text_format: Snippet, | 44 | insert_text: Some( |
49 | text_edit: Some( | 45 | "while $0 {}" |
50 | AtomTextEdit { | ||
51 | delete: [106; 108), | ||
52 | insert: "while $0 {}" | ||
53 | } | ||
54 | ), | 46 | ), |
55 | additional_text_edits: None | 47 | insert_text_format: Snippet, |
48 | replace_range: [106; 108), | ||
49 | delete_range: None | ||
56 | }, | 50 | }, |
57 | CompletionItem { | 51 | CompletionItem { |
58 | completion_kind: Keyword, | 52 | completion_kind: Keyword, |
@@ -62,14 +56,12 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
62 | ), | 56 | ), |
63 | detail: None, | 57 | detail: None, |
64 | lookup: None, | 58 | lookup: None, |
65 | insert_text_format: Snippet, | 59 | insert_text: Some( |
66 | text_edit: Some( | 60 | "loop {$0}" |
67 | AtomTextEdit { | ||
68 | delete: [106; 108), | ||
69 | insert: "loop {$0}" | ||
70 | } | ||
71 | ), | 61 | ), |
72 | additional_text_edits: None | 62 | insert_text_format: Snippet, |
63 | replace_range: [106; 108), | ||
64 | delete_range: None | ||
73 | }, | 65 | }, |
74 | CompletionItem { | 66 | CompletionItem { |
75 | completion_kind: Keyword, | 67 | completion_kind: Keyword, |
@@ -79,14 +71,12 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
79 | ), | 71 | ), |
80 | detail: None, | 72 | detail: None, |
81 | lookup: None, | 73 | lookup: None, |
82 | insert_text_format: Snippet, | 74 | insert_text: Some( |
83 | text_edit: Some( | 75 | "continue" |
84 | AtomTextEdit { | ||
85 | delete: [106; 108), | ||
86 | insert: "continue" | ||
87 | } | ||
88 | ), | 76 | ), |
89 | additional_text_edits: None | 77 | insert_text_format: Snippet, |
78 | replace_range: [106; 108), | ||
79 | delete_range: None | ||
90 | }, | 80 | }, |
91 | CompletionItem { | 81 | CompletionItem { |
92 | completion_kind: Keyword, | 82 | completion_kind: Keyword, |
@@ -96,14 +86,12 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
96 | ), | 86 | ), |
97 | detail: None, | 87 | detail: None, |
98 | lookup: None, | 88 | lookup: None, |
99 | insert_text_format: Snippet, | 89 | insert_text: Some( |
100 | text_edit: Some( | 90 | "break" |
101 | AtomTextEdit { | ||
102 | delete: [106; 108), | ||
103 | insert: "break" | ||
104 | } | ||
105 | ), | 91 | ), |
106 | additional_text_edits: None | 92 | insert_text_format: Snippet, |
93 | replace_range: [106; 108), | ||
94 | delete_range: None | ||
107 | }, | 95 | }, |
108 | CompletionItem { | 96 | CompletionItem { |
109 | completion_kind: Keyword, | 97 | completion_kind: Keyword, |
@@ -113,13 +101,11 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
113 | ), | 101 | ), |
114 | detail: None, | 102 | detail: None, |
115 | lookup: None, | 103 | lookup: None, |
116 | insert_text_format: Snippet, | 104 | insert_text: Some( |
117 | text_edit: Some( | 105 | "return" |
118 | AtomTextEdit { | ||
119 | delete: [106; 108), | ||
120 | insert: "return" | ||
121 | } | ||
122 | ), | 106 | ), |
123 | additional_text_edits: None | 107 | insert_text_format: Snippet, |
108 | replace_range: [106; 108), | ||
109 | delete_range: None | ||
124 | } | 110 | } |
125 | ] | 111 | ] |