Use a better name for zed2 inlay style field

Kirill Bulatov created

Change summary

crates/editor2/src/display_map.rs | 2 +-
crates/editor2/src/editor.rs      | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)

Detailed changes

crates/editor2/src/display_map.rs 🔗

@@ -513,7 +513,7 @@ impl DisplaySnapshot {
         self.chunks(
             display_rows,
             language_aware,
-            Some(editor_style.hints_style),
+            Some(editor_style.inlays_style),
             Some(editor_style.suggestions_style),
         )
         .map(|chunk| {

crates/editor2/src/editor.rs 🔗

@@ -499,7 +499,7 @@ pub struct EditorStyle {
     pub scrollbar_width: Pixels,
     pub syntax: Arc<SyntaxTheme>,
     pub diagnostic_style: DiagnosticStyle,
-    pub hints_style: HighlightStyle,
+    pub inlays_style: HighlightStyle,
     pub suggestions_style: HighlightStyle,
 }
 
@@ -7643,7 +7643,7 @@ impl Editor {
                                                     .diagnostic_style
                                                     .clone(),
                                                 // todo!("what about the rest of the highlight style parts for inlays and suggestions?")
-                                                hints_style: HighlightStyle {
+                                                inlays_style: HighlightStyle {
                                                     color: Some(cx.theme().status().hint),
                                                     font_weight: Some(FontWeight::BOLD),
                                                     fade_out: Some(0.6),
@@ -9318,7 +9318,7 @@ impl Render for Editor {
                 diagnostic_style: cx.theme().diagnostic_style(),
                 // TODO kb find `HighlightStyle` usages
                 // todo!("what about the rest of the highlight style parts?")
-                hints_style: HighlightStyle {
+                inlays_style: HighlightStyle {
                     color: Some(cx.theme().status().hint),
                     font_weight: Some(FontWeight::BOLD),
                     fade_out: Some(0.6),