@@ -8,7 +8,11 @@ fn check_hover_no_result(ra_fixture: &str) {
88 let ( analysis, position) = fixture:: position ( ra_fixture) ;
99 let hover = analysis
1010 . 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+ } ,
1216 FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
1317 )
1418 . unwrap ( ) ;
@@ -20,7 +24,11 @@ fn check(ra_fixture: &str, expect: Expect) {
2024 let ( analysis, position) = fixture:: position ( ra_fixture) ;
2125 let hover = analysis
2226 . 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+ } ,
2432 FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
2533 )
2634 . unwrap ( )
@@ -37,7 +45,11 @@ fn check_hover_no_links(ra_fixture: &str, expect: Expect) {
3745 let ( analysis, position) = fixture:: position ( ra_fixture) ;
3846 let hover = analysis
3947 . 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+ } ,
4153 FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
4254 )
4355 . unwrap ( )
@@ -54,7 +66,11 @@ fn check_hover_no_markdown(ra_fixture: &str, expect: Expect) {
5466 let ( analysis, position) = fixture:: position ( ra_fixture) ;
5567 let hover = analysis
5668 . 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+ } ,
5874 FileRange { file_id : position. file_id , range : TextRange :: empty ( position. offset ) } ,
5975 )
6076 . unwrap ( )
@@ -71,7 +87,11 @@ fn check_actions(ra_fixture: &str, expect: Expect) {
7187 let ( analysis, file_id, position) = fixture:: range_or_position ( ra_fixture) ;
7288 let hover = analysis
7389 . 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+ } ,
7595 FileRange { file_id, range : position. range_or_empty ( ) } ,
7696 )
7797 . unwrap ( )
@@ -83,7 +103,11 @@ fn check_hover_range(ra_fixture: &str, expect: Expect) {
83103 let ( analysis, range) = fixture:: range ( ra_fixture) ;
84104 let hover = analysis
85105 . 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+ } ,
87111 range,
88112 )
89113 . unwrap ( )
@@ -95,7 +119,11 @@ fn check_hover_range_no_results(ra_fixture: &str) {
95119 let ( analysis, range) = fixture:: range ( ra_fixture) ;
96120 let hover = analysis
97121 . 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+ } ,
99127 range,
100128 )
101129 . unwrap ( ) ;
0 commit comments