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__bindings_from_for.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__bindings_from_for.snap')
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap index 40a5fd90f..ff8646ab2 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__bindings_from_for.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-19T13:42:17.835266+00:00 | 1 | Created: 2019-01-19T16:37:23.674785+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: [62; 100), |
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 | "quux()$0" |
28 | AtomTextEdit { | ||
29 | delete: [62; 100), | ||
30 | insert: "quux()$0" | ||
31 | } | ||
32 | ), | 29 | ), |
33 | additional_text_edits: None | 30 | insert_text_format: Snippet, |
31 | replace_range: [62; 100), | ||
32 | delete_range: None | ||
34 | } | 33 | } |
35 | ] | 34 | ] |