Use a better name for zed2 inlay style field

This commit is contained in:
Kirill Bulatov 2023-12-06 22:06:30 +02:00
parent 9e1d797445
commit 5644815c4c
2 changed files with 4 additions and 4 deletions

View file

@ -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| {

View file

@ -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),