diff options
Diffstat (limited to 'crates/ra_ide_api')
8 files changed, 19 insertions, 19 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_context.rs b/crates/ra_ide_api/src/completion/completion_context.rs index 7bc2def14..b09c66c18 100644 --- a/crates/ra_ide_api/src/completion/completion_context.rs +++ b/crates/ra_ide_api/src/completion/completion_context.rs | |||
@@ -72,7 +72,7 @@ impl<'a> CompletionContext<'a> { | |||
72 | match self.leaf.kind() { | 72 | match self.leaf.kind() { |
73 | // workaroud when completion is triggered by trigger characters. | 73 | // workaroud when completion is triggered by trigger characters. |
74 | DOT | COLONCOLON => TextRange::from_to(self.offset, self.offset), | 74 | DOT | COLONCOLON => TextRange::from_to(self.offset, self.offset), |
75 | _ => self.leaf.range() | 75 | _ => self.leaf.range(), |
76 | } | 76 | } |
77 | } | 77 | } |
78 | 78 | ||
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap index 8d33629ed..4d4c7af50 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__keywords_in_use_stmt2.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-20T04:00:48.214287+00:00 | 1 | Created: 2019-01-20T09:26:20.872623+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,7 +13,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
13 | lookup: None, | 13 | lookup: None, |
14 | insert_text: None, | 14 | insert_text: None, |
15 | insert_text_format: PlainText, | 15 | insert_text_format: PlainText, |
16 | source_range: [18; 20), | 16 | source_range: [20; 20), |
17 | text_edit: None | 17 | text_edit: None |
18 | }, | 18 | }, |
19 | CompletionItem { | 19 | CompletionItem { |
@@ -28,7 +28,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
28 | "super::" | 28 | "super::" |
29 | ), | 29 | ), |
30 | insert_text_format: PlainText, | 30 | insert_text_format: PlainText, |
31 | source_range: [18; 20), | 31 | source_range: [20; 20), |
32 | text_edit: None | 32 | text_edit: None |
33 | } | 33 | } |
34 | ] | 34 | ] |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap index 44624473e..966148a36 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__method_completion.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-20T04:00:48.203164+00:00 | 1 | Created: 2019-01-20T09:26:20.868112+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,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
15 | "the_method($0)" | 15 | "the_method($0)" |
16 | ), | 16 | ), |
17 | insert_text_format: Snippet, | 17 | insert_text_format: Snippet, |
18 | source_range: [143; 144), | 18 | source_range: [144; 144), |
19 | text_edit: None | 19 | text_edit: None |
20 | } | 20 | } |
21 | ] | 21 | ] |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap index 404c738bd..632d9bbc7 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__reference_completion.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-20T04:00:48.220278+00:00 | 1 | Created: 2019-01-20T09:26:20.899262+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,7 +13,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
13 | lookup: None, | 13 | lookup: None, |
14 | insert_text: None, | 14 | insert_text: None, |
15 | insert_text_format: PlainText, | 15 | insert_text_format: PlainText, |
16 | source_range: [45; 47), | 16 | source_range: [47; 47), |
17 | text_edit: None | 17 | text_edit: None |
18 | }, | 18 | }, |
19 | CompletionItem { | 19 | CompletionItem { |
@@ -26,7 +26,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
26 | lookup: None, | 26 | lookup: None, |
27 | insert_text: None, | 27 | insert_text: None, |
28 | insert_text_format: PlainText, | 28 | insert_text_format: PlainText, |
29 | source_range: [45; 47), | 29 | source_range: [47; 47), |
30 | text_edit: None | 30 | text_edit: None |
31 | } | 31 | } |
32 | ] | 32 | ] |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap index 530c76a02..c88ddbc67 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-20T04:00:48.203121+00:00 | 1 | Created: 2019-01-20T09:26:20.868146+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,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
15 | lookup: None, | 15 | lookup: None, |
16 | insert_text: None, | 16 | insert_text: None, |
17 | insert_text_format: PlainText, | 17 | insert_text_format: PlainText, |
18 | source_range: [84; 85), | 18 | source_range: [85; 85), |
19 | text_edit: None | 19 | text_edit: None |
20 | } | 20 | } |
21 | ] | 21 | ] |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap index ec861bf7e..f310f523d 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_autoderef.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-20T04:00:48.203230+00:00 | 1 | Created: 2019-01-20T09:26:20.868561+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,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
15 | lookup: None, | 15 | lookup: None, |
16 | insert_text: None, | 16 | insert_text: None, |
17 | insert_text_format: PlainText, | 17 | insert_text_format: PlainText, |
18 | source_range: [125; 126), | 18 | source_range: [126; 126), |
19 | text_edit: None | 19 | text_edit: None |
20 | }, | 20 | }, |
21 | CompletionItem { | 21 | CompletionItem { |
@@ -30,7 +30,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
30 | "foo($0)" | 30 | "foo($0)" |
31 | ), | 31 | ), |
32 | insert_text_format: Snippet, | 32 | insert_text_format: Snippet, |
33 | source_range: [125; 126), | 33 | source_range: [126; 126), |
34 | text_edit: None | 34 | text_edit: None |
35 | } | 35 | } |
36 | ] | 36 | ] |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap index ee69884c8..4eae65128 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__struct_field_completion_self.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-20T04:00:48.203235+00:00 | 1 | Created: 2019-01-20T09:26:20.868333+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,7 +15,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
15 | lookup: None, | 15 | lookup: None, |
16 | insert_text: None, | 16 | insert_text: None, |
17 | insert_text_format: PlainText, | 17 | insert_text_format: PlainText, |
18 | source_range: [120; 121), | 18 | source_range: [121; 121), |
19 | text_edit: None | 19 | text_edit: None |
20 | }, | 20 | }, |
21 | CompletionItem { | 21 | CompletionItem { |
@@ -30,7 +30,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
30 | "foo($0)" | 30 | "foo($0)" |
31 | ), | 31 | ), |
32 | insert_text_format: Snippet, | 32 | insert_text_format: Snippet, |
33 | source_range: [120; 121), | 33 | source_range: [121; 121), |
34 | text_edit: None | 34 | text_edit: None |
35 | } | 35 | } |
36 | ] | 36 | ] |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap index 8b6aca26e..1a3bd8034 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__use_item_starting_with_self.snap | |||
@@ -1,4 +1,4 @@ | |||
1 | Created: 2019-01-20T04:00:48.225170+00:00 | 1 | Created: 2019-01-20T09:26:20.899584+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,7 +13,7 @@ Source: crates/ra_ide_api/src/completion/completion_item.rs | |||
13 | lookup: None, | 13 | lookup: None, |
14 | insert_text: None, | 14 | insert_text: None, |
15 | insert_text_format: PlainText, | 15 | insert_text_format: PlainText, |
16 | source_range: [24; 26), | 16 | source_range: [26; 26), |
17 | text_edit: None | 17 | text_edit: None |
18 | } | 18 | } |
19 | ] | 19 | ] |