diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 525a94f258..e235546104 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -1228,6 +1228,10 @@ impl CompletionsMenu {
None
};
+ let color_swatch = completion
+ .color()
+ .map(|color| div().size_4().bg(color).rounded(px(2.)));
+
div().min_w(px(220.)).max_w(px(540.)).child(
ListItem::new(mat.candidate_id)
.inset(true)
@@ -1243,6 +1247,7 @@ impl CompletionsMenu {
task.detach_and_log_err(cx)
}
}))
+ .start_slot::
(color_swatch)
.child(h_flex().overflow_hidden().child(completion_label))
.end_slot::