Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use a better name for zed2 inlay style field

Kirill Bulatov5644815c4c29
diff --git a/crates/editor2/src/display_map.rs b/crates/editor2/src/display_map.rs
index 9cc16933711..60975a7a5ca 100644
--- a/crates/editor2/src/display_map.rs
+++ b/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| {
diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rs
index 3dbdbf5e3c4..94ae8abc71a 100644
--- a/crates/editor2/src/editor.rs
+++ b/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),