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__dont_show_both_completions_for_shadowing.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__dont_show_both_completions_for_shadowing.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__dont_show_both_completions_for_shadowing.snap | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__dont_show_both_completions_for_shadowing.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__dont_show_both_completions_for_shadowing.snap index 9c1c3fe6a..6e4817d1a 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__dont_show_both_completions_for_shadowing.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__dont_show_both_completions_for_shadowing.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-19T13:42:17.841643+00:00 | 1 | Created: 2019-01-19T16:37:23.680378+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,9 +11,10 @@ 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: None, | ||
14 | insert_text_format: PlainText, | 15 | insert_text_format: PlainText, |
15 | text_edit: None, | 16 | replace_range: [108; 146), |
16 | additional_text_edits: None | 17 | delete_range: None |
17 | }, | 18 | }, |
18 | CompletionItem { | 19 | CompletionItem { |
19 | completion_kind: Reference, | 20 | completion_kind: Reference, |
@@ -23,13 +24,11 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
23 | ), | 24 | ), |
24 | detail: None, | 25 | detail: None, |
25 | lookup: None, | 26 | lookup: None, |
26 | insert_text_format: Snippet, | 27 | insert_text: Some( |
27 | text_edit: Some( | 28 | "foo()$0" |
28 | AtomTextEdit { | ||
29 | delete: [108; 146), | ||
30 | insert: "foo()$0" | ||
31 | } | ||
32 | ), | 29 | ), |
33 | additional_text_edits: None | 30 | insert_text_format: Snippet, |
31 | replace_range: [108; 146), | ||
32 | delete_range: None | ||
34 | } | 33 | } |
35 | ] | 34 | ] |