File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,10 +230,15 @@ impl GuestDisplay for Component {
230230 ) -> Vec < HoverItem > {
231231 let obj_diff = diff. get :: < ResourceObjectDiff > ( ) ;
232232 let obj = obj_diff. 0 . as_ref ( ) ;
233- diff:: display:: symbol_hover ( obj, symbol_display. symbol as usize , 0 /* TODO */ )
234- . into_iter ( )
235- . map ( |item| HoverItem :: from ( item) )
236- . collect ( )
233+ diff:: display:: symbol_hover (
234+ obj,
235+ symbol_display. symbol as usize ,
236+ 0 ,
237+ diff:: display:: HoverItemColor :: Normal , // TODO: colorize replaced/deleted/inserted relocations
238+ )
239+ . into_iter ( )
240+ . map ( |item| HoverItem :: from ( item) )
241+ . collect ( )
237242 }
238243
239244 fn instruction_context (
@@ -501,6 +506,8 @@ impl From<diff::display::HoverItemColor> for HoverItemColor {
501506 diff:: display:: HoverItemColor :: Normal => HoverItemColor :: Normal ,
502507 diff:: display:: HoverItemColor :: Emphasized => HoverItemColor :: Emphasized ,
503508 diff:: display:: HoverItemColor :: Special => HoverItemColor :: Special ,
509+ diff:: display:: HoverItemColor :: Delete => HoverItemColor :: Delete ,
510+ diff:: display:: HoverItemColor :: Insert => HoverItemColor :: Insert ,
504511 }
505512 }
506513}
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ interface display {
137137 normal ,
138138 emphasized ,
139139 special ,
140+ delete ,
141+ insert ,
140142 }
141143
142144 record hover-item-text {
You can’t perform that action at this time.
0 commit comments