@@ -8,7 +8,11 @@ fn check_hover_no_result(ra_fixture: &str) {
8
8
let ( analysis, position) = fixture:: position ( ra_fixture) ;
9
9
let hover = analysis
10
10
. hover (
11
- & HoverConfig { links_in_hover : true , documentation : Some ( HoverDocFormat :: Markdown ) } ,
11
+ & HoverConfig {
12
+ links_in_hover : true ,
13
+ documentation : Some ( HoverDocFormat :: Markdown ) ,
14
+ keywords : true ,
15
+ } ,
12
16
FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
13
17
)
14
18
. unwrap ( ) ;
@@ -20,7 +24,11 @@ fn check(ra_fixture: &str, expect: Expect) {
20
24
let ( analysis, position) = fixture:: position ( ra_fixture) ;
21
25
let hover = analysis
22
26
. hover (
23
- & HoverConfig { links_in_hover : true , documentation : Some ( HoverDocFormat :: Markdown ) } ,
27
+ & HoverConfig {
28
+ links_in_hover : true ,
29
+ documentation : Some ( HoverDocFormat :: Markdown ) ,
30
+ keywords : true ,
31
+ } ,
24
32
FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
25
33
)
26
34
. unwrap ( )
@@ -37,7 +45,11 @@ fn check_hover_no_links(ra_fixture: &str, expect: Expect) {
37
45
let ( analysis, position) = fixture:: position ( ra_fixture) ;
38
46
let hover = analysis
39
47
. hover (
40
- & HoverConfig { links_in_hover : false , documentation : Some ( HoverDocFormat :: Markdown ) } ,
48
+ & HoverConfig {
49
+ links_in_hover : false ,
50
+ documentation : Some ( HoverDocFormat :: Markdown ) ,
51
+ keywords : true ,
52
+ } ,
41
53
FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
42
54
)
43
55
. unwrap ( )
@@ -54,7 +66,11 @@ fn check_hover_no_markdown(ra_fixture: &str, expect: Expect) {
54
66
let ( analysis, position) = fixture:: position ( ra_fixture) ;
55
67
let hover = analysis
56
68
. hover (
57
- & HoverConfig { links_in_hover : true , documentation : Some ( HoverDocFormat :: PlainText ) } ,
69
+ & HoverConfig {
70
+ links_in_hover : true ,
71
+ documentation : Some ( HoverDocFormat :: PlainText ) ,
72
+ keywords : true ,
73
+ } ,
58
74
FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
59
75
)
60
76
. unwrap ( )
@@ -71,7 +87,11 @@ fn check_actions(ra_fixture: &str, expect: Expect) {
71
87
let ( analysis, file_id, position) = fixture:: range_or_position ( ra_fixture) ;
72
88
let hover = analysis
73
89
. hover (
74
- & HoverConfig { links_in_hover : true , documentation : Some ( HoverDocFormat :: Markdown ) } ,
90
+ & HoverConfig {
91
+ links_in_hover : true ,
92
+ documentation : Some ( HoverDocFormat :: Markdown ) ,
93
+ keywords : true ,
94
+ } ,
75
95
FileRange { file_id, range : position. range_or_empty ( ) } ,
76
96
)
77
97
. unwrap ( )
@@ -83,7 +103,11 @@ fn check_hover_range(ra_fixture: &str, expect: Expect) {
83
103
let ( analysis, range) = fixture:: range ( ra_fixture) ;
84
104
let hover = analysis
85
105
. hover (
86
- & HoverConfig { links_in_hover : false , documentation : Some ( HoverDocFormat :: Markdown ) } ,
106
+ & HoverConfig {
107
+ links_in_hover : false ,
108
+ documentation : Some ( HoverDocFormat :: Markdown ) ,
109
+ keywords : true ,
110
+ } ,
87
111
range,
88
112
)
89
113
. unwrap ( )
@@ -95,7 +119,11 @@ fn check_hover_range_no_results(ra_fixture: &str) {
95
119
let ( analysis, range) = fixture:: range ( ra_fixture) ;
96
120
let hover = analysis
97
121
. hover (
98
- & HoverConfig { links_in_hover : false , documentation : Some ( HoverDocFormat :: Markdown ) } ,
122
+ & HoverConfig {
123
+ links_in_hover : false ,
124
+ documentation : Some ( HoverDocFormat :: Markdown ) ,
125
+ keywords : true ,
126
+ } ,
99
127
range,
100
128
)
101
129
. unwrap ( ) ;
0 commit comments